alpaqa pantr
Nonconvex constrained optimization
Loading...
Searching...
No Matches
Public Attributes | List of all members
alpaqa_problem_functions_t Struct Reference

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

Detailed Description

Examples
C++/DLProblem/main.cpp.

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

+ Collaboration diagram for alpaqa_problem_functions_t:

Public Attributes

char version [16]
 
alpaqa_length_t n
 
alpaqa_length_t m
 
alpaqa_real_t(* eval_f )(void *instance, const alpaqa_real_t *x)
 
void(* eval_grad_f )(void *instance, const alpaqa_real_t *x, alpaqa_real_t *grad_fx)
 
void(* eval_g )(void *instance, const alpaqa_real_t *x, alpaqa_real_t *gx)
 
void(* eval_grad_g_prod )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, alpaqa_real_t *grad_gxy)
 
void(* eval_jac_g )(void *instance, const alpaqa_real_t *x, alpaqa_index_t *inner_idx, alpaqa_index_t *outer_ptr, alpaqa_real_t *J_values)
 
alpaqa_length_t(* get_jac_g_num_nonzeros )(void *instance)
 
void(* eval_grad_gi )(void *instance, const alpaqa_real_t *x, alpaqa_index_t i, alpaqa_real_t *grad_gi)
 
void(* eval_hess_L_prod )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, alpaqa_real_t scale, const alpaqa_real_t *v, alpaqa_real_t *Hv)
 
void(* eval_hess_L )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, alpaqa_real_t scale, alpaqa_index_t *inner_idx, alpaqa_index_t *outer_ptr, alpaqa_real_t *H_values)
 
alpaqa_length_t(* get_hess_L_num_nonzeros )(void *instance)
 
void(* eval_hess_ψ_prod )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, const alpaqa_real_t *Σ, alpaqa_real_t scale, const alpaqa_real_t *zl, const alpaqa_real_t *zu, const alpaqa_real_t *v, alpaqa_real_t *Hv)
 
void(* eval_hess_ψ )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, const alpaqa_real_t *Σ, alpaqa_real_t scale, const alpaqa_real_t *zl, const alpaqa_real_t *zu, alpaqa_index_t *inner_idx, alpaqa_index_t *outer_ptr, alpaqa_real_t *H_values)
 
alpaqa_length_t(* get_hess_ψ_num_nonzeros )(void *instance)
 
alpaqa_real_t(* eval_f_grad_f )(void *instance, const alpaqa_real_t *x, alpaqa_real_t *grad_fx)
 
alpaqa_real_t(* eval_f_g )(void *instance, const alpaqa_real_t *x, alpaqa_real_t *g)
 
void(* eval_grad_f_grad_g_prod )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, alpaqa_real_t *grad_f, alpaqa_real_t *grad_gxy)
 
void(* eval_grad_L )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, alpaqa_real_t *grad_L, alpaqa_real_t *work_n)
 
alpaqa_real_t(* eval_ψ )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, const alpaqa_real_t *Σ, const alpaqa_real_t *zl, const alpaqa_real_t *zu, alpaqa_real_t *ŷ)
 
void(* eval_grad_ψ )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, const alpaqa_real_t *Σ, const alpaqa_real_t *zl, const alpaqa_real_t *zu, alpaqa_real_t *grad_ψ, alpaqa_real_t *work_n, alpaqa_real_t *work_m)
 
alpaqa_real_t(* eval_ψ_grad_ψ )(void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, const alpaqa_real_t *Σ, const alpaqa_real_t *zl, const alpaqa_real_t *zu, alpaqa_real_t *grad_ψ, alpaqa_real_t *work_n, alpaqa_real_t *work_m)
 
alpaqa_real_t(* eval_prox_grad_step )(void *instance, alpaqa_real_t γ, const alpaqa_real_t *x, const alpaqa_real_t *grad_ψ, alpaqa_real_t *x̂, alpaqa_real_t *p)
 
void(* initialize_box_C )(void *instance, alpaqa_real_t *lb, alpaqa_real_t *ub)
 
void(* initialize_box_D )(void *instance, alpaqa_real_t *lb, alpaqa_real_t *ub)
 
void(* initialize_l1_reg )(void *instance, alpaqa_real_t *lambda, alpaqa_length_t *size)
 

Member Data Documentation

◆ version

char version[16]

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

◆ n

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

◆ m

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

◆ eval_f

alpaqa_real_t(* eval_f) (void *instance, const alpaqa_real_t *x)

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

◆ eval_grad_f

void(* eval_grad_f) (void *instance, const alpaqa_real_t *x, alpaqa_real_t *grad_fx)

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

◆ eval_g

void(* eval_g) (void *instance, const alpaqa_real_t *x, alpaqa_real_t *gx)

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

◆ eval_grad_g_prod

void(* eval_grad_g_prod) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, alpaqa_real_t *grad_gxy)

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

◆ eval_jac_g

void(* eval_jac_g) (void *instance, const alpaqa_real_t *x, alpaqa_index_t *inner_idx, alpaqa_index_t *outer_ptr, alpaqa_real_t *J_values)

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

◆ get_jac_g_num_nonzeros

alpaqa_length_t(* get_jac_g_num_nonzeros) (void *instance)

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

◆ eval_grad_gi

void(* eval_grad_gi) (void *instance, const alpaqa_real_t *x, alpaqa_index_t i, alpaqa_real_t *grad_gi)

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

◆ eval_hess_L_prod

void(* eval_hess_L_prod) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, alpaqa_real_t scale, const alpaqa_real_t *v, alpaqa_real_t *Hv)

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

◆ eval_hess_L

void(* eval_hess_L) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, alpaqa_real_t scale, alpaqa_index_t *inner_idx, alpaqa_index_t *outer_ptr, alpaqa_real_t *H_values)

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

◆ get_hess_L_num_nonzeros

alpaqa_length_t(* get_hess_L_num_nonzeros) (void *instance)

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

◆ eval_hess_ψ_prod

void(* eval_hess_ψ_prod) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, const alpaqa_real_t *Σ, alpaqa_real_t scale, const alpaqa_real_t *zl, const alpaqa_real_t *zu, const alpaqa_real_t *v, alpaqa_real_t *Hv)

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

◆ eval_hess_ψ

void(* eval_hess_ψ) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, const alpaqa_real_t *Σ, alpaqa_real_t scale, const alpaqa_real_t *zl, const alpaqa_real_t *zu, alpaqa_index_t *inner_idx, alpaqa_index_t *outer_ptr, alpaqa_real_t *H_values)

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

◆ get_hess_ψ_num_nonzeros

alpaqa_length_t(* get_hess_ψ_num_nonzeros) (void *instance)

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

◆ eval_f_grad_f

alpaqa_real_t(* eval_f_grad_f) (void *instance, const alpaqa_real_t *x, alpaqa_real_t *grad_fx)

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

◆ eval_f_g

alpaqa_real_t(* eval_f_g) (void *instance, const alpaqa_real_t *x, alpaqa_real_t *g)

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

◆ eval_grad_f_grad_g_prod

void(* eval_grad_f_grad_g_prod) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, alpaqa_real_t *grad_f, alpaqa_real_t *grad_gxy)

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

◆ eval_grad_L

void(* eval_grad_L) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, alpaqa_real_t *grad_L, alpaqa_real_t *work_n)

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

◆ eval_ψ

alpaqa_real_t(* eval_ψ) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, const alpaqa_real_t *Σ, const alpaqa_real_t *zl, const alpaqa_real_t *zu, alpaqa_real_t *ŷ)

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

◆ eval_grad_ψ

void(* eval_grad_ψ) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, const alpaqa_real_t *Σ, const alpaqa_real_t *zl, const alpaqa_real_t *zu, alpaqa_real_t *grad_ψ, alpaqa_real_t *work_n, alpaqa_real_t *work_m)

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

◆ eval_ψ_grad_ψ

alpaqa_real_t(* eval_ψ_grad_ψ) (void *instance, const alpaqa_real_t *x, const alpaqa_real_t *y, const alpaqa_real_t *Σ, const alpaqa_real_t *zl, const alpaqa_real_t *zu, alpaqa_real_t *grad_ψ, alpaqa_real_t *work_n, alpaqa_real_t *work_m)

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

◆ eval_prox_grad_step

alpaqa_real_t(* eval_prox_grad_step) (void *instance, alpaqa_real_t γ, const alpaqa_real_t *x, const alpaqa_real_t *grad_ψ, alpaqa_real_t *x̂, alpaqa_real_t *p)

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

◆ initialize_box_C

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

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

◆ initialize_box_D

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

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

◆ initialize_l1_reg

void(* initialize_l1_reg) (void *instance, alpaqa_real_t *lambda, alpaqa_length_t *size)

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


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