diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-07-25 07:56:25 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-07-25 07:56:25 +0530 |
commit | f133ed873187ae6a84471d21ce9b768a0f143feb (patch) | |
tree | 8f97df57f1e4293fb2114590c9bdc8470dfd867b | |
parent | 6682414d323a13ef1362669cee77cbca2c832979 (diff) |
solver_highs: turn off highs output when --solver-report is not passed
-rw-r--r-- | src/solver_highs.c | 7 |
1 files changed, 6 insertions, 1 deletions
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 <stdio.h> #include <stdlib.h> +#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; |