the KnitroSolver class solves problems using Knitro. More...
#include <OSKnitroSolver.h>
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 solve method -- the solver instance is the instance the individual solver sees in its api | |
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 | |
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 |
the KnitroSolver class solves problems using Knitro.
Definition at line 142 of file OSKnitroSolver.h.
KnitroSolver::KnitroSolver | ( | ) |
the KnitroSolver class constructor
KnitroSolver::~KnitroSolver | ( | ) |
the KnitroSolver class constructor
KnitroSolver::KnitroSolver | ( | const KnitroSolver & | ) | [private] |
virtual void KnitroSolver::buildSolverInstance | ( | ) | throw (ErrorClass) [virtual] |
buildSolverInstance is a virtual function -- the actual solvers will implement their own solve method -- the solver instance is the instance the individual solver sees in its api
Implements DefaultSolver.
virtual void KnitroSolver::solve | ( | ) | throw (ErrorClass) [virtual] |
solve results in an instance being read into the Knitro data structrues and optimized
Implements DefaultSolver.
void KnitroSolver::dataEchoCheck | ( | ) |
use this for debugging, print out the instance that the solver thinks it has and compare this with the OSiL file
KnitroSolver& KnitroSolver::operator= | ( | const KnitroSolver & | ) | [private] |
OSrLWriter* KnitroSolver::osrlwriter [private] |
Definition at line 171 of file OSKnitroSolver.h.
std::string KnitroSolver::knitroErrorMsg [private] |
Definition at line 188 of file OSKnitroSolver.h.