Skip to content

Commit 539e148

Browse files
committed
Need to merge HiPO branch into this
1 parent f59b0df commit 539e148

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

highs/lp_data/HighsOptions.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,16 @@ bool commandLineOffOnOk(const HighsLogOptions& report_log_options,
8080
bool commandLineSolverOk(const HighsLogOptions& report_log_options,
8181
const string& value) {
8282
if (value == kSimplexString || value == kHighsChooseString ||
83-
value == kIpmString || value == kPdlpString)
83+
value == kIpmString || value == kPdlpString || value == kCuPdlpString || value == kHiPdlpString)
8484
return true;
8585
highsLogUser(report_log_options, HighsLogType::kWarning,
86-
"Value \"%s\" for solver option is not one of \"%s\", \"%s\", "
86+
"Value \"%s\" for solver option is not one of \"%s\", \"%s\", \"%s\", \"%s\", "
8787
"\"%s\" or \"%s\"\n",
8888
value.c_str(), kSimplexString.c_str(),
8989
kHighsChooseString.c_str(), kIpmString.c_str(),
90-
kPdlpString.c_str());
90+
kPdlpString.c_str(),
91+
kCuPdlpString.c_str(),
92+
kHiPdlpString.c_str());
9193
return false;
9294
}
9395

highs/lp_data/HighsOptions.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ void reportOption(FILE* file, const HighsLogOptions& report_log_options,
260260
const string kSimplexString = "simplex";
261261
const string kIpmString = "ipm";
262262
const string kPdlpString = "pdlp";
263+
const string kCuPdlpString = "cupdlp";
264+
const string kHiPdlpString = "hipdlp";
263265

264266
const HighsInt kKeepNRowsDeleteRows = -1;
265267
const HighsInt kKeepNRowsDeleteEntries = 0;
@@ -679,7 +681,7 @@ class HighsOptions : public HighsOptionsStruct {
679681
record_string = new OptionRecordString(
680682
kSolverString,
681683
"Solver option: \"simplex\", \"choose\", \"ipm\" or \"pdlp\". If "
682-
"\"simplex\"/\"ipm\"/\"pdlp\" is chosen then, for a MIP (QP) the "
684+
"\"simplex\"/\"ipm\"/\"pdlp\"/\"cupdlp\"/\"hipdlp\" is chosen then, for a MIP (QP) the "
683685
"integrality "
684686
"constraint (quadratic term) will be ignored",
685687
advanced, &solver, kHighsChooseString);

0 commit comments

Comments
 (0)