15 #ifndef KNITROSOLVER_H
16 #define KNITROSOLVER_H
22 #ifndef NLPPROBLEMDEF_H__
23 #include "nlpProblemDef.h"
30 #include "OSInstance.h"
31 #include "OSParameters.h"
34 #include "OSInstance.h"
53 # include <cppad/cppad.hpp>
65 # error "don't have header file for time"
76 # error "don't have header file for math"
109 (
const DerivativesImplementedType nWhichDers);
111 int evalFC (
const double *
const daX,
115 int evalGA (
const double *
const daX,
119 int evalH (
const double *
const daX,
120 const double *
const daLambda,
123 int evalHV (
const double *
const daX,
124 const double *
const daLambda,
bool loadProblemIntoKnitro(KTR_context_ptr kc)
Define the fixed problem definition information and pass it to KNITRO by calling KTR_init_problem.
int evalH(const double *const daX, const double *const daLambda, double *const daH, void *userParams)
This file defines the OSnLNode class along with its derived classes.
std::string knitroErrorMsg
int evalGA(const double *const daX, double *const daG, double *const daJ, void *userParams)
KnitroSolver & operator=(const KnitroSolver &)
Take an OSResult object and write a string that validates against OSrL.
the KnitroSolver class solves problems using Knitro.
int evalHV(const double *const daX, const double *const daLambda, double *const daHV, void *userParams)
bool areDerivativesImplemented(const DerivativesImplementedType nWhichDers)
~KnitroSolver()
the KnitroSolver class constructor
virtual void buildSolverInstance()
buildSolverInstance is a virtual function – the actual solvers will implement their own buildSolverIn...
KnitroProblem(OSInstance *osinstance_, OSResult *osresult_)
the IpoptProblemclass constructor
The Default Solver Class.
virtual ~KnitroProblem()
the IpoptProblem class destructor
int evalFC(const double *const daX, double *const dObj, double *const daC, void *userParams)
virtual void solve()
solve results in an instance being read into the Knitro data structrues and optimized ...
void getInitialX(double *const daX)
virtual void setSolverOptions()
The implementation of the virtual functions.
std::string knitroErrorMsg
The in-memory representation of an OSiL instance..
KnitroSolver()
the KnitroSolver class constructor
used for throwing exceptions.
void dataEchoCheck()
use this for debugging, print out the instance that the solver thinks it has and compare this with th...