A simplified interface for NLP modeling/solving.
More...
#include <optistack.hpp>
This class offers a view with solution retrieval facilities The API is guaranteed to be stable.
- Date
- 2017
- Author
- Joris Gillis, Erik Lambrechts
Extra doc: https://github.com/casadi/casadi/wiki/L_1v
Definition at line 628 of file optistack.hpp.
◆ OptiSol()
casadi::OptiSol::OptiSol |
( |
const Opti & |
opti | ) |
|
|
protected |
◆ disp()
void casadi::OptiSol::disp |
( |
std::ostream & |
stream, |
|
|
bool |
more = false |
|
) |
| const |
◆ get_str()
std::string casadi::OptiSol::get_str |
( |
bool |
more = false | ) |
const |
◆ opti()
Opti casadi::OptiSol::opti |
( |
| ) |
const |
|
inline |
◆ stats()
Dict casadi::OptiSol::stats |
( |
| ) |
const |
◆ type_name()
std::string casadi::OptiSol::type_name |
( |
| ) |
const |
|
inline |
◆ value() [1/3]
native_DM casadi::OptiSol::value |
( |
const DM & |
x, |
|
|
const std::vector< MX > & |
values = std::vector< MX >() |
|
) |
| const |
Obtain value of expression at the current value
In regular mode, teh current value is the converged solution In debug mode, the value can be non-converged
- Parameters
-
[in] | values | Optional assignment expressions (e.g. x==3) to overrule the current value |
◆ value() [2/3]
native_DM casadi::OptiSol::value |
( |
const MX & |
x, |
|
|
const std::vector< MX > & |
values = std::vector< MX >() |
|
) |
| const |
Obtain value of expression at the current value
In regular mode, teh current value is the converged solution In debug mode, the value can be non-converged
- Parameters
-
[in] | values | Optional assignment expressions (e.g. x==3) to overrule the current value |
◆ value() [3/3]
native_DM casadi::OptiSol::value |
( |
const SX & |
x, |
|
|
const std::vector< MX > & |
values = std::vector< MX >() |
|
) |
| const |
Obtain value of expression at the current value
In regular mode, teh current value is the converged solution In debug mode, the value can be non-converged
- Parameters
-
[in] | values | Optional assignment expressions (e.g. x==3) to overrule the current value |
◆ value_parameters()
std::vector<MX> casadi::OptiSol::value_parameters |
( |
| ) |
const |
◆ value_variables()
std::vector<MX> casadi::OptiSol::value_variables |
( |
| ) |
const |
◆ OptiNode
◆ optistack_
The documentation for this class was generated from the following file: