net.sourceforge.swimp.samples.coin
Class RandomAssignmentGenerator

java.lang.Object
  extended by net.sourceforge.swimp.samples.coin.RandomAssignmentGenerator

public class RandomAssignmentGenerator
extends java.lang.Object

Author:
schickin

Constructor Summary
RandomAssignmentGenerator(int numNodes)
           
 
Method Summary
 int[] extractAssignment(OsiSolverInterface solver)
           
 double getExpectedObjective()
           
 CoinPackedVector getRowForVertexInA(int from)
           
 CoinPackedVector getRowForVertexInB(int to)
           
 int[] getRowIndicesForVertexInA(int from)
           
 int[] getRowIndicesForVertexInB(int to)
           
 void initializeCoinStructures()
           
 void initializeSolver(OsiSolverInterface solver)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomAssignmentGenerator

public RandomAssignmentGenerator(int numNodes)
Method Detail

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)