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

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

Detailed Description

Note
When used in C, you should initialize this struct by passing a pointer to your instance to the ALPAQA_PROBLEM_REGISTER_INIT macro. In C++, this is not necessary, because all members have default initializers.

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

+ Collaboration diagram for alpaqa_control_problem_register_t:

Public Attributes

uint64_t abi_version { 0xA1A000000002 }
 To check whether the loaded problem is compatible with the version of the solver.
 
void * instance { nullptr }
 Owning pointer.
 
alpaqa_control_problem_functions_tfunctions { nullptr }
 Non-owning pointer, lifetime at least as long as instance.
 
void(* cleanup )(void *)
 Pointer to the function to clean up instance.
 
alpaqa_function_dict_textra_functions { nullptr }
 Pointer to a map of extra functions (C++ only).
 
alpaqa_exception_ptr_texception { nullptr }
 Pointer to an exception that ocurred during problem creation.
 

Member Data Documentation

◆ abi_version

uint64_t abi_version { 0xA1A000000002 }

To check whether the loaded problem is compatible with the version of the solver.

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

◆ instance

void* instance { nullptr }

Owning pointer.

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

◆ functions

alpaqa_control_problem_functions_t* functions { nullptr }

Non-owning pointer, lifetime at least as long as instance.

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

◆ cleanup

void(* cleanup) (void *)
inline

Pointer to the function to clean up instance.

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

◆ extra_functions

alpaqa_function_dict_t* extra_functions { nullptr }

Pointer to a map of extra functions (C++ only).

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

◆ exception

alpaqa_exception_ptr_t* exception { nullptr }

Pointer to an exception that ocurred during problem creation.

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


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