Search in sources :

Example 1 with DVector

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;
}
Also used : DVector(edu.illinois.cs.cogcomp.core.datastructures.vectors.DVector) OVector(edu.illinois.cs.cogcomp.core.datastructures.vectors.OVector)

Aggregations

DVector (edu.illinois.cs.cogcomp.core.datastructures.vectors.DVector)1 OVector (edu.illinois.cs.cogcomp.core.datastructures.vectors.OVector)1