Skip to content

Commit 6b72c1b

Browse files
committed
Added subsolver clocks for primal simplex
1 parent cd202e8 commit 6b72c1b

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

highs/lp_data/HConst.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ enum SubSolverIndex : int {
305305
kSubSolverMip = 0,
306306
kSubSolverSimplexBasis,
307307
kSubSolverSimplexNoBasis,
308+
kSubSolverPrimalSimplexBasis,
309+
kSubSolverPrimalSimplexNoBasis,
308310
kSubSolverHipo,
309311
kSubSolverIpx,
310312
kSubSolverHipoAc,

highs/lp_data/HighsInterface.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4329,6 +4329,8 @@ void HighsSubSolverCallTime::initialise() {
43294329
this->name.assign(kSubSolverCount, "");
43304330
this->name[kSubSolverSimplexBasis] = "Simplex (basis)";
43314331
this->name[kSubSolverSimplexNoBasis] = "Simplex (no basis)";
4332+
this->name[kSubSolverPrimalSimplexBasis] = "Primal simplex (basis)";
4333+
this->name[kSubSolverPrimalSimplexNoBasis] = "Primal simplex (no basis)";
43324334
this->name[kSubSolverHipo] = "HiPO";
43334335
this->name[kSubSolverIpx] = "IPX";
43344336
this->name[kSubSolverHipoAc] = "HiPO (AC)";

highs/mip/HighsMipAnalysis.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ void HighsMipAnalysis::mipTimerAdd(const HighsInt mip_clock,
102102
// , const HighsInt thread_id
103103
) const {
104104
if (!analyse_mip_time) return;
105+
if (num_call == 0) {
106+
assert(time == 0);
107+
return;
108+
}
105109
HighsInt highs_timer_clock = mip_clocks.clock_[mip_clock];
106110
mip_clocks.timer_pointer_->add(highs_timer_clock, num_call, time);
107111
}

0 commit comments

Comments
 (0)