@@ -19,7 +19,7 @@ void testFeasibilityRelaxation(
1919 const double rhs_penalty,
2020 const double require_feasibility_objective_function_value);
2121
22- void checkIisLp (HighsLp& lp, const HighsIis& iis, const HighsLp& iis_lp );
22+ void checkIisLp (HighsLp& lp, const HighsIis& iis);
2323
2424TEST_CASE (" lp-incompatible-bounds" , " [iis]" ) {
2525 // LP has row0 and col2 with inconsistent bounds.
@@ -46,11 +46,9 @@ TEST_CASE("lp-incompatible-bounds", "[iis]") {
4646 highs.passModel (lp);
4747 // Perform the light IIS check
4848 highs.setOptionValue (" iis_strategy" , kIisStrategyLight );
49- HighsLp iis_lp;
50- REQUIRE (highs.getIisLp (iis_lp) == HighsStatus::kOk );
5149 HighsIis iis;
5250 REQUIRE (highs.getIis (iis) == HighsStatus::kOk );
53- checkIisLp (lp, iis, iis_lp );
51+ checkIisLp (lp, iis);
5452
5553 highs.passModel (lp);
5654 highs.getIis (iis);
@@ -117,10 +115,7 @@ TEST_CASE("lp-empty-infeasible-row", "[iis]") {
117115 REQUIRE (iis.row_index_ [0 ] == empty_row);
118116 REQUIRE (iis.row_bound_ [0 ] == kIisBoundStatusUpper );
119117
120- HighsLp iis_lp;
121- REQUIRE (highs.getIisLp (iis_lp) == HighsStatus::kOk );
122-
123- checkIisLp (lp, iis, iis_lp);
118+ checkIisLp (lp, iis);
124119
125120 highs.passModel (lp);
126121 highs.getIis (iis);
@@ -157,21 +152,19 @@ TEST_CASE("lp-get-iis-light", "[iis]") {
157152 highs.passModel (lp);
158153 highs.setOptionValue (" iis_strategy" , kIisStrategyLight );
159154 HighsIis iis;
160- HighsLp iis_lp;
161155
162156 for (int l = 0 ; l < 3 ; l++) {
163157 for (int k = 0 ; k < 2 ; k++) {
164158 REQUIRE (highs.getIis (iis) == HighsStatus::kOk );
165159 REQUIRE (highs.getModelStatus () == HighsModelStatus::kInfeasible );
166- REQUIRE (highs.getIisLp (iis_lp) == HighsStatus::kOk );
167160 const bool write_model = true ;
168161 if (dev_run && write_model) {
169162 highs.writeModel (" " );
170163 printf (" \n Now pass IIS LP to write it out\n " );
171- highs.passModel (iis_lp );
164+ highs.passModel (iis. lp_ );
172165 highs.writeModel (" " );
173166 }
174- checkIisLp (lp, iis, iis_lp );
167+ checkIisLp (lp, iis);
175168
176169 highs.passModel (lp);
177170 highs.getIis (iis);
@@ -235,9 +228,7 @@ TEST_CASE("lp-get-iis", "[iis]") {
235228 REQUIRE (iis.col_index_ [1 ] == 1 );
236229 REQUIRE (iis.row_index_ [0 ] == 2 );
237230
238- HighsLp iis_lp;
239- REQUIRE (highs.getIisLp (iis_lp) == HighsStatus::kOk );
240- checkIisLp (lp, iis, iis_lp);
231+ checkIisLp (lp, iis);
241232
242233 highs.passModel (lp);
243234 highs.getIis (iis);
@@ -570,20 +561,17 @@ void testMps(std::string& model, const HighsInt iis_strategy,
570561 int (num_iis_col), int (num_iis_row));
571562 testIis (model, iis);
572563
573- HighsLp iis_lp;
574- REQUIRE (highs.getIisLp (iis_lp) == HighsStatus::kOk );
575-
576564 const bool write_model = true ;
577565 if (dev_run && write_model) highs.writeModel (" " );
578566 HighsLp lp = highs.getLp ();
579567
580568 if (dev_run && write_model) {
581569 printf (" \n Now pass IIS LP to write it out\n " );
582- highs.passModel (iis_lp );
570+ highs.passModel (iis. lp_ );
583571 highs.writeModel (" " );
584572 }
585573
586- checkIisLp (lp, iis, iis_lp );
574+ checkIisLp (lp, iis);
587575
588576 highs.passModel (lp);
589577 highs.getIis (iis);
@@ -610,7 +598,8 @@ void testFeasibilityRelaxation(
610598 require_feasibility_objective_function_value);
611599}
612600
613- void checkIisLp (HighsLp& lp, const HighsIis& iis, const HighsLp& iis_lp) {
601+ void checkIisLp (HighsLp& lp, const HighsIis& iis) {
602+ const HighsLp& iis_lp = iis.lp_ ;
614603 HighsInt iis_num_col = iis.col_index_ .size ();
615604 HighsInt iis_num_row = iis.row_index_ .size ();
616605 REQUIRE (iis_lp.num_col_ == iis_num_col);
0 commit comments