Skip to content

Commit

Permalink
Suppress output from lpsolver
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Denardo committed Mar 30, 2017
1 parent 98616a0 commit 8aca267
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Solver.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ public function solve()
lpsolve('set_int', $lp, $this->objective->asIntSettings());
lpsolve($this->objective->getType(), $lp);

ob_start();
$stat = lpsolve('solve', $lp);
ob_end_clean();

return new Solution($stat, lpsolve('get_variables', $lp));
#dd([$stat, lpsolve('get_variables', $lp)]);
Expand Down

0 comments on commit 8aca267

Please sign in to comment.