List of all members | Public Member Functions
casadi::NlpBuilder Class Reference

A symbolic NLP representation. More...

#include <nlp_builder.hpp>

Detailed Description

Date
2012-2015
Author
Joel Andersson
Extra doc: https://github.com/casadi/casadi/wiki/L_1e2 

Definition at line 39 of file nlp_builder.hpp.

Inheritance diagram for casadi::NlpBuilder:
Inheritance graph
[legend]

Public Member Functions

void import_nl (const std::string &filename, const Dict &opts=Dict())
 Import an .nl file. More...
 
std::string type_name () const
 Readable name of the class. More...
 
void disp (std::ostream &stream, bool more=false) const
 Print a description of the object. More...
 
std::string get_str (bool more=false) const
 Get string representation. More...
 

Public Attributes

Symbolic representation of the NLP

Data members

std::vector< MXx
 Variables. More...
 
MX f
 Objective. More...
 
std::vector< MXg
 Constraints. More...
 
std::vector< double > x_lb
 Bounds on x. More...
 
std::vector< double > x_ub
 Variables. More...
 
std::vector< double > g_lb
 Bounds on g. More...
 
std::vector< double > g_ub
 Variables. More...
 
std::vector< double > x_init
 Primal initial guess. More...
 
std::vector< double > lambda_init
 Dual initial guess. More...
 
std::vector< bool > discrete
 Discrete variables. More...
 

Member Function Documentation

◆ disp()

void casadi::NlpBuilder::disp ( std::ostream &  stream,
bool  more = false 
) const

◆ get_str()

std::string casadi::NlpBuilder::get_str ( bool  more = false) const
inline

Definition at line 83 of file nlp_builder.hpp.

◆ import_nl()

void casadi::NlpBuilder::import_nl ( const std::string &  filename,
const Dict opts = Dict() 
)

◆ type_name()

std::string casadi::NlpBuilder::type_name ( ) const
inline

Definition at line 77 of file nlp_builder.hpp.

Member Data Documentation

◆ discrete

std::vector<bool> casadi::NlpBuilder::discrete

Definition at line 70 of file nlp_builder.hpp.

◆ f

MX casadi::NlpBuilder::f

Definition at line 52 of file nlp_builder.hpp.

◆ g

std::vector<MX> casadi::NlpBuilder::g

Definition at line 55 of file nlp_builder.hpp.

◆ g_lb

std::vector<double> casadi::NlpBuilder::g_lb

Definition at line 61 of file nlp_builder.hpp.

◆ g_ub

std::vector<double> casadi::NlpBuilder::g_ub

Definition at line 61 of file nlp_builder.hpp.

◆ lambda_init

std::vector<double> casadi::NlpBuilder::lambda_init

Definition at line 67 of file nlp_builder.hpp.

◆ x

std::vector<MX> casadi::NlpBuilder::x

Definition at line 49 of file nlp_builder.hpp.

◆ x_init

std::vector<double> casadi::NlpBuilder::x_init

Definition at line 64 of file nlp_builder.hpp.

◆ x_lb

std::vector<double> casadi::NlpBuilder::x_lb

Definition at line 58 of file nlp_builder.hpp.

◆ x_ub

std::vector<double> casadi::NlpBuilder::x_ub

Definition at line 58 of file nlp_builder.hpp.


The documentation for this class was generated from the following file: