use of edu.illinois.cs.cogcomp.core.datastructures.vectors.DVector in project cogcomp-nlp by CogComp.
the class GurobiHook method reset.
/**
* This method clears the all constraints and variables out of the ILP solver's problem
* representation, bringing the <code>ILPSolver</code> instance back to the state it was in when
* first constructed.
*/
public void reset() {
try {
model = new GRBModel(environment);
} catch (GRBException e) {
handleException(e);
}
variables = new OVector();
SOSes = new OVector();
objectiveCoefficients = new DVector();
needsUpdate = isSolved = false;
}