From f133ed873187ae6a84471d21ce9b768a0f143feb Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Thu, 25 Jul 2024 07:56:25 +0530 Subject: solver_highs: turn off highs output when --solver-report is not passed --- src/solver_highs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/solver_highs.c b/src/solver_highs.c index 806ce4d..a56dbd8 100644 --- a/src/solver_highs.c +++ b/src/solver_highs.c @@ -4,6 +4,7 @@ #include #include +#include "evanix.h" #include "jobid.h" #include "solver_highs.h" #include "util.h" @@ -53,7 +54,11 @@ static int solver_highs_unwrapped(double *solution, struct job_clist *q, col_upper[i] = 1.0; highs = Highs_create(); - ret = Highs_setBoolOptionValue(highs, "output_flag", 1); + + if (evanix_opts.solver_report) + ret = Highs_setBoolOptionValue(highs, "output_flag", 1); + else + ret = Highs_setBoolOptionValue(highs, "output_flag", 0); if (ret != kHighsStatusOk) { print_err("%s", "highs did not return kHighsStatusOk"); ret = -EPERM; -- cgit v1.2.3