27 #ifndef CASADI_NLPSOL_HPP
28 #define CASADI_NLPSOL_HPP
30 #include "function.hpp"
334 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
336 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
338 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
339 const std::string& fname,
const Dict& opts=
Dict());
340 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
341 const Importer& compiler,
const Dict& opts=
Dict());
342 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
343 const NlpBuilder& nl,
const Dict& opts=
Dict());
344 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
345 const Function& nlp,
const Dict& opts=
Dict());
396 CASADI_EXPORT std::vector<std::string>
nlpsol_in();
442 CASADI_EXPORT std::vector<std::string>
nlpsol_out();
476 CASADI_EXPORT std::string
nlpsol_in(casadi_int ind);
510 CASADI_EXPORT std::string
nlpsol_out(casadi_int ind);
644 CASADI_EXPORT std::vector<std::string>
nlpsol_options(
const std::string& name);
676 CASADI_EXPORT std::string
nlpsol_option_type(
const std::string& name,
const std::string& op);
705 CASADI_EXPORT std::string
nlpsol_option_info(
const std::string& name,
const std::string& op);
734 CASADI_EXPORT
bool has_nlpsol(
const std::string& name);
771 CASADI_EXPORT
void load_nlpsol(
const std::string& name);
799 CASADI_EXPORT std::string
doc_nlpsol(
const std::string& name);
std::string doc_nlpsol(const std::string &name)
Get the documentation string of an NLP solver plugin.
bool has_nlpsol(const std::string &name)
Check if an NLP solver plugin is available.
void load_nlpsol(const std::string &name)
Explicitly load an NLP solver plugin.
std::string nlpsol_option_info(const std::string &name, const std::string &op)
Get the documentation string of an option of an NLP solver plugin.
casadi_int nlpsol_n_in()
Number of NLP solver inputs.
std::string nlpsol_option_type(const std::string &name, const std::string &op)
Get the type of an option of an NLP solver plugin.
std::vector< std::string > nlpsol_options(const std::string &name)
Get all options of an NLP solver plugin.
std::vector< std::string > nlpsol_in()
Get the input scheme of NLP solvers.
Function nlpsol(const std::string &name, const std::string &solver, const SXDict &nlp, const Dict &opts)
casadi_int nlpsol_n_out()
Number of NLP solver outputs.
std::vector< std::string > nlpsol_out()
Get the output scheme of NLP solvers.
double nlpsol_default_in(casadi_int ind)
Default value of an NLP solver input.
NlpsolInput
Input arguments of an NLP Solver.
@ NLPSOL_P
Value of fixed parameters (np x 1), default 0.
@ NLPSOL_UBX
Decision variables upper bound (nx x 1), default +inf.
@ NLPSOL_X0
Decision variables, initial guess (nx x 1), default 0.
@ NLPSOL_LAM_G0
Lagrange multipliers for bounds on G, initial guess (ng x 1), default 0.
@ NLPSOL_UBG
Constraints upper bound (ng x 1), default +inf.
@ NLPSOL_LAM_X0
Lagrange multipliers for bounds on X, initial guess (nx x 1), default 0.
@ NLPSOL_LBG
Constraints lower bound (ng x 1), default -inf.
@ NLPSOL_LBX
Decision variables lower bound (nx x 1), default -inf.
std::map< std::string, MX > MXDict
NlpsolOutput
Output arguments of an NLP Solver.
@ NLPSOL_G
Constraints function at the optimal solution (ng x 1)
@ NLPSOL_X
Decision variables at the optimal solution (nx x 1)
@ NLPSOL_F
Cost function value at the optimal solution (1 x 1)
@ NLPSOL_LAM_G
Lagrange multipliers for bounds on G at the solution (ng x 1); same sign convention.
NLPInput
Input arguments of an NLP function.
@ NL_NUM_IN
Number of NLP inputs.
NLPOutput
Output arguments of an NLP function.
@ NL_F
Objective function.
@ NL_G
Constraint function.
@ NL_NUM_OUT
Number of NLP outputs.
std::map< std::string, SX > SXDict
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.
const std::vector< std::string > NL_INPUTS
Shortname for onput arguments of an NLP function.
const std::vector< std::string > NL_OUTPUTS
Shortname for output arguments of an NLP function.