26 #ifndef CASADI_NLP_BUILDER_HPP
27 #define CASADI_NLP_BUILDER_HPP
40 :
public SWIG_IF_ELSE(PrintableCommon, Printable<NlpBuilder>) {
58 std::vector<double>
x_lb, x_ub;
61 std::vector<double>
g_lb, g_ub;
77 std::string
type_name()
const {
return "NlpBuilder";}
80 void disp(std::ostream& stream,
bool more=
false)
const;
83 std::string
get_str(
bool more=
false)
const {
96 class CASADI_EXPORT NlImporter {
99 NlImporter(NlpBuilder& nlp,
const std::string& filename,
const Dict& opts);
105 double read_double();
119 casadi_int n_var_, n_con_, n_obj_, n_eq_, n_lcon_;
122 casadi_int nlvc_, nlvo_, nlvb_;
124 casadi_int nbv_, niv_, nlvbi_, nlvci_, nlvoi_;
A symbolic NLP representation.
void disp(std::ostream &stream, bool more=false) const
Print a description of the object.
std::vector< double > x_lb
Bounds on x.
std::vector< bool > discrete
Discrete variables.
std::vector< double > lambda_init
Dual initial guess.
std::vector< MX > x
Variables.
std::vector< double > g_lb
Bounds on g.
std::vector< MX > g
Constraints.
std::string get_str(bool more=false) const
Get string representation.
std::string type_name() const
Readable name of the class.
void import_nl(const std::string &filename, const Dict &opts=Dict())
Import an .nl file.
std::vector< double > x_init
Primal initial guess.
GenericType::Dict Dict
C++ equivalent of Python's dict or MATLAB's struct.