alpaqa 1.0.0a8
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Public Attributes | List of all members
alpaqa_control_problem_functions_t Struct Reference

#include <interop/dl-api/include/alpaqa/dl/dl-problem.h>

Detailed Description

Definition at line 178 of file dl-problem.h.

+ Collaboration diagram for alpaqa_control_problem_functions_t:

Public Attributes

uint64_t abi_version = 0xA1A000000001
 
alpaqa_length_t N
 
alpaqa_length_t nx
 
alpaqa_length_t nu
 
alpaqa_length_t nh
 
alpaqa_length_t nh_N
 
alpaqa_length_t nc
 
alpaqa_length_t nc_N
 
void(* get_U )(void *instance, alpaqa_real_t *lb, alpaqa_real_t *ub)
 
void(* get_D )(void *instance, alpaqa_real_t *lb, alpaqa_real_t *ub)
 
void(* get_D_N )(void *instance, alpaqa_real_t *lb, alpaqa_real_t *ub)
 
void(* get_x_init )(void *instance, alpaqa_real_t *x_init)
 
void(* eval_f )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *u, alpaqa_real_t *fxu)
 
void(* eval_jac_f )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *u, alpaqa_real_t *J_fxu)
 
void(* eval_grad_f_prod )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *u, const alpaqa_real_t *p, alpaqa_real_t *grad_fxu_p)
 
void(* eval_h )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *u, alpaqa_real_t *h)
 
void(* eval_h_N )(void *instance, const alpaqa_real_t *x, alpaqa_real_t *h)
 
alpaqa_real_t(* eval_l )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *h)
 
alpaqa_real_t(* eval_l_N )(void *instance, const alpaqa_real_t *h)
 
void(* eval_qr )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, alpaqa_real_t *qr)
 
void(* eval_q_N )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *h, alpaqa_real_t *q)
 
void(* eval_add_Q )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, alpaqa_real_t *Q)
 
void(* eval_add_Q_N )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *h, alpaqa_real_t *Q)
 
void(* eval_add_R_masked )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, const alpaqa_index_t *mask, alpaqa_real_t *R, alpaqa_real_t *work)
 
void(* eval_add_S_masked )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, const alpaqa_index_t *mask, alpaqa_real_t *S, alpaqa_real_t *work)
 
void(* eval_add_R_prod_masked )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, const alpaqa_index_t *mask_J, const alpaqa_index_t *mask_K, const alpaqa_real_t *v, alpaqa_real_t *out, alpaqa_real_t *work)
 
void(* eval_add_S_prod_masked )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, const alpaqa_index_t *mask_K, const alpaqa_real_t *v, alpaqa_real_t *out, alpaqa_real_t *work)
 
alpaqa_length_t(* get_R_work_size )(void *instance)
 
alpaqa_length_t(* get_S_work_size )(void *instance)
 
void(* eval_constr )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, alpaqa_real_t *c)
 
void(* eval_constr_N )(void *instance, const alpaqa_real_t *x, alpaqa_real_t *c)
 
void(* eval_grad_constr_prod )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *p, alpaqa_real_t *grad_cx_p)
 
void(* eval_grad_constr_prod_N )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *p, alpaqa_real_t *grad_cx_p)
 
void(* eval_add_gn_hess_constr )(void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *M, alpaqa_real_t *out)
 
void(* eval_add_gn_hess_constr_N )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *M, alpaqa_real_t *out)
 

Member Data Documentation

◆ abi_version

uint64_t abi_version = 0xA1A000000001

Definition at line 179 of file dl-problem.h.

◆ N

Definition at line 180 of file dl-problem.h.

◆ nx

Definition at line 180 of file dl-problem.h.

◆ nu

Definition at line 180 of file dl-problem.h.

◆ nh

Definition at line 180 of file dl-problem.h.

◆ nh_N

Definition at line 180 of file dl-problem.h.

◆ nc

Definition at line 180 of file dl-problem.h.

◆ nc_N

Definition at line 180 of file dl-problem.h.

◆ get_U

void(* get_U) (void *instance, alpaqa_real_t *lb, alpaqa_real_t *ub)

Definition at line 183 of file dl-problem.h.

◆ get_D

void(* get_D) (void *instance, alpaqa_real_t *lb, alpaqa_real_t *ub)

Definition at line 187 of file dl-problem.h.

◆ get_D_N

void(* get_D_N) (void *instance, alpaqa_real_t *lb, alpaqa_real_t *ub)

Definition at line 191 of file dl-problem.h.

◆ get_x_init

void(* get_x_init) (void *instance, alpaqa_real_t *x_init)

Definition at line 195 of file dl-problem.h.

◆ eval_f

void(* eval_f) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *u, alpaqa_real_t *fxu)

Definition at line 198 of file dl-problem.h.

◆ eval_jac_f

void(* eval_jac_f) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *u, alpaqa_real_t *J_fxu)

Definition at line 204 of file dl-problem.h.

◆ eval_grad_f_prod

void(* eval_grad_f_prod) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *u, const alpaqa_real_t *p, alpaqa_real_t *grad_fxu_p)

Definition at line 210 of file dl-problem.h.

◆ eval_h

void(* eval_h) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *u, alpaqa_real_t *h)

Definition at line 217 of file dl-problem.h.

◆ eval_h_N

void(* eval_h_N) (void *instance, const alpaqa_real_t *x, alpaqa_real_t *h)

Definition at line 223 of file dl-problem.h.

◆ eval_l

alpaqa_real_t(* eval_l) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *h)

Definition at line 227 of file dl-problem.h.

◆ eval_l_N

alpaqa_real_t(* eval_l_N) (void *instance, const alpaqa_real_t *h)

Definition at line 231 of file dl-problem.h.

◆ eval_qr

void(* eval_qr) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, alpaqa_real_t *qr)

Definition at line 234 of file dl-problem.h.

◆ eval_q_N

void(* eval_q_N) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *h, alpaqa_real_t *q)

Definition at line 240 of file dl-problem.h.

◆ eval_add_Q

void(* eval_add_Q) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, alpaqa_real_t *Q)

Definition at line 245 of file dl-problem.h.

◆ eval_add_Q_N

void(* eval_add_Q_N) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *h, alpaqa_real_t *Q)

Definition at line 251 of file dl-problem.h.

◆ eval_add_R_masked

void(* eval_add_R_masked) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, const alpaqa_index_t *mask, alpaqa_real_t *R, alpaqa_real_t *work)

Definition at line 256 of file dl-problem.h.

◆ eval_add_S_masked

void(* eval_add_S_masked) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, const alpaqa_index_t *mask, alpaqa_real_t *S, alpaqa_real_t *work)

Definition at line 264 of file dl-problem.h.

◆ eval_add_R_prod_masked

void(* eval_add_R_prod_masked) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, const alpaqa_index_t *mask_J, const alpaqa_index_t *mask_K, const alpaqa_real_t *v, alpaqa_real_t *out, alpaqa_real_t *work)

Definition at line 272 of file dl-problem.h.

◆ eval_add_S_prod_masked

void(* eval_add_S_prod_masked) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *xu, const alpaqa_real_t *h, const alpaqa_index_t *mask_K, const alpaqa_real_t *v, alpaqa_real_t *out, alpaqa_real_t *work)

Definition at line 282 of file dl-problem.h.

◆ get_R_work_size

alpaqa_length_t(* get_R_work_size) (void *instance)

Definition at line 291 of file dl-problem.h.

◆ get_S_work_size

alpaqa_length_t(* get_S_work_size) (void *instance)

Definition at line 293 of file dl-problem.h.

◆ eval_constr

void(* eval_constr) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, alpaqa_real_t *c)

Definition at line 295 of file dl-problem.h.

◆ eval_constr_N

void(* eval_constr_N) (void *instance, const alpaqa_real_t *x, alpaqa_real_t *c)

Definition at line 300 of file dl-problem.h.

◆ eval_grad_constr_prod

void(* eval_grad_constr_prod) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *p, alpaqa_real_t *grad_cx_p)

Definition at line 304 of file dl-problem.h.

◆ eval_grad_constr_prod_N

void(* eval_grad_constr_prod_N) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *p, alpaqa_real_t *grad_cx_p)

Definition at line 310 of file dl-problem.h.

◆ eval_add_gn_hess_constr

void(* eval_add_gn_hess_constr) (void *instance, alpaqa_index_t timestep, const alpaqa_real_t *x, const alpaqa_real_t *M, alpaqa_real_t *out)

Definition at line 315 of file dl-problem.h.

◆ eval_add_gn_hess_constr_N

void(* eval_add_gn_hess_constr_N) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *M, alpaqa_real_t *out)

Definition at line 321 of file dl-problem.h.


The documentation for this struct was generated from the following file: