OS  2.10.2
Public Member Functions | Public Attributes | List of all members
DefaultSolver Class Referenceabstract

The Default Solver Class. More...

#include <OSDefaultSolver.h>

+ Inheritance diagram for DefaultSolver:
+ Collaboration diagram for DefaultSolver:

Public Member Functions

virtual void solve ()=0
 solve is a virtual function – the actual solvers will implement their own solve method More...
 
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 More...
 
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 More...
 
 DefaultSolver ()
 default constructor. More...
 
virtual ~DefaultSolver ()=0
 default destructor. More...
 

Public Attributes

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 Default Solver Class.

Author
Robert Fourer, Jun Ma, Kipp Martin,
Version
1.0, 10/05/2005
Since
OS1.0

Definition at line 35 of file OSDefaultSolver.h.

Constructor & Destructor Documentation

◆ DefaultSolver()

DefaultSolver::DefaultSolver ( )

default constructor.

◆ ~DefaultSolver()

virtual DefaultSolver::~DefaultSolver ( )
pure virtual

default destructor.

Member Function Documentation

◆ solve()

virtual void DefaultSolver::solve ( )
pure virtual

solve is a virtual function – the actual solvers will implement their own solve method

Implemented in LindoSolver, KnitroSolver, IpoptSolver, CsdpSolver, CouenneSolver, CoinSolver, and BonminSolver.

◆ buildSolverInstance()

virtual void DefaultSolver::buildSolverInstance ( )
pure virtual

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

Implemented in LindoSolver, KnitroSolver, IpoptSolver, CsdpSolver, CouenneSolver, CoinSolver, and BonminSolver.

◆ setSolverOptions()

virtual void DefaultSolver::setSolverOptions ( )
pure virtual

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

Implemented in LindoSolver, KnitroSolver, IpoptSolver, CsdpSolver, CouenneSolver, CoinSolver, and BonminSolver.

Member Data Documentation

◆ osil

std::string DefaultSolver::osil

osil holds the problem instance as a std::string

Definition at line 43 of file OSDefaultSolver.h.

◆ osol

std::string DefaultSolver::osol

osol holds the options for the solver

Definition at line 46 of file OSDefaultSolver.h.

◆ osrl

std::string DefaultSolver::osrl

osrl holds the solution or result of the model

Definition at line 50 of file OSDefaultSolver.h.

◆ osinstance

OSInstance* DefaultSolver::osinstance

osinstance holds the problem instance in-memory as an OSInstance object

Definition at line 54 of file OSDefaultSolver.h.

◆ osoption

OSOption* DefaultSolver::osoption

osoption holds the solver options in-memory as an OSOption object

Definition at line 58 of file OSDefaultSolver.h.

◆ osresult

OSResult* DefaultSolver::osresult

osresult holds the solution or result of the model in-memory as an OSResult object

Definition at line 61 of file OSDefaultSolver.h.

◆ sSolverName

std::string DefaultSolver::sSolverName

sSolverName is the name of the Coin solver used, e.g.

glpk, or clp

Definition at line 68 of file OSDefaultSolver.h.

◆ bCallbuildSolverInstance

bool DefaultSolver::bCallbuildSolverInstance

bCallbuildSolverInstance is set to true if buildSolverService has been called

Definition at line 75 of file OSDefaultSolver.h.

◆ bSetSolverOptions

bool DefaultSolver::bSetSolverOptions

bSetSolverOptions is set to true if setSolverOptions has been called, false otherwise

Definition at line 82 of file OSDefaultSolver.h.


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