the KnitroSolver class solves problems using Knitro. More...
#include <OSKnitroSolver.h>
Public Member Functions | |
KnitroSolver () | |
the KnitroSolver class constructor More... | |
~KnitroSolver () | |
the KnitroSolver class constructor More... | |
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 More... | |
virtual void | setSolverOptions () throw (ErrorClass) |
The implementation of the virtual functions. More... | |
virtual void | solve () throw (ErrorClass) |
solve results in an instance being read into the Knitro data structrues and optimized 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... | |
![]() | |
DefaultSolver () | |
default constructor. More... | |
virtual | ~DefaultSolver ()=0 |
default destructor. More... | |
Private Member Functions | |
Methods to block default compiler methods. | |
The compiler automatically generates the following three methods. Since the default compiler implementation is generally not what you want (for all but the most simple classes), we usually put the declarations of these methods in the private section and never implement them. This prevents the compiler from implementing an incorrect "default" behavior without us knowing. (See Scott Meyers book, "Effective C++") | |
KnitroSolver (const KnitroSolver &) | |
KnitroSolver & | operator= (const KnitroSolver &) |
Private Attributes | |
OSrLWriter * | osrlwriter |
std::string | knitroErrorMsg |
Additional Inherited Members | |
![]() | |
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... | |
OSInstance * | osinstance |
osinstance holds the problem instance in-memory as an OSInstance object More... | |
OSOption * | osoption |
osoption holds the solver options in-memory as an OSOption object More... | |
OSResult * | osresult |
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... | |
the KnitroSolver class solves problems using Knitro.
Definition at line 144 of file OSKnitroSolver.h.
KnitroSolver::KnitroSolver | ( | ) |
the KnitroSolver class constructor
Definition at line 571 of file OSKnitroSolver.cpp.
KnitroSolver::~KnitroSolver | ( | ) |
the KnitroSolver class constructor
Definition at line 615 of file OSKnitroSolver.cpp.
|
private |
|
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.
Definition at line 580 of file OSKnitroSolver.cpp.
|
virtual |
|
virtual |
solve results in an instance being read into the Knitro data structrues and optimized
Implements DefaultSolver.
Definition at line 631 of file OSKnitroSolver.cpp.
void KnitroSolver::dataEchoCheck | ( | ) |
use this for debugging, print out the instance that the solver thinks it has and compare this with the OSiL file
Definition at line 876 of file OSKnitroSolver.cpp.
|
private |
|
private |
Definition at line 180 of file OSKnitroSolver.h.
|
private |
Definition at line 197 of file OSKnitroSolver.h.