File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -737,24 +737,26 @@ TEST_CASE("presolve-issue-2446", "[highs_test_presolve]") {
737737
738738TEST_CASE (" presolve-solve-postsolve-no-col-dual" , " [highs_test_presolve]" ) {
739739 Highs highs;
740- // highs.setOptionValue("output_flag", dev_run);
740+ highs.setOptionValue (" output_flag" , dev_run);
741741 std::string model_file =
742742 std::string (HIGHS_DIR) + " /check/instances/afiro.mps" ;
743743 highs.readModel (model_file);
744744 highs.presolve ();
745745 HighsLp presolved_lp = highs.getPresolvedLp ();
746746 Highs highs1;
747- // highs1.setOptionValue("output_flag", dev_run);
747+ highs1.setOptionValue (" output_flag" , dev_run);
748748 highs1.setOptionValue (" presolve" , kHighsOffString );
749- highs1.setOptionValue (" solver" , kPdlpString );
750749 highs1.passModel (presolved_lp);
751750 highs1.run ();
752751 HighsSolution solution = highs1.getSolution ();
753752
754753 // Perform postsolve using the optimal solution and basis for the
755754 // presolved model
755+ REQUIRE (highs.postsolve (solution) == HighsStatus::kOk );
756+
757+ // If row duals are supplied, then column duals must also be suppplied
756758 solution.col_dual .clear ();
757- highs.postsolve (solution);
759+ REQUIRE ( highs.postsolve (solution) == HighsStatus:: kError );
758760
759761 highs.resetGlobalScheduler (true );
760762}
You can’t perform that action at this time.
0 commit comments