samples.tutorials.to_sort.tsp
Class MyValSelector
java.lang.Object
samples.tutorials.to_sort.tsp.MyValSelector
- All Implemented Interfaces:
- ValSelector<IntDomainVar>
public class MyValSelector
- extends Object
- implements ValSelector<IntDomainVar>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
objective
protected IntDomainVar objective
vars
protected IntDomainVar[] vars
matrix
protected int[][] matrix
src
protected int src
dest
protected int dest
optimize
protected boolean optimize
MyValSelector
public MyValSelector(IntDomainVar objective,
IntDomainVar[] vars,
int[][] matrix,
int src,
int dest)
getBestVal
public int getBestVal(IntDomainVar v)
- Description copied from interface:
ValSelector
- A method selecting the search value used for the alternative
- Specified by:
getBestVal
in interface ValSelector<IntDomainVar>
Copyright © 2012. All Rights Reserved.