<br><font size=2 face="sans-serif">Dear Fulvio</font>
<br>
<br><font size=2 face="sans-serif">My humble apologies for the documentation.
Please continue to study SMI and C++! Perhaps you can contribute
some documentation as you go along... :-)</font>
<br>
<br><font size=2 face="sans-serif">The hierarchy is very flat. The
SmiScnModel class encapsulates the relationship between an OsiSolverInterface
and the SmiScenarioTree<SmiNode> class. The SmiScenarioTree
is just a tree with interfaces that allow one to add a "path to leaf"
to the tree. SmiScenario<SmiNode> is a tree with data elements
that are SmiNodes. SmiNodes implement the "core block-stoch
block" pattern described in the SMPS standard. An SmiScenarioTree<SmiNode>
describes a stochastic program in the SMPS "scenarios" format.
The SmiScnModel class has methods that transform the SmiScenarioTree<SmiNode>
structure into an OSI compatible linear program, and allow for "scenario-stage"
semantics for querying data and solutions.</font>
<br>
<br><font size=2 face="sans-serif">I am thinking of working with SmiScenarioTree
a bit to make it a little easier to post and retrieve data to nodes. Probably
this will take the form of a virtual base class for the post/retrieve functionality.
Does anyone have objections to the fact that SmiScenarioTree is templated?
Should I remove the templating and just use the post/retrieve classes
to manage data?</font>
<br>
<br><font size=2 face="sans-serif">So many questions, so little time.</font>
<br><font size=2 face="sans-serif"><br>
Alan</font>
<br>
<br><font size=2><tt>coin-smi-bounces@list.coin-or.org wrote on 04/06/2005
03:45:18 AM:<br>
<br>
> Hi<br>
> <br>
> I am beginning to use SMI. Since I am new both to object oriented
<br>
> programming and to stochastic programming I have a lot of questions
about <br>
> SMI. Just start with one.<br>
> <br>
> Looking at the automatic documentation, the class hierarchy is quite
weak <br>
> and the SmiScnModel class does not appear at all. I guess that the
<br>
> SmiScnModel class should stay on the top of a diagram under which
I will <br>
> put SmiScnData and SmiDiscreteDistribution classes.<br>
> Is this correct or am I wrong (and will study more SMI and C++)?<br>
> <br>
> Thanks for your answers.<br>
> <br>
> Before posting this message I give a look at the SMI mailing list
archive. <br>
> I don't know why but I did not receive all the messages, so I read
only <br>
> today about the proposal of implementing the first example in Birge
and <br>
> Louveaux book. It is exactly what I am doing, so I can post the SMPS
<br>
> files and the code to solve the model starting from them in my next
email.<br>
> <br>
> Fulvio<br>
> <br>
> _______________________________________________<br>
> Coin-SMI mailing list<br>
> Coin-SMI@list.coin-or.org<br>
> http://list.coin-or.org/mailman/listinfo/coin-smi<br>
</tt></font>