wGmdh.jGmdh.gui
Class GuiManager.SimulatedAnnealingRelocation

java.lang.Object
  extended by wGmdh.jGmdh.gui.GuiManager.SimulatedAnnealingRelocation
Enclosing class:
GuiManager

protected class GuiManager.SimulatedAnnealingRelocation
extends java.lang.Object


Nested Class Summary
protected  class GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationLayer
           
protected  class GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationSingleNode
           
 
Constructor Summary
GuiManager.SimulatedAnnealingRelocation(java.util.ArrayList<java.util.ArrayList<NodeGraphics>> nodes)
           
 
Method Summary
protected  void acceptNeighbor(GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationLayer nc)
          Accepts modification contained in nc
protected  void acceptNeighbor(GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationSingleNode nc)
          Accepts modification contained in nc
protected  double costDifference(GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationLayer nc)
          Computes cost difference of 2 neigboring configurations.
protected  double costDifference(GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationSingleNode nc)
          Computes cost difference of 2 neigboring configurations.
protected  void generateNeighbor(java.util.ArrayList<java.util.ArrayList<NodeGraphics>> config, int maxMove, GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationSingleNode newConfig)
           
protected  void generateNeighbor(java.util.ArrayList<java.util.ArrayList<NodeGraphics>> config, int maxTranslation, int maxSpacingChange, GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationLayer newConfig)
           
protected  double penalizeNodeToNode(double weight, java.awt.Point loc1, java.awt.Point loc2)
           
protected  void startLayer(java.util.ArrayList<java.util.ArrayList<NodeGraphics>> config, double initialTemp, int problemSizeMultiplier, int problemSize, int coolingsteps, double temperatureMultiplier)
           
protected  void startSingleNode(java.util.ArrayList<java.util.ArrayList<NodeGraphics>> config, double initialTemp, int problemSizeMultiplier, int problemSize, int coolingsteps, double temperatureMultiplier)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GuiManager.SimulatedAnnealingRelocation

public GuiManager.SimulatedAnnealingRelocation(java.util.ArrayList<java.util.ArrayList<NodeGraphics>> nodes)
Method Detail

penalizeNodeToNode

protected double penalizeNodeToNode(double weight,
                                    java.awt.Point loc1,
                                    java.awt.Point loc2)

costDifference

protected double costDifference(GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationSingleNode nc)
Computes cost difference of 2 neigboring configurations.

Parameters:
nc -
Returns:

costDifference

protected double costDifference(GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationLayer nc)
Computes cost difference of 2 neigboring configurations.

Parameters:
nc -
Returns:

startSingleNode

protected void startSingleNode(java.util.ArrayList<java.util.ArrayList<NodeGraphics>> config,
                               double initialTemp,
                               int problemSizeMultiplier,
                               int problemSize,
                               int coolingsteps,
                               double temperatureMultiplier)

startLayer

protected void startLayer(java.util.ArrayList<java.util.ArrayList<NodeGraphics>> config,
                          double initialTemp,
                          int problemSizeMultiplier,
                          int problemSize,
                          int coolingsteps,
                          double temperatureMultiplier)

generateNeighbor

protected void generateNeighbor(java.util.ArrayList<java.util.ArrayList<NodeGraphics>> config,
                                int maxMove,
                                GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationSingleNode newConfig)
Parameters:
config - input configuration. will get modified by the method.
maxMove - upper bound for the random movement
newConfig - results get returned in this parameter

generateNeighbor

protected void generateNeighbor(java.util.ArrayList<java.util.ArrayList<NodeGraphics>> config,
                                int maxTranslation,
                                int maxSpacingChange,
                                GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationLayer newConfig)
Parameters:
config - input configuration. will get modified by the method.
maxMove - upper bound for the random movement
newConfig - results get returned in this parameter

acceptNeighbor

protected void acceptNeighbor(GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationSingleNode nc)
Accepts modification contained in nc

Parameters:
nc -

acceptNeighbor

protected void acceptNeighbor(GuiManager.SimulatedAnnealingRelocation.NeighboringConfigurationLayer nc)
Accepts modification contained in nc

Parameters:
nc -