#include <alpaqa/casadi/CasADiControlProblem.hpp>
Definition at line 18 of file CasADiControlProblem.hpp.
Public Types | |
using | Box = alpaqa::Box< config_t > |
Public Attributes | |
length_t | N |
length_t | nx |
length_t | nu |
length_t | nh |
length_t | nh_N |
length_t | nc |
length_t | nc_N |
vec | x_init |
vec | param |
Box | U |
Box | D |
Box | D_N |
vec | work |
index_t | penalty_alm_split = 0 |
Components of the constraint function with indices below this number are handled using a quadratic penalty method rather than using an augmented Lagrangian method. | |
index_t | penalty_alm_split_N = 0 |
Same as penalty_alm_split, but for the terminal constraint. | |
Private Types | |
using | Functions = casadi_loader::CasADiControlFunctionsWithParam< Conf > |
Private Attributes | |
util::copyable_unique_ptr< Functions > | impl |
using Box = alpaqa::Box<config_t> |
Definition at line 21 of file CasADiControlProblem.hpp.
|
private |
Definition at line 176 of file CasADiControlProblem.hpp.
CasADiControlProblem | ( | const std::string & | filename, |
length_t | N | ||
) |
|
default |
|
default |
|
defaultnoexcept |
|
default |
|
defaultnoexcept |
void load_numerical_data | ( | const std::filesystem::path & | filepath, |
char | sep = ',' |
||
) |
Load the numerical problem data (bounds and parameters) from a CSV file.
The file should contain 8 rows, with the following contents:
Line endings are encoded using a single line feed (\n
), and the column separator can be specified using the sep
argument.
Definition at line 253 of file CasADiControlProblem.tpp.
Definition at line 60 of file CasADiControlProblem.hpp.
Definition at line 61 of file CasADiControlProblem.hpp.
Definition at line 62 of file CasADiControlProblem.hpp.
Definition at line 63 of file CasADiControlProblem.hpp.
Definition at line 322 of file CasADiControlProblem.tpp.
Definition at line 330 of file CasADiControlProblem.tpp.
void eval_grad_f_prod | ( | index_t | timestep, |
crvec | x, | ||
crvec | u, | ||
crvec | p, | ||
rvec | grad_fxu_p | ||
) | const |
Definition at line 339 of file CasADiControlProblem.tpp.
Definition at line 350 of file CasADiControlProblem.tpp.
Definition at line 358 of file CasADiControlProblem.tpp.
Definition at line 364 of file CasADiControlProblem.tpp.
Definition at line 371 of file CasADiControlProblem.tpp.
Definition at line 378 of file CasADiControlProblem.tpp.
Definition at line 386 of file CasADiControlProblem.tpp.
Definition at line 393 of file CasADiControlProblem.tpp.
Definition at line 416 of file CasADiControlProblem.tpp.
void eval_add_R_prod_masked | ( | index_t | timestep, |
crvec | xu, | ||
crvec | h, | ||
crindexvec | mask_J, | ||
crindexvec | mask_K, | ||
crvec | v, | ||
rvec | out, | ||
rvec | work | ||
) | const |
auto get_R_work_size | ( | ) | const |
Definition at line 559 of file CasADiControlProblem.tpp.
auto get_S_work_size | ( | ) | const |
Definition at line 565 of file CasADiControlProblem.tpp.
Definition at line 571 of file CasADiControlProblem.tpp.
void eval_grad_constr_prod | ( | index_t | timestep, |
crvec | x, | ||
crvec | p, | ||
rvec | grad_cx_p | ||
) | const |
Definition at line 580 of file CasADiControlProblem.tpp.
void eval_add_gn_hess_constr | ( | index_t | timestep, |
crvec | x, | ||
crvec | M, | ||
rmat | out | ||
) | const |
Definition at line 590 of file CasADiControlProblem.tpp.
Definition at line 616 of file CasADiControlProblem.tpp.
Definition at line 625 of file CasADiControlProblem.tpp.
Definition at line 634 of file CasADiControlProblem.tpp.
|
inline |
Definition at line 98 of file CasADiControlProblem.hpp.
|
inline |
Definition at line 123 of file CasADiControlProblem.hpp.
|
inline |
Definition at line 124 of file CasADiControlProblem.hpp.
|
inline |
Definition at line 125 of file CasADiControlProblem.hpp.
|
inline |
Definition at line 126 of file CasADiControlProblem.hpp.
|
inline |
Definition at line 127 of file CasADiControlProblem.hpp.
|
inline |
Definition at line 128 of file CasADiControlProblem.hpp.
|
inline |
Definition at line 129 of file CasADiControlProblem.hpp.
Definition at line 132 of file CasADiControlProblem.hpp.
Definition at line 140 of file CasADiControlProblem.hpp.
length_t N |
Definition at line 22 of file CasADiControlProblem.hpp.
length_t nx |
Definition at line 22 of file CasADiControlProblem.hpp.
length_t nu |
Definition at line 22 of file CasADiControlProblem.hpp.
length_t nh |
Definition at line 22 of file CasADiControlProblem.hpp.
length_t nh_N |
Definition at line 22 of file CasADiControlProblem.hpp.
length_t nc |
Definition at line 22 of file CasADiControlProblem.hpp.
length_t nc_N |
Definition at line 22 of file CasADiControlProblem.hpp.
vec x_init |
Definition at line 23 of file CasADiControlProblem.hpp.
vec param |
Definition at line 24 of file CasADiControlProblem.hpp.
Box U |
Definition at line 25 of file CasADiControlProblem.hpp.
Box D |
Definition at line 25 of file CasADiControlProblem.hpp.
Box D_N |
Definition at line 25 of file CasADiControlProblem.hpp.
|
mutable |
Definition at line 26 of file CasADiControlProblem.hpp.
index_t penalty_alm_split = 0 |
Components of the constraint function with indices below this number are handled using a quadratic penalty method rather than using an augmented Lagrangian method.
Specifically, the Lagrange multipliers for these components (which determine the shifts in ALM) are kept at zero.
Definition at line 32 of file CasADiControlProblem.hpp.
index_t penalty_alm_split_N = 0 |
Same as penalty_alm_split, but for the terminal constraint.
Definition at line 34 of file CasADiControlProblem.hpp.
|
private |
Definition at line 177 of file CasADiControlProblem.hpp.