Skip to content

Commit 22848e6

Browse files
committed
Now using cuPDLP-C power method, and KKT tolerance of 1e-6 in unit test hi-pdlp
1 parent 02102aa commit 22848e6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

check/TestPdlp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ TEST_CASE("hi-pdlp", "[pdlp]") {
338338
// h.setOptionValue("output_flag", dev_run);
339339
REQUIRE(h.readModel(model_file) == HighsStatus::kOk);
340340
h.setOptionValue("solver", kHiPdlpString);
341-
h.setOptionValue("kkt_tolerance", kkt_tolerance);
341+
h.setOptionValue("kkt_tolerance", 1e-6);//kkt_tolerance);
342342

343343
h.setOptionValue("pdlp_scaling_mode", 0);
344344
h.setOptionValue("pdlp_restart_strategy", 0);

highs/pdlp/hipdlp/pdhg.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,9 +807,9 @@ HighsStatus PDLPSolver::PowerMethod(HighsLp &lp, double& op_norm_sq) {
807807
const HighsInt kCuPdlpAATPowerMethod = 2;
808808

809809
const HighsInt power_method =
810-
kYanyuPowerMethod;
810+
// kYanyuPowerMethod;
811811
// kYanyuPowerMethodDev;
812-
// kCuPdlpAATPowerMethod;
812+
kCuPdlpAATPowerMethod;
813813
printf("Power method: %s\n", power_method == kYanyuPowerMethod ? "Yanyu" : power_method == kYanyuPowerMethodDev ? "Yanyu dev" : "CuPdlp-C");
814814
// Dev version of Yanyu power method (based on A'A) has
815815
//

0 commit comments

Comments
 (0)