OS 2.10.2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
KnitroSolver Class Reference

the KnitroSolver class solves problems using Knitro. More...

#include <OSKnitroSolver.h>

+ Inheritance diagram for KnitroSolver:
+ Collaboration diagram for KnitroSolver:

Public Member Functions

 KnitroSolver ()
 the KnitroSolver class constructor
 
 ~KnitroSolver ()
 the KnitroSolver class constructor
 
virtual void buildSolverInstance () throw (ErrorClass)
 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 () throw (ErrorClass)
 The implementation of the virtual functions.
 
virtual void solve () throw (ErrorClass)
 solve results in an instance being read into the Knitro data structrues and optimized
 
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.
 

Additional Inherited Members

- 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 KnitroSolver class solves problems using Knitro.

Author
Robert Fourer, Jun Ma, Kipp Martin
Version
1.0, 03/14/2004
Since
OS 1.0
Remarks
this class takes an OSiL instance and optimizes it using the Knitro solver

Definition at line 144 of file OSKnitroSolver.h.

Constructor & Destructor Documentation

◆ KnitroSolver()

KnitroSolver::KnitroSolver ( )

the KnitroSolver class constructor

◆ ~KnitroSolver()

KnitroSolver::~KnitroSolver ( )

the KnitroSolver class constructor

Member Function Documentation

◆ buildSolverInstance()

virtual void KnitroSolver::buildSolverInstance ( )
throw (ErrorClass
)
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

Implements DefaultSolver.

◆ setSolverOptions()

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

The implementation of the virtual functions.

Returns
void.

Implements DefaultSolver.

◆ solve()

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

solve results in an instance being read into the Knitro data structrues and optimized

Implements DefaultSolver.

◆ dataEchoCheck()

void KnitroSolver::dataEchoCheck ( )

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


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