51 # define __BEGIN_DECLS extern "C" { 52 # define __END_DECLS } 54 # define __BEGIN_DECLS 60 extern PyTypeObject modena_model_tType;
62 extern PyObject *modena_SurrogateModel;
80 size_t map_inputs_size;
84 size_t map_outputs_size;
359 void modena_model_inputs_siunits
366 void modena_model_outputs_siunits
struct modena_model_t modena_model_t
stores a surrogate model
char ** modena_model_parameters_names(const modena_model_t *self)
Function returning the names of the parameters.
char ** modena_model_inputs_names(const modena_model_t *self)
Function returning the names of the inputs.
size_t modena_model_inputs_argPos(const modena_model_t *self, const char *name)
Function determining position of an argument in the input vector.
size_t modena_model_inputs_size(const modena_model_t *self)
Function returning the size of the input vector.
size_t modena_model_outputs_size(const modena_model_t *self)
Function returning the size of the output vector.
size_t substituteModels_size
modena_model_t * modena_model_new(const char *modelId)
Function fetching a surrogate model from MongoDB.
struct modena_function_t * mf
PyObject_HEAD PyObject * pModel
struct modena_substitute_model_t modena_substitute_model_t
stores a model and mapping for substitution
int modena_model_call(modena_model_t *model, modena_inputs_t *inputs, modena_outputs_t *outputs)
Function calling the surrogate model and checking for errors.
void modena_model_call_no_check(modena_model_t *model, modena_inputs_t *inputs, modena_outputs_t *outputs)
Function calling the surrogate model w/o checking for errors.
void modena_model_destroy(modena_model_t *model)
Function deallocating the memory allocated for the surrogate model.
size_t modena_model_parameters_size(const modena_model_t *self)
Function returning the size of the parameter vector.
size_t modena_model_outputs_argPos(const modena_model_t *self, const char *name)
Function determining position of a result in the output vector.
modena_substitute_model_t * substituteModels
size_t inputs_internal_size
void modena_model_argPos_check(const modena_model_t *self)
Function checking that the user has queried all input positions.
stores a model and mapping for substitution
char ** modena_model_outputs_names(const modena_model_t *self)
Function returning the names of the outputs.