OS 2.10.2
Loading...
Searching...
No Matches
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
 
virtual ~CsdpSolver ()
 the CsdpSolver class destructor
 
virtual void solve () throw (ErrorClass)
 solve results in an instance being read into the Csdp data structures and optimized
 
virtual void buildSolverInstance () throw (ErrorClass)
 The implementation of the virtual functions.
 
virtual void setSolverOptions () throw (ErrorClass)
 The implementation of the virtual functions.
 
void dataEchoCheck ()
 use this for debugging, print out the instance that the solver thinks it has and compare this with the OSiL file
 
- Public Member Functions inherited from DefaultSolver
virtual void solve ()=0
 solve is a virtual function – the actual solvers will implement their own solve method
 
virtual void buildSolverInstance ()=0
 buildSolverInstance is a virtual function – the actual solvers will implement their own buildSolverInstance method – the solver instance is the instance the individual solver sees in its API
 
virtual void setSolverOptions ()=0
 setSolverOptions is a virtual function – the actual solvers will implement their own setSolverOptions method – the solver options are the options the individual solver sees in its API
 
 DefaultSolver ()
 default constructor.
 
virtual ~DefaultSolver ()=0
 default destructor.
 

Public Attributes

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

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: