MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / testFeasibilityRelaxation

Function testFeasibilityRelaxation

check/TestIis.cpp:897–910  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

895}
896
897void 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
912TEST_CASE("feasible-lp-iis", "[iis]") {
913 HighsLp lp;

Callers 1

TestIis.cppFile · 0.70

Calls 4

feasibilityRelaxationMethod · 0.80
setOptionValueMethod · 0.45
readModelMethod · 0.45
getInfoMethod · 0.45

Tested by

no test coverage detected