My favorites | Sign in
Project Logo
                
People details
Project owners:
  poderico
Project committers:
andrea.nerli

Introduction

pyosi allows you to use COIN-OR's Open Solver Interface, aka OSI, from python.

What you'll be able to perform with pyosi is something like the following code:

import pyOSI

theSI = pyOSI.getOsiClp()

#Read in an mps file.  This one's from the MIPLIB library.
theSI.readMps("p0033")

#Solve the (relaxation of the) problem
theSI.initialSolve()

#Check the solution
if ( theSI.isProvenOptimal() ):
       print "Found optimal solution!"
       print "Objective value is %f" % theSI.getObjValue()
       n = theSI.getNumCols()
       solution = theSI.getColSolution()
       for i in solution:
             print i

else:
       print "Didn't find optimal solution."

pyosi was written using the boost.python library.

Copyright note

pyosi is a type of software developed and owned by M.B.I. srl. It is generally distributed under the terms of GPL v3 license. If you need another type of license, please feel free to ask for it at info@mbigroup.it









Hosted by Google Code