18 #include "KTRException.h" 19 #include "KTRProblem.h" 20 #include "KTRSolver.h" 57 KnitroProblem(
unsigned nvarIn,
unsigned neqIn,
unsigned nineqIn,
const unsigned nineqSquashIn,
const std::vector<babBase::OptimizationVariable>& variables,
58 UbpStructure* structureIn, std::shared_ptr<std::vector<Constraint>> constraintPropertiesIn, std::shared_ptr<DagObj> dagObj);
72 double evaluateFC(
const double*
const x,
double*
const c,
double*
const objGrad,
double*
const jac);
82 int evaluateGA(
const double*
const x,
double*
const objGrad,
double*
const jac);
93 int evaluateHess(
const double*
const x,
double objScaler,
const double*
const lambda,
double*
const hess);
127 std::shared_ptr<DagObj> _DAGobj;
double evaluateFC(const double *const x, double *const c, double *const objGrad, double *const jac)
Function called by Knitro to get values of the objective and constraints at a point x...
int evaluateGA(const double *const x, double *const objGrad, double *const jac)
Function called by Knitro to get derivatives of the objective and constraints at point x...
std::vector< babBase::OptimizationVariable > _optimizationVariables
Definition: knitroProblem.h:126
KnitroProblem(unsigned nvarIn, unsigned neqIn, unsigned nineqIn, const unsigned nineqSquashIn, const std::vector< babBase::OptimizationVariable > &variables, UbpStructure *structureIn, std::shared_ptr< std::vector< Constraint >> constraintPropertiesIn, std::shared_ptr< DagObj > dagObj)
Constructor actually used in ubp.cpp. Initializes the corresponding members.
Class for representing problems to be solved by Knitro, providing an interface to the problem definit...
Definition: knitroProblem.h:43
unsigned _nvar
Definition: knitroProblem.h:120
UbpStructure * _structure
Definition: knitroProblem.h:124
void _setObjectiveProperties()
Set properties of objective function, i.e., type (linear, quadratic, general)
void _setDerivativeProperties()
Set properties of derivatives, i.e., correct indices for non zeros in Jacobian.
namespace holding all essentials of MAiNGO
Definition: aleModel.h:25
void _setConstraintProperties()
Set properties of constraints, i.e., bounds and type (linear, quadratic, general) ...
void _setVariableProperties()
Set properties of variables, i.e., type (continuous, binary, integer)
unsigned _neq
Definition: knitroProblem.h:123
virtual ~KnitroProblem()
Destructor.
Struct for storing structure information for the upper bounding solver.
Definition: ubpStructure.h:30
unsigned _nineqSquash
Definition: knitroProblem.h:122
unsigned _nineq
Definition: knitroProblem.h:121
int evaluateHess(const double *const x, double objScaler, const double *const lambda, double *const hess)
Function called by Knitro to get the hessian of the lagrangian at point x.
std::shared_ptr< std::vector< Constraint > > _constraintProperties
Definition: knitroProblem.h:125