22 #include "KTRException.h" 23 #include "KTRProblem.h" 24 #include "KTRSolver.h" 61 KnitroProblem(
unsigned nvarIn,
unsigned neqIn,
unsigned nineqIn,
const unsigned nineqSquashIn,
const std::vector<babBase::OptimizationVariable>& variables,
62 UbpStructure* structureIn, std::vector<Constraint>* constraintPropertiesIn, std::shared_ptr<DagObj> dagObj);
76 double evaluateFC(
const double*
const x,
double*
const c,
double*
const objGrad,
double*
const jac);
86 int evaluateGA(
const double*
const x,
double*
const objGrad,
double*
const jac);
97 int evaluateHess(
const double*
const x,
double objScaler,
const double*
const lambda,
double*
const hess);
131 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:130
Class for representing problems to be solved by Knitro, providing an interface to the problem definit...
Definition: knitroProblem.h:47
unsigned _nvar
Definition: knitroProblem.h:124
std::vector< Constraint > * _constraintProperties
Definition: knitroProblem.h:129
UbpStructure * _structure
Definition: knitroProblem.h:128
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.
KnitroProblem(unsigned nvarIn, unsigned neqIn, unsigned nineqIn, const unsigned nineqSquashIn, const std::vector< babBase::OptimizationVariable > &variables, UbpStructure *structureIn, std::vector< Constraint > *constraintPropertiesIn, std::shared_ptr< DagObj > dagObj)
Constructor actually used in ubp.cpp. Initializes the corresponding members.
namespace holding all essentials of MAiNGO
Definition: aleModel.h:31
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:127
virtual ~KnitroProblem()
Destructor.
Struct for storing structure information for the upper bounding solver.
Definition: ubpStructure.h:35
unsigned _nineqSquash
Definition: knitroProblem.h:126
unsigned _nineq
Definition: knitroProblem.h:125
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.