Skip to content
Joris Gillis edited this page Apr 4, 2023 · 2 revisions

Standard documentation for Opti.to_function:

 [INTERNAL] 

::

 to_function(self, str name, [MX] args, [MX] res, dict opts) -> Function
 to_function(self, str name, dict:MX dict, [str] name_in, [str] name_out, dict opts) -> Function
 to_function(self, str name, [MX] args, [MX] res, [str] name_in, [str] name_out, dict opts) -> Function

Create a CasADi Function from the Opti solver.

Parameters:

name: Name of the resulting CasADi Function

args: List of parameters and decision/dual variables (which can be given an

initial guess) with the resulting Function

res: List of expressions that will get evaluated at the optimal solution

opts: Standard CasADi Funcion options

Extra doc: https://github.com/casadi/casadi/wiki/L_1j

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/optistack.hpp#L336

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/optistack.cpp#L341-L361

.......

::

 to_function(self, str name, [MX] args, [MX] res, dict opts)

[INTERNAL] Create a CasADi Function from the Opti solver.

Parameters:

name: Name of the resulting CasADi Function

args: List of parameters and decision/dual variables (which can be given an

initial guess) with the resulting Function

res: List of expressions that will get evaluated at the optimal solution

opts: Standard CasADi Funcion options

Extra doc: https://github.com/casadi/casadi/wiki/L_1j

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/optistack.hpp#L326

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/optistack.cpp#L335-L339

.............

.......

::

 to_function(self, str name, dict:MX dict, [str] name_in, [str] name_out, dict opts)

[INTERNAL] Create a CasADi Function from the Opti solver.

Parameters:

name: Name of the resulting CasADi Function

args: List of parameters and decision/dual variables (which can be given an

initial guess) with the resulting Function

res: List of expressions that will get evaluated at the optimal solution

opts: Standard CasADi Funcion options

Extra doc: https://github.com/casadi/casadi/wiki/L_1j

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/optistack.hpp#L336

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/optistack.cpp#L341-L361

.............

.......

::

 to_function(self, str name, [MX] args, [MX] res, [str] name_in, [str] name_out, dict opts)

[INTERNAL] Create a CasADi Function from the Opti solver.

Parameters:

name: Name of the resulting CasADi Function

args: List of parameters and decision/dual variables (which can be given an

initial guess) with the resulting Function

res: List of expressions that will get evaluated at the optimal solution

opts: Standard CasADi Funcion options

Extra doc: https://github.com/casadi/casadi/wiki/L_1j

Doc source: https://github.com/casadi/casadi/blob/develop/casadi/core/optistack.hpp#L330

Implementation: https://github.com/casadi/casadi/blob/develop/casadi/core/optistack.cpp#L323-L333

.............

Extra documentation

To edit, see writing tips.

Clone this wiki locally