MCPcopy Create free account
hub / github.com/cvanaret/Uno / uno_create_model

Function uno_create_model

interfaces/C/Uno_C_API.cpp:467–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467void* uno_create_model(const char* problem_type, uno_int number_variables, const double* variables_lower_bounds,
468 const double* variables_upper_bounds, uno_int base_indexing) {
469 void* model = uno_create_unconstrained_model(problem_type, number_variables, base_indexing);
470 uno_set_variables_lower_bounds(model, variables_lower_bounds);
471 uno_set_variables_upper_bounds(model, variables_upper_bounds);
472 return model;
473}
474
475void* uno_create_unconstrained_model(const char* problem_type, uno_int number_variables, uno_int base_indexing) {
476 if (number_variables <= 0) {

Callers 1

mainFunction · 0.85

Tested by

no test coverage detected