Skip to content

Commit 3b4fc43

Browse files
Refactor new_var call to use default parameters for slack variable creation
1 parent 7306128 commit 3b4fc43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/linspire.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace linspire
3131
if (const auto it = exprs.find(s_expr); it != exprs.cend()) // we already have a slack variable for this expression..
3232
return it->second;
3333
// we create a new slack variable for this expression..
34-
utils::var slack = new_var(lb(l), ub(l));
34+
utils::var slack = new_var();
3535
vars[slack].val = val(l);
3636
exprs.emplace(s_expr, slack);
3737
new_row(slack, std::move(l));

0 commit comments

Comments
 (0)