Nonconvex constrained optimization
Loading...
Searching...
No Matches
alpaqa::casadi_loader Namespace Reference

Classes

struct  CasADiControlFunctionsWithParam
class  CasADiFunctionEvaluator
 Class for evaluating CasADi functions, allocating the necessary workspace storage in advance for allocation-free evaluations. More...
struct  CasADiFunctionsWithParam
struct  invalid_argument_dimensions

Typedefs

using dim = std::pair<casadi_int, casadi_int>

Functions

CasADiFunctions deserialize_problem (const SerializedCasADiFunctions &functions)
 Convert the map of strings to a map of CasADi functions.
void complete_problem (CasADiFunctions &functions)
 Complete the given problem that contains only functions f and g, adding the necessary functions and gradients so that it can be used with CasADiProblem.
template<class Loader, class F>
auto wrap_load (Loader &&loader, const char *name, F f)
template<class T, class Loader, class... Args>
auto wrapped_load (Loader &&loader, const char *name, Args &&...args)
template<class T, class Loader, class... Args>
std::optional< T > try_load (Loader &&loader, const char *name, Args &&...args)
constexpr auto dims (auto... a)
template<class F>
auto wrap (const char *name, F f)

Typedef Documentation

◆ dim

using dim = std::pair<casadi_int, casadi_int>

Definition at line 62 of file CasADiLoader-util.hpp.

Function Documentation

◆ deserialize_problem()

CasADiFunctions deserialize_problem ( const SerializedCasADiFunctions & functions)

Convert the map of strings to a map of CasADi functions.

Definition at line 25 of file CompleteCasADiProblem.cpp.

◆ complete_problem()

void complete_problem ( CasADiFunctions & functions)

Complete the given problem that contains only functions f and g, adding the necessary functions and gradients so that it can be used with CasADiProblem.

Definition at line 32 of file CompleteCasADiProblem.cpp.

Here is the call graph for this function:

◆ wrap_load()

template<class Loader, class F>
auto wrap_load ( Loader && loader,
const char * name,
F f )

Definition at line 27 of file CasADiLoader-util.hpp.

Here is the caller graph for this function:

◆ wrapped_load()

template<class T, class Loader, class... Args>
auto wrapped_load ( Loader && loader,
const char * name,
Args &&... args )

Definition at line 38 of file CasADiLoader-util.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ try_load()

template<class T, class Loader, class... Args>
std::optional< T > try_load ( Loader && loader,
const char * name,
Args &&... args )

Definition at line 45 of file CasADiLoader-util.hpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ dims()

auto dims ( auto... a)
inlineconstexpr

Definition at line 63 of file CasADiLoader-util.hpp.

Here is the caller graph for this function:

◆ wrap()

template<class F>
auto wrap ( const char * name,
F f )

Definition at line 14 of file CompleteCasADiProblem.cpp.

Here is the caller graph for this function: