sim_interface

Functions

sim_config *sim_config_create(sim_solver_plan plan)
void sim_config_destroy(void *config)
void *sim_dims_create(void *config_)
void sim_dims_destroy(void *dims)
void sim_dims_set(sim_config *config, void *dims, const char *field, const int *value)
void sim_dims_get(sim_config *config, void *dims, const char *field, int *value)
sim_in *sim_in_create(sim_config *config, void *dims)
void sim_in_destroy(void *in)
int sim_in_set(void *config_, void *dims_, sim_in *in, const char *field, void *value)
sim_out *sim_out_create(sim_config *config, void *dims)
void sim_out_destroy(void *out)
int sim_out_get(void *config, void *dims, sim_out *out, const char *field, void *value)
void *sim_opts_create(sim_config *config, void *dims)
void sim_opts_destroy(void *opts)
void sim_opts_set(sim_config *config, void *opts, const char *field, void *value)
void sim_opts_get(sim_config *config, void *opts, const char *field, void *value)
int sim_calculate_size(sim_config *config, void *dims, void *opts_)
sim_solver *sim_assign(sim_config *config, void *dims, void *opts_, void *raw_memory)
sim_solver *sim_solver_create(sim_config *config, void *dims, void *opts_)
void sim_solver_destroy(void *solver)
int sim_solve(sim_solver *solver, sim_in *in, sim_out *out)
int sim_precompute(sim_solver *solver, sim_in *in, sim_out *out)
int sim_solver_set(sim_solver *solver, const char *field, void *value)

Enums

enum sim_solver_t

Values:

ERK
IRK
GNSF
LIFTED_IRK
INVALID_SIM_SOLVER

Functions

sim_config *sim_config_create(sim_solver_plan plan)
void sim_config_destroy(void *config)
void *sim_dims_create(void *config_)
void sim_dims_destroy(void *dims)
void sim_dims_set(sim_config *config, void *dims, const char *field, const int *value)
void sim_dims_get(sim_config *config, void *dims, const char *field, int *value)
sim_in *sim_in_create(sim_config *config, void *dims)
void sim_in_destroy(void *out)
int sim_in_set(void *config_, void *dims_, sim_in *in, const char *field, void *value)
sim_out *sim_out_create(sim_config *config, void *dims)
void sim_out_destroy(void *out)
int sim_out_get(void *config, void *dims, sim_out *out, const char *field, void *value)
void *sim_opts_create(sim_config *config, void *dims)
void sim_opts_destroy(void *opts)
void sim_opts_set(sim_config *config, void *opts, const char *field, void *value)
void sim_opts_get(sim_config *config, void *opts, const char *field, void *value)
int sim_calculate_size(sim_config *config, void *dims, void *opts_)
sim_solver *sim_assign(sim_config *config, void *dims, void *opts_, void *raw_memory)
sim_solver *sim_solver_create(sim_config *config, void *dims, void *opts_)
void sim_solver_destroy(void *solver)
int sim_solve(sim_solver *solver, sim_in *in, sim_out *out)
int sim_precompute(sim_solver *solver, sim_in *in, sim_out *out)
int sim_solver_set(sim_solver *solver, const char *field, void *value)
struct sim_solver_plan
#include <sim_interface.h>

Public Members

sim_solver_t sim_solver
struct sim_solver
#include <sim_interface.h>

Public Members

sim_config *config
void *dims
void *opts
void *mem
void *work

Defines

NS_MAX

Enums

enum sim_function_t

Values:

EXPL_ODE_FUN
EXPL_ODE_HES
EXPL_VDE_FOR
EXPL_VDE_ADJ
IMPL_ODE_FUN
IMPL_ODE_FUN_JAC_X_XDOT
IMPL_ODE_JAC_X_XDOT_U
IMPL_ODE_FUN_JAC_X_XDOT_U
IMPL_ODE_HESS
PHI_FUN
PHI_FUN_JAC_Y
PHI_JAC_Y_UHAT
LO_FUN
GET_GNSF_MATRICES

Functions

int sim_config_calculate_size()
sim_config *sim_config_assign(void *raw_memory)
int sim_in_calculate_size(void *config, void *dims)
sim_in *sim_in_assign(void *config, void *dims, void *raw_memory)
int sim_in_set_(void *config_, void *dims_, sim_in *in, const char *field, void *value)
int sim_out_calculate_size(void *config, void *dims)
sim_out *sim_out_assign(void *config, void *dims, void *raw_memory)
int sim_out_get_(void *config, void *dims, sim_out *out, const char *field, void *value)
void sim_opts_set_(sim_opts *opts, const char *field, void *value)
void sim_opts_get_(sim_config *config, sim_opts *opts, const char *field, void *value)
struct sim_in
#include <sim_common.h>

Public Members

void *dims
double *x
double *u
double *S_forw
double *S_adj
bool identity_seed
void *model
double T
struct sim_info
#include <sim_common.h>

Public Members

double CPUtime
double LAtime
double ADtime
struct sim_out
#include <sim_common.h>

Public Members

double *xn
double *S_forw
double *S_adj
double *S_hess
double *zn
double *S_algebraic
double *grad
sim_info *info
struct sim_opts
#include <sim_common.h>

Public Members

int ns
int num_steps
int num_forw_sens
int tableau_size
double *A_mat
double *c_vec
double *b_vec
bool sens_forw
bool sens_adj
bool sens_hess
bool output_z
bool sens_algebraic
bool exact_z_output
int newton_iter
bool jac_reuse
Newton_scheme *scheme
void *work
struct sim_config
#include <sim_common.h>

Public Members

int (*evaluate)(void *config_, sim_in *in, sim_out *out, void *opts, void *mem, void *work)
int (*precompute)(void *config_, sim_in *in, sim_out *out, void *opts, void *mem, void *work)
int (*opts_calculate_size)(void *config_, void *dims)
void *(*opts_assign)(void *config_, void *dims, void *raw_memory)
void (*opts_initialize_default)(void *config_, void *dims, void *opts)
void (*opts_update)(void *config_, void *dims, void *opts)
void (*opts_set)(void *config_, void *opts_, const char *field, void *value)
void (*opts_get)(void *config_, void *opts_, const char *field, void *value)
int (*memory_calculate_size)(void *config, void *dims, void *opts)
void *(*memory_assign)(void *config, void *dims, void *opts, void *raw_memory)
int (*memory_set)(void *config, void *dims, void *mem, const char *field, void *value)
int (*memory_set_to_zero)(void *config, void *dims, void *opts, void *mem, const char *field)
void (*memory_get)(void *config, void *dims, void *mem, const char *field, void *value)
int (*workspace_calculate_size)(void *config, void *dims, void *opts)
int (*model_calculate_size)(void *config, void *dims)
void *(*model_assign)(void *config, void *dims, void *raw_memory)
int (*model_set)(void *model, const char *field, void *value)
void (*config_initialize_default)(void *config)
int (*dims_calculate_size)()
void *(*dims_assign)(void *config, void *raw_memory)
void (*dims_set)(void *config, void *dims, const char *field, const int *value)
void (*dims_get)(void *config, void *dims, const char *field, int *value)