4949
5050#include " FloatUtils.h"
5151#include " GroundBoundManager.h"
52- #include " GurobiWrapper .h"
52+ #include " LPSolver .h"
5353#include " IBoundManager.h"
5454#include " ITableau.h"
5555#include " LinearExpression.h"
@@ -356,11 +356,11 @@ class PiecewiseLinearConstraint : public ITableau::VariableWatcher
356356 }
357357
358358 /*
359- Register the GurobiWrapper object. We will query it for assignment.
359+ Register the LPSolver object. We will query it for assignment.
360360 */
361- inline void registerGurobi ( GurobiWrapper *gurobi )
361+ inline void registerLPSolver ( LPSolver *lpSolver )
362362 {
363- _gurobi = gurobi ;
363+ _lpSolver = lpSolver ;
364364 }
365365
366366 inline void registerTableau ( ITableau *tableau )
@@ -555,9 +555,9 @@ class PiecewiseLinearConstraint : public ITableau::VariableWatcher
555555 Statistics *_statistics;
556556
557557 /*
558- The gurobi object for solving the LPs during the search.
558+ The LP solver object for solving the LPs during the search.
559559 */
560- GurobiWrapper *_gurobi ;
560+ LPSolver *_lpSolver ;
561561
562562 CVC4 ::context::CDO <std::shared_ptr<GroundBoundManager::GroundBoundEntry>> *_cdPhaseFixingEntry;
563563
@@ -646,8 +646,8 @@ class PiecewiseLinearConstraint : public ITableau::VariableWatcher
646646 /* *********************************************************************/
647647 inline bool existsAssignment ( unsigned variable ) const
648648 {
649- if ( _gurobi )
650- return _gurobi ->existsAssignment ( Stringf ( " x%u" , variable ) );
649+ if ( _lpSolver )
650+ return _lpSolver ->existsAssignment ( Stringf ( " x%u" , variable ) );
651651 else if ( _tableau )
652652 return _tableau->existsValue ( variable );
653653 else
@@ -656,12 +656,12 @@ class PiecewiseLinearConstraint : public ITableau::VariableWatcher
656656
657657 inline double getAssignment ( unsigned variable ) const
658658 {
659- if ( _gurobi == nullptr )
659+ if ( _lpSolver == nullptr )
660660 {
661661 return _tableau->getValue ( variable );
662662 }
663663 else
664- return _gurobi ->getAssignment ( Stringf ( " x%u" , variable ) );
664+ return _lpSolver ->getAssignment ( Stringf ( " x%u" , variable ) );
665665 }
666666
667667 List<unsigned > _tableauAuxVars;
0 commit comments