15 #ifndef KNITROSOLVER_H
16 #define KNITROSOLVER_H
22 #ifndef NLPPROBLEMDEF_H__
23 #include "nlpProblemDef.h"
52 # include <cppad/cppad.hpp>
63 # error "don't have header file for time"
74 # error "don't have header file for math"
107 (
const DerivativesImplementedType nWhichDers);
109 int evalFC (
const double *
const daX,
113 int evalGA (
const double *
const daX,
117 int evalH (
const double *
const daX,
118 const double *
const daLambda,
121 int evalHV (
const double *
const daX,
122 const double *
const daLambda,
195 std::string knitroErrorMsg;
used for throwing exceptions.
int evalGA(const double *const daX, double *const daG, double *const daJ, void *userParams)
Take an OSResult object and write a string that validates against OSrL.
virtual void solve()
solve results in an instance being read into the Knitro data structrues and optimized ...
bool loadProblemIntoKnitro(KTR_context_ptr kc)
KnitroProblem(OSInstance *osinstance_, OSResult *osresult_)
the IpoptProblemclass constructor
~KnitroSolver()
the KnitroSolver class constructor
int evalFC(const double *const daX, double *const dObj, double *const daC, void *userParams)
the KnitroSolver class solves problems using Knitro.
virtual void setSolverOptions()
The implementation of the virtual functions.
The in-memory representation of an OSiL instance.
void getInitialX(double *const daX)
This file defines the OSInstance class along with its supporting classes.
virtual void buildSolverInstance()
buildSolverInstance is a virtual function – the actual solvers will implement their own buildSolverI...
std::string knitroErrorMsg
This file defines the OSnLNode class along with its derived classes.
int evalHV(const double *const daX, const double *const daLambda, double *const daHV, void *userParams)
void dataEchoCheck()
use this for debugging, print out the instance that the solver thinks it has and compare this with th...
bool areDerivativesImplemented(const DerivativesImplementedType nWhichDers)
int evalH(const double *const daX, const double *const daLambda, double *const daH, void *userParams)
The Default Solver Class.
virtual ~KnitroProblem()
the IpoptProblem class destructor
KnitroSolver()
the KnitroSolver class constructor