| 465 | } |
| 466 | |
| 467 | void* 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 | |
| 475 | void* uno_create_unconstrained_model(const char* problem_type, uno_int number_variables, uno_int base_indexing) { |
| 476 | if (number_variables <= 0) { |
no test coverage detected