| 895 | } |
| 896 | |
| 897 | void testFeasibilityRelaxation( |
| 898 | std::string& model, const double lower_penalty, const double upper_penalty, |
| 899 | const double rhs_penalty, |
| 900 | const double require_feasibility_objective_function_value) { |
| 901 | std::string model_file = |
| 902 | std::string(HIGHS_DIR) + "/check/instances/" + model + ".mps"; |
| 903 | Highs h; |
| 904 | h.setOptionValue("output_flag", dev_run); |
| 905 | h.readModel(model_file); |
| 906 | REQUIRE(h.feasibilityRelaxation(lower_penalty, upper_penalty, rhs_penalty) == |
| 907 | HighsStatus::kOk); |
| 908 | REQUIRE(h.getInfo().objective_function_value == |
| 909 | require_feasibility_objective_function_value); |
| 910 | } |
| 911 | |
| 912 | TEST_CASE("feasible-lp-iis", "[iis]") { |
| 913 | HighsLp lp; |
no test coverage detected