Skip to content

Commit

Permalink
remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickbr committed Oct 17, 2023
1 parent 6e6898c commit e70defd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/shared/optim/GLPKSolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,10 @@ int GLPKSolver::getNumVars() const { return glp_get_num_cols(_prob); }
void GLPKSolver::setStarter(const StarterSol& starterSol) {
_starterArr = new double[getNumVars() + 1];

size_t a = 0;

for (const auto& varVal : starterSol) {
int colId = getVarByName(varVal.first);
if (colId < 0) continue;
_starterArr[colId + 1] = varVal.second;
a++;
}
}

Expand Down

0 comments on commit e70defd

Please sign in to comment.