BlockIPPlatform
 All Classes Files Functions Variables
Public Member Functions | List of all members
OsiSymphony Class Reference

Class to solve problems through Osi with Symphony. More...

#include <OsiSymphony.h>

Inheritance diagram for OsiSymphony:
Inheritance graph
[legend]
Collaboration diagram for OsiSymphony:
Collaboration graph
[legend]

Public Member Functions

 OsiSymphony ()
 
 ~OsiSymphony ()
 Destructor.
 
STATUS solve ()
 Solve the problem loaded with Symphony.
 
- Public Member Functions inherited from OsiSolver
 OsiSolver ()
 Constructor.
 
 ~OsiSolver ()
 Destructor.
 
void setMaxTime (double time)
 Set maximum time allowed to solve the problem.
 
double getMaxTime ()
 Get maximum time allowed to solve the problem.
 
void setNumThreads (int numThreads)
 Set the maximum number of threads that the solver can use to solve the problem.
 
int getNumThreads ()
 Get the maximum number of threads that the solver can use to solve the problem.
 
void setFirstFeasible (bool stopAtFirstFeasible)
 Set if the execution must be stopped at first feasible solution.
 
bool getFirstFeasible ()
 Get if the execution must be stopped at first feasible solution.
 
void setLogFileName (char *filename)
 Set the name of the log file.
 
const char * getLogFileName ()
 Get the name of the log file.
 
OsiSolverInterface * getSolverInterface ()
 Get solver interface.
 
virtual void readMps (const char *filename)
 Load a problem from a mps file.
 
void loadProblem (int numRows, int numColumns, int nz, double obj[], double qobj[], double lb[], double ub[], double lhs[], double rhs[], int begRows[], int indCols[], double values[], bool copy_vectors=true)
 Load a problem.
 
double getObjValue ()
 Get the objective function value.
 
virtual const double * getSolution ()
 Get the solution.
 
int getNumVars ()
 Get the number of variables.
 
virtual const string * getVarNames ()
 Get the name of variables.
 

Additional Inherited Members

- Protected Member Functions inherited from OsiSolver
void freeMemory ()
 Free all allocated memory.
 
virtual void loadQuadraticObj (double qobj[])
 Load the quadratic objective function cost.
 
- Protected Attributes inherited from OsiSolver
double maxTime
 Maximum time allowed to solve the problem.
 
bool stopAtFirstFeasible
 True if the execution must be stopped at first feasible solution.
 
bool solved
 True if at least a initial solve has been done.
 
int numThreads
 Number of threads to use.
 
OsiSolverInterface * si
 Osi environment.
 
CoinMessageHandler * cmh
 To redirect the output.
 
FILE * f
 Output file.
 
char * filename
 Name of file.
 
double fobj
 Objective function value.
 

Detailed Description

Class to solve problems through Osi with Symphony.

Constructor & Destructor Documentation

OsiSymphony::OsiSymphony ( )
Exceptions
LICENSE_ERRORIf there are problems opening SYMPHONY (licensing problems)

The documentation for this class was generated from the following files: