26 #ifndef CASADI_NLPSOL_HPP
27 #define CASADI_NLPSOL_HPP
29 #include "function.hpp"
72 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
74 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
76 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
77 const std::string& fname,
const Dict& opts=
Dict());
78 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
79 const Importer& compiler,
const Dict& opts=
Dict());
80 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
81 const NlpBuilder& nl,
const Dict& opts=
Dict());
82 CASADI_EXPORT Function
nlpsol(
const std::string& name,
const std::string& solver,
83 const Function& nlp,
const Dict& opts=
Dict());
93 CASADI_EXPORT std::vector<std::string>
nlpsol_in();
102 CASADI_EXPORT std::vector<std::string>
nlpsol_out();
111 CASADI_EXPORT std::string
nlpsol_in(casadi_int ind);
120 CASADI_EXPORT std::string
nlpsol_out(casadi_int ind);
143 CASADI_EXPORT std::vector<std::string>
nlpsol_options(
const std::string& name);
148 CASADI_EXPORT std::string
nlpsol_option_type(
const std::string& name,
const std::string& op);
153 CASADI_EXPORT std::string
nlpsol_option_info(
const std::string& name,
const std::string& op);
156 CASADI_EXPORT
bool has_nlpsol(
const std::string& name);
159 CASADI_EXPORT
void load_nlpsol(
const std::string& name);
162 CASADI_EXPORT std::string
doc_nlpsol(
const std::string& name);
std::string doc_nlpsol(const std::string &name)
Get the documentation string for a plugin.
bool has_nlpsol(const std::string &name)
Check if a particular plugin is available.
void load_nlpsol(const std::string &name)
Explicitly load a plugin dynamically.
std::string nlpsol_option_info(const std::string &name, const std::string &op)
Get documentation for a particular option.
casadi_int nlpsol_n_in()
Number of NLP solver inputs.
std::string nlpsol_option_type(const std::string &name, const std::string &op)
Get type info for a particular option.
std::vector< std::string > nlpsol_options(const std::string &name)
Get all options for a plugin.
std::vector< std::string > nlpsol_in()
Get 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 NLP solver output scheme of NLP solvers.
double nlpsol_default_in(casadi_int ind)
Default input for an NLP solver.
NlpsolInput
Input arguments of an NLP Solver.
@ NLPSOL_P
Value of fixed parameters (np x 1)
@ NLPSOL_UBX
Decision variables upper bound (nx x 1), default +inf.
@ NLPSOL_X0
Decision variables, initial guess (nx x 1)
@ NLPSOL_LAM_G0
Lagrange multipliers for bounds on G, initial guess (ng x 1)
@ NLPSOL_UBG
Constraints upper bound (ng x 1), default +inf.
@ NLPSOL_LAM_X0
Lagrange multipliers for bounds on X, initial guess (nx x 1)
@ 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_LAM_P
Lagrange multipliers for bounds on P at the solution (np 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)
@ NLPSOL_LAM_X
Lagrange multipliers for bounds on X at the solution (nx x 1)
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.