choco.cp.solver.search.set
Class RandomSetValSelector

java.lang.Object
  extended by choco.cp.solver.search.set.RandomSetValSelector
All Implemented Interfaces:
ValSelector<SetVar>

public class RandomSetValSelector
extends Object
implements ValSelector<SetVar>


Field Summary
protected  Random random
           
 
Constructor Summary
RandomSetValSelector()
          Default constructor for a random value selector for banching.
RandomSetValSelector(long seed)
          Constructs a random value selector for branching with a specified seed.
 
Method Summary
 int getBestVal(SetVar v)
          A method selecting the search value used for the alternative
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

random

protected Random random
Constructor Detail

RandomSetValSelector

public RandomSetValSelector()
Default constructor for a random value selector for banching.


RandomSetValSelector

public RandomSetValSelector(long seed)
Constructs a random value selector for branching with a specified seed.

Parameters:
seed - to replay a random palm
Method Detail

getBestVal

public int getBestVal(SetVar v)
Description copied from interface: ValSelector
A method selecting the search value used for the alternative

Specified by:
getBestVal in interface ValSelector<SetVar>


Copyright © 2012. All Rights Reserved.