What is SMI?

SMI stands for Stochastic Modeling Interface. It is an interface for problems in which uncertainty and optimization appear together. There are many modeling and algorithmic approaches that could belong here, like: recourse programming, chance constrained programming, stochastic control and dynamic programming, robust optimization, etc, etc. SMI is intended to be like OSI in the sense that an SmiXX object is an implementation derived from a base class that takes care of a number of commonly encountered programming issues, like handling probability distributions, managing problem generation, interacting with solvers to obtain solution information, etc.

What is in the current release?

The current release implements a multiperiod scenario stochastic programming object called SmiScnModel. It supports an SMPS file reader method, a direct "genScenario" method, a method to generate a deterministic equivalent, and several methods to get solution data by scenario. This is a fully native COIN-OR implementation.

Do I need to install any particular solver?

No. It can use any OSI-compatible solver.

How do I use it?

You can obtain the Smi source code either via subversion or in form of nightly generated tarballs. The recommended method is to use subversion because it makes it easier to obtain updates. The following commands may be used to obtain and build Smi from the source code using subversion:

  1. svn co smi_stable
  2. cd smi_stable
  3. ./configure -C
  4. make
  5. make test
  6. make install
  7. cd Smi/examples
  8. make

The last step compiles the file Smi/example/stoch.cpp which has a number of use cases.

If the "make test" fails, it is likely because the SMPS files were not found. In the top of the unitTest.cpp file there is a line: #define SMI_TEST_DATA_DIR "./SmiTestData"

The make test step will fail to find the SMPS files if this directory does not resolve to <download_root>/coin-Smi_0.96/Smi/test/SmiTestData.

WINDOWS users: The BuildTools project has additional details on downloading, building, installing (e.g. for Windows), available options and troubleshooting. Note -- you may have to open the Microsoft Visual Studio properties for projects examples and unitTestSmi and check to see that the working directory is set to: $(SolutionDir)/../../test

Included Projects

If you download the Smi package, you get these additional projects.

Last modified 2 years ago Last modified on Oct 26, 2015 5:25:25 PM

Attachments (4)

Download all attachments as: .zip