OS  2.10.2
Public Member Functions | Public Attributes | List of all members
CsdpSolver Class Reference

The CsdpSolver class solves problems using Csdp. More...

#include <OSCsdpSolver.h>

+ Inheritance diagram for CsdpSolver:
+ Collaboration diagram for CsdpSolver:

Public Member Functions

 CsdpSolver ()
 the CsdpSolver class constructor More...
 
virtual ~CsdpSolver ()
 the CsdpSolver class destructor More...
 
virtual void solve () throw (ErrorClass)
 solve results in an instance being read into the Csdp data structures and optimized More...
 
virtual void buildSolverInstance () throw (ErrorClass)
 The implementation of the virtual functions. More...
 
virtual void setSolverOptions () throw (ErrorClass)
 The implementation of the virtual functions. More...
 
void dataEchoCheck ()
 use this for debugging, print out the instance that the solver thinks it has and compare this with the OSiL file More...
 
- Public Member Functions inherited from DefaultSolver
 DefaultSolver ()
 default constructor. More...
 
virtual ~DefaultSolver ()=0
 default destructor. More...
 

Public Attributes

OSiLReaderm_osilreader
 m_osilreader is an OSiLReader object used to create an osinstance from an osil string if needed More...
 
OSoLReaderm_osolreader
 m_osolreader is an OSoLReader object used to create an osoption from an osol string if needed More...
 
- Public Attributes inherited from DefaultSolver
std::string osil
 osil holds the problem instance as a std::string More...
 
std::string osol
 osol holds the options for the solver More...
 
std::string osrl
 osrl holds the solution or result of the model More...
 
OSInstanceosinstance
 osinstance holds the problem instance in-memory as an OSInstance object More...
 
OSOptionosoption
 osoption holds the solver options in-memory as an OSOption object More...
 
OSResultosresult
 osresult holds the solution or result of the model in-memory as an OSResult object More...
 
std::string sSolverName
 sSolverName is the name of the Coin solver used, e.g. More...
 
bool bCallbuildSolverInstance
 bCallbuildSolverInstance is set to true if buildSolverService has been called More...
 
bool bSetSolverOptions
 bSetSolverOptions is set to true if setSolverOptions has been called, false otherwise More...
 

Detailed Description

The CsdpSolver class solves problems using Csdp.

Author
Jun Ma, Kipp Martin, Horand Gassmann
Version
1.0, 05/26/2014
Since
OS 2.8
Remarks
this class takes an OSiL instance and optimizes it using the COIN-OR Csdp solver

Definition at line 71 of file OSCsdpSolver.h.

Constructor & Destructor Documentation

◆ CsdpSolver()

CsdpSolver::CsdpSolver ( )

the CsdpSolver class constructor

◆ ~CsdpSolver()

virtual CsdpSolver::~CsdpSolver ( )
virtual

the CsdpSolver class destructor

Member Function Documentation

◆ solve()

virtual void CsdpSolver::solve ( )
throw (ErrorClass
)
virtual

solve results in an instance being read into the Csdp data structures and optimized

Implements DefaultSolver.

◆ buildSolverInstance()

void CsdpSolver::buildSolverInstance ( )
throw (ErrorClass
)
virtual

The implementation of the virtual functions.

Returns
void.

Implements DefaultSolver.

◆ setSolverOptions()

void CsdpSolver::setSolverOptions ( )
throw (ErrorClass
)
virtual

The implementation of the virtual functions.

Returns
void.

Implements DefaultSolver.

◆ dataEchoCheck()

void CsdpSolver::dataEchoCheck ( )

use this for debugging, print out the instance that the solver thinks it has and compare this with the OSiL file

Member Data Documentation

◆ m_osilreader

OSiLReader* CsdpSolver::m_osilreader

m_osilreader is an OSiLReader object used to create an osinstance from an osil string if needed

Definition at line 126 of file OSCsdpSolver.h.

◆ m_osolreader

OSoLReader* CsdpSolver::m_osolreader

m_osolreader is an OSoLReader object used to create an osoption from an osol string if needed

Definition at line 132 of file OSCsdpSolver.h.


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