Skip to content

Commit 0cb667b

Browse files
committed
protoIPM OK linux
1 parent e694313 commit 0cb667b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

highs/ipm/ipx/ipm.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ void IPM::Driver(KKTSolver* kkt, Iterate* iterate, Info* info) {
5959
}
6060
if (num_bad_iter_ >= 5 ||
6161
iterate_->complementarity() > kDivergeTol * best_complementarity_) {
62+
63+
// if (num_bad_iter_ >= 5 ||
64+
// (best_complementarity_ > 0.0 && iterate_->complementarity() > kDivergeTol * best_complementarity_))
65+
// {
66+
6267
// No progress in reducing the complementarity gap.
6368
// Check if model seems to be primal or dual infeasible.
6469
bool dualized = iterate_->model().dualized();

highs/util/HighsSparseVectorSum.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class HighsSparseVectorSum {
3030
}
3131

3232
void add(HighsInt index, double value) {
33-
assert(index >= 0 && index < (HighsInt)values.size());
33+
// assert(index >= 0 && index < (HighsInt)values.size());
3434
if (values[index] != 0.0) {
3535
values[index] += value;
3636
} else {

0 commit comments

Comments
 (0)