Skip to content

Commit

Permalink
testipm more info
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Sep 27, 2024
1 parent 9f3b606 commit 4c1bf21
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion check/TestIpm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ TEST_CASE("ipm-primal-dual-infeasible-instance", "[highs_ipm]") {
highs.setOptionValue("presolve", kHighsOffString);
highs.setOptionValue("solver", "ipm");

const HighsOptions& options = highs.getOptions();

HighsStatus run_status = highs.run();
const HighsSolution& solution = highs.getSolution();
const HighsInfo& info = highs.getInfo();
Expand All @@ -121,6 +123,7 @@ TEST_CASE("ipm-primal-dual-infeasible-instance", "[highs_ipm]") {

std::cout << info.primal_solution_status << std::endl;
std::cout << info.dual_solution_status << std::endl;

std::cout << solution.col_value[0] << " " << solution.col_value[1] << std::endl;
std::cout << solution.col_dual[0] << " " << solution.col_dual[1] << std::endl;
REQUIRE(info.primal_solution_status == kSolutionStatusInfeasible);
}

0 comments on commit 4c1bf21

Please sign in to comment.