net.sourceforge.swimp.samples.coin
Class RandomAssignmentGenerator
java.lang.Object
net.sourceforge.swimp.samples.coin.RandomAssignmentGenerator
public class RandomAssignmentGenerator
- extends java.lang.Object
- Author:
- schickin
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RandomAssignmentGenerator
public RandomAssignmentGenerator(int numNodes)
getRowForVertexInA
public CoinPackedVector getRowForVertexInA(int from)
getRowIndicesForVertexInA
public int[] getRowIndicesForVertexInA(int from)
getRowForVertexInB
public CoinPackedVector getRowForVertexInB(int to)
getRowIndicesForVertexInB
public int[] getRowIndicesForVertexInB(int to)
initializeCoinStructures
public void initializeCoinStructures()
initializeSolver
public void initializeSolver(OsiSolverInterface solver)
getExpectedObjective
public double getExpectedObjective()
- Returns:
- Returns the expectedObjective.
extractAssignment
public int[] extractAssignment(OsiSolverInterface solver)