savi.alg
Interface StateSkeleton

All Superinterfaces:
java.lang.Cloneable
All Known Implementing Classes:
StateFunction, StateKnapsack, StateMaxSAT3, StateTSP, StateWSAT3

public interface StateSkeleton
extends java.lang.Cloneable

Basic interface for states. All states used with SimAnnealingSkeleton (and derived classes) must implement this interface.


Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 void findInitialState(double temp)
          This function is called if algorithm finding initial state.
 void findNextState(double temp)
          Called when algorithm finding next state.
 double getActualCost()
          This function count optimalization criterion for the state.
 java.lang.String[] getSubmission()
          This method return submission (problem instance) in text format.
 

Method Detail

findInitialState

void findInitialState(double temp)
This function is called if algorithm finding initial state.

Parameters:
temp - Starting temperature

findNextState

void findNextState(double temp)
Called when algorithm finding next state.

Parameters:
temp - Actual temperature

getActualCost

double getActualCost()
This function count optimalization criterion for the state.

Returns:
Optimalization criterion

clone

java.lang.Object clone()
Creates and returns a copy of this object. The copy must be Deep!

Returns:
cloned object of this class

getSubmission

java.lang.String[] getSubmission()
This method return submission (problem instance) in text format. May return array of lines with submission.

Returns:
text lines represented actual problem instance