| 1467 | } |
| 1468 | |
| 1469 | void options() { |
| 1470 | void* highs = Highs_create(); |
| 1471 | if (!dev_run) Highs_setBoolOptionValue(highs, "output_flag", 0); |
| 1472 | |
| 1473 | HighsInt simplex_scale_strategy; |
| 1474 | HighsInt return_status; |
| 1475 | return_status = Highs_setIntOptionValue(highs, "simplex_scale_strategy", 0); |
| 1476 | assert(return_status == kHighsStatusOk); |
| 1477 | return_status = Highs_getIntOptionValue(highs, "simplex_scale_strategy", |
| 1478 | &simplex_scale_strategy); |
| 1479 | assert(return_status == kHighsStatusOk); |
| 1480 | assert(simplex_scale_strategy == 0); |
| 1481 | |
| 1482 | double primal_feasibility_tolerance; |
| 1483 | return_status = |
| 1484 | Highs_setDoubleOptionValue(highs, "primal_feasibility_tolerance", 2.0); |
| 1485 | assert(return_status == kHighsStatusOk); |
| 1486 | return_status = Highs_getDoubleOptionValue( |
| 1487 | highs, "primal_feasibility_tolerance", &primal_feasibility_tolerance); |
| 1488 | assert(return_status == kHighsStatusOk); |
| 1489 | assert(primal_feasibility_tolerance == 2.0); |
| 1490 | |
| 1491 | Highs_destroy(highs); |
| 1492 | } |
| 1493 | |
| 1494 | void testGetColsByRange() { |
| 1495 | void* highs = Highs_create(); |
no test coverage detected