alpaqa no-casadi-dep
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Namespaces | Classes | Typedefs | Functions
builtin Namespace Reference

Namespaces

namespace  casadi
 
namespace  casadi_loader
 
namespace  detail
 

Classes

class  CasADiControlProblem
 
class  CasADiFunctionEvaluator
 Class for evaluating CasADi functions, allocating the necessary workspace storage in advance for allocation-free evaluations. More...
 
struct  CasADiFunctions
 
class  CasADiProblem
 Problem definition for a CasADi problem, loaded from a DLL. More...
 
class  Function
 Class that loads and calls pre-compiled CasADi functions in a DLL/SO file. More...
 
struct  invalid_argument_dimensions
 
struct  SerializedCasADiFunctions
 

Typedefs

using fname_incref = ExternalFunction<"_incref", void(void)>
 
using fname_decref = ExternalFunction<"_decref", void(void)>
 
using fname_n_in = ExternalFunction<"_n_in", casadi_int(void)>
 
using fname_n_out = ExternalFunction<"_n_out", casadi_int(void)>
 
using fname_name_in = ExternalFunction<"_name_in", const char *(casadi_int ind)>
 
using fname_name_out = ExternalFunction<"_name_out", const char *(casadi_int ind)>
 
using fname_sparsity_in = ExternalFunction<"_sparsity_in", const casadi_int *(casadi_int ind)>
 
using fname_sparsity_out = ExternalFunction<"_sparsity_out", const casadi_int *(casadi_int ind)>
 
using fname_alloc_mem = ExternalFunction<"_alloc_mem", void *(void)>
 
using fname_init_mem = ExternalFunction<"_init_mem", int(void *mem)>
 
using fname_free_mem = ExternalFunction<"_free_mem", int(void *mem)>
 
using fname_work = ExternalFunction<"_work", int(casadi_int *sz_arg, casadi_int *sz_res, casadi_int *sz_iw, casadi_int *sz_w)>
 
using fname = ExternalFunction<"", int(const casadi_real **arg, casadi_real **res, casadi_int *iw, casadi_real *w, void *mem)>
 
using casadi_int = long long int
 
using casadi_real = double
 
using dim = std::pair< casadi_int, casadi_int >
 

Functions

Function external (const std::string &name, const std::string &bin_name)
 Load the given CasADi function from the given DLL/SO file.
 
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<Config Conf>
Sparsity< Conf > convert_csc (const auto &sp, sparsity::Symmetry symmetry)
 
template<class F >
auto wrap (const char *name, F f)
 

Class Documentation

◆ builtin::SerializedCasADiFunctions

struct builtin::SerializedCasADiFunctions
+ Collaboration diagram for SerializedCasADiFunctions:
Class Members
map< string, string > functions

Typedef Documentation

◆ fname_incref

using fname_incref = ExternalFunction<"_incref", void(void)>

Definition at line 11 of file casadi-functions.hpp.

◆ fname_decref

using fname_decref = ExternalFunction<"_decref", void(void)>

Definition at line 12 of file casadi-functions.hpp.

◆ fname_n_in

using fname_n_in = ExternalFunction<"_n_in", casadi_int(void)>

Definition at line 13 of file casadi-functions.hpp.

◆ fname_n_out

using fname_n_out = ExternalFunction<"_n_out", casadi_int(void)>

Definition at line 14 of file casadi-functions.hpp.

◆ fname_name_in

using fname_name_in = ExternalFunction<"_name_in", const char *(casadi_int ind)>

Definition at line 15 of file casadi-functions.hpp.

◆ fname_name_out

using fname_name_out = ExternalFunction<"_name_out", const char *(casadi_int ind)>

Definition at line 16 of file casadi-functions.hpp.

◆ fname_sparsity_in

using fname_sparsity_in = ExternalFunction<"_sparsity_in", const casadi_int *(casadi_int ind)>

Definition at line 17 of file casadi-functions.hpp.

◆ fname_sparsity_out

using fname_sparsity_out = ExternalFunction<"_sparsity_out", const casadi_int *(casadi_int ind)>

Definition at line 18 of file casadi-functions.hpp.

◆ fname_alloc_mem

using fname_alloc_mem = ExternalFunction<"_alloc_mem", void *(void)>

Definition at line 19 of file casadi-functions.hpp.

◆ fname_init_mem

using fname_init_mem = ExternalFunction<"_init_mem", int(void *mem)>

Definition at line 20 of file casadi-functions.hpp.

◆ fname_free_mem

using fname_free_mem = ExternalFunction<"_free_mem", int(void *mem)>

Definition at line 21 of file casadi-functions.hpp.

◆ fname_work

using fname_work = ExternalFunction<"_work", int(casadi_int *sz_arg, casadi_int *sz_res, casadi_int *sz_iw, casadi_int *sz_w)>

Definition at line 22 of file casadi-functions.hpp.

◆ fname

using fname = ExternalFunction<"", int(const casadi_real **arg, casadi_real **res, casadi_int *iw, casadi_real *w, void *mem)>

Definition at line 23 of file casadi-functions.hpp.

◆ casadi_int

using casadi_int = long long int

Definition at line 12 of file casadi-types.hpp.

◆ casadi_real

using casadi_real = double

Definition at line 15 of file casadi-types.hpp.

◆ dim

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

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

Function Documentation

◆ external()

Function external ( const std::string &  name,
const std::string &  bin_name 
)

Load the given CasADi function from the given DLL/SO file.

Definition at line 87 of file casadi-external-function.cpp.

◆ deserialize_problem()

CasADiFunctions deserialize_problem ( const SerializedCasADiFunctions functions)

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

Definition at line 22 of file CompleteCasADiProblem.cpp.

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

◆ 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 29 of file CompleteCasADiProblem.cpp.

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

◆ wrap_load()

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

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

+ Here is the call graph for this function:
+ 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 33 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 40 of file CasADiLoader-util.hpp.

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

◆ dims()

constexpr auto dims ( auto...  a)
inlineconstexpr

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

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

◆ convert_csc()

template<Config Conf>
Sparsity< Conf > convert_csc ( const auto &  sp,
sparsity::Symmetry  symmetry 
)

Definition at line 372 of file CasADiProblem.tpp.

◆ wrap()

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

Definition at line 11 of file CompleteCasADiProblem.cpp.

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