samples.tutorials.lns.lns
Class Neighborhood

java.lang.Object
  extended by samples.tutorials.lns.lns.Neighborhood
All Implemented Interfaces:
Comparable

public class Neighborhood
extends Object
implements Comparable

Neighborhood defines how to build and to explore the search space of a problem around a solution in hope to improve locally the solution

Author:
Sophie Demassey
See Also:
LNSCPSolver

Constructor Summary
Neighborhood(NeighborhoodOperator operator)
           
Neighborhood(NeighborhoodOperator operator, AbstractIntBranchingStrategy strategy, int impact)
           
 
Method Summary
 int compareTo(Object o)
           
 int decreaseImpact()
           
 NeighborhoodOperator getOperator()
           
 AbstractIntBranchingStrategy getStrategy()
           
 int increaseImpact()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Neighborhood

public Neighborhood(NeighborhoodOperator operator,
                    AbstractIntBranchingStrategy strategy,
                    int impact)

Neighborhood

public Neighborhood(NeighborhoodOperator operator)
Method Detail

getOperator

public NeighborhoodOperator getOperator()

getStrategy

public AbstractIntBranchingStrategy getStrategy()

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

decreaseImpact

public int decreaseImpact()

increaseImpact

public int increaseImpact()


Copyright © 2012. All Rights Reserved.