12 using namespace Ipopt;
13 using namespace Bonmin;
41 printSol_(other.printSol_){}
52 virtual bool get_variables_types(Index n, VariableType* var_types);
55 virtual bool get_variables_linearity(Index n, Ipopt::TNLP::LinearityType* var_types);
61 virtual bool get_constraints_linearity(Index m, Ipopt::TNLP::LinearityType* const_types);
76 virtual bool get_nlp_info(Index& n, Index&m, Index& nnz_jac_g,
77 Index& nnz_h_lag, TNLP::IndexStyleEnum& index_style);
87 virtual bool get_bounds_info(Index n, Number* x_l, Number* x_u,
88 Index m, Number* g_l, Number* g_u);
97 virtual bool get_starting_point(Index n,
bool init_x, Number* x,
98 bool init_z, Number* z_L, Number* z_U,
99 Index m,
bool init_lambda,
109 virtual bool eval_f(Index n,
const Number* x,
bool new_x, Number& obj_value);
118 virtual bool eval_grad_f(Index n,
const Number* x,
bool new_x, Number* grad_f);
129 virtual bool eval_g(Index n,
const Number* x,
bool new_x, Index m, Number* g);
142 virtual bool eval_jac_g(Index n,
const Number* x,
bool new_x,
143 Index m, Index nele_jac, Index* iRow, Index *jCol,
157 virtual bool eval_h(Index n,
const Number* x,
bool new_x,
158 Number obj_factor, Index m,
const Number* lambda,
159 bool new_lambda, Index nele_hess, Index* iRow,
160 Index* jCol, Number* values);
165 Index n,
const Number* x, Number obj_value);
Base class for all MINLPs that use a standard triplet matrix form and dense vectors.
MyTMINLP()
Default constructor.
virtual ~MyTMINLP()
virtual destructor.
Class to store sos constraints for model.
SolverReturn
Return statuses of algorithm.
A C++ example for interfacing an MINLP with bonmin.
virtual const SosInfo * sosConstraints() const
void printSolutionAtEndOfAlgorithm()
Stores branching priorities information.
MyTMINLP(const MyTMINLP &other)
Copy constructor.
virtual const BranchingInfo * branchingInfo() const