samples.random
Class RandomProblem

java.lang.Object
  extended by samples.random.RandomProblem

public class RandomProblem
extends Object


Constructor Summary
RandomProblem(int nbVar, int nbVal, double density, long seed, boolean force)
           
RandomProblem(int nbVar, int nbVal, int nbConstraints, double tightness, long seed, boolean force)
           
 
Method Summary
static double criticTightness(int nbvar, int nbval, int nbcons)
           
 Collection<Constraint> getConstraints()
           
 IntegerVariable[] getVariables()
           
static int nbArcs(double n, double density)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomProblem

public RandomProblem(int nbVar,
                     int nbVal,
                     double density,
                     long seed,
                     boolean force)

RandomProblem

public RandomProblem(int nbVar,
                     int nbVal,
                     int nbConstraints,
                     double tightness,
                     long seed,
                     boolean force)
Method Detail

nbArcs

public static int nbArcs(double n,
                         double density)

criticTightness

public static double criticTightness(int nbvar,
                                     int nbval,
                                     int nbcons)

getVariables

public IntegerVariable[] getVariables()

getConstraints

public Collection<Constraint> getConstraints()


Copyright © 2012. All Rights Reserved.