JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.EOSscheduling
Class SqueakyWheelPlacedTSM

java.lang.Object
  extended bygov.nasa.javaGenes.core.ChildMaker
      extended bygov.nasa.javaGenes.permutation.PermutationChildMaker
          extended bygov.nasa.javaGenes.permutation.PermutationOrderMutation
              extended bygov.nasa.javaGenes.EOSscheduling.SqueakyWheelTournamentSwapMutation
                  extended bygov.nasa.javaGenes.EOSscheduling.SqueakyWheelPlacedTSM
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
SqueakyWheelShiftForward

public class SqueakyWheelPlacedTSM
extends SqueakyWheelTournamentSwapMutation

Same as SqueakyWheelTournamentSwapMutation except that moveForwardIndex is forced to be near the end of the permutation and moveBackIndex is forced to be closer to the front of the permutation.

See Also:
Serialized Form

Field Summary
protected  int badMoves
           
protected  int goodMoves
           
protected  double moveBackFraction
           
protected  double moveForwardFraction
           
 
Fields inherited from class gov.nasa.javaGenes.EOSscheduling.SqueakyWheelTournamentSwapMutation
backLargerThanForward, backSameAsForward, backSmallerThanForward, indexDifferenceSum, indices, legalRange, model, moveBackIndex, moveForwardIndex
 
Fields inherited from class gov.nasa.javaGenes.permutation.PermutationOrderMutation
numberOfSwaps
 
Fields inherited from class gov.nasa.javaGenes.core.ChildMaker
cumulative, forEvolution, last
 
Constructor Summary
SqueakyWheelPlacedTSM(EOSModel inModel, int inNumberOfSwaps, int tournamentSize)
           
SqueakyWheelPlacedTSM(EOSModel inModel, int inNumberOfSwaps, int tournamentSize, double inMoveForwardFraction, double inMoveBackFraction)
           
 
Method Summary
protected  void calculateOutputMeasures(EOSschedulingEvolvable kid)
           
protected  int getFirstIndex(PermutationEvolvable kid)
           
protected  int getSecondIndex(PermutationEvolvable kid, int firstIndex)
           
protected  void setUpIndices(EOSschedulingEvolvable kid)
           
 java.lang.String subClassMeasures()
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.EOSscheduling.SqueakyWheelTournamentSwapMutation
moreDeservingToMoveBack, moreDeservingToMoveForward, setUpIndicesFromArray, shouldSecondGoForward
 
Methods inherited from class gov.nasa.javaGenes.permutation.PermutationOrderMutation
makeChildren, mutate, numberOfParents
 
Methods inherited from class gov.nasa.javaGenes.permutation.PermutationChildMaker
copyIndex
 
Methods inherited from class gov.nasa.javaGenes.core.ChildMaker
checkLastResults, checkResults, clearLast, getAndClearLastTabSeparatedResults, getFitnessFunctionNames, getLastTabSeparatedResults, headerFragment, makeChildren, mutate, neverUsed, proportionDown, results, setFitnessFunction, setFitnessFunctionNames, tabSeparatedResults
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

moveForwardFraction

protected double moveForwardFraction

moveBackFraction

protected double moveBackFraction

goodMoves

protected int goodMoves

badMoves

protected int badMoves
Constructor Detail

SqueakyWheelPlacedTSM

public SqueakyWheelPlacedTSM(EOSModel inModel,
                             int inNumberOfSwaps,
                             int tournamentSize)

SqueakyWheelPlacedTSM

public SqueakyWheelPlacedTSM(EOSModel inModel,
                             int inNumberOfSwaps,
                             int tournamentSize,
                             double inMoveForwardFraction,
                             double inMoveBackFraction)
Method Detail

calculateOutputMeasures

protected void calculateOutputMeasures(EOSschedulingEvolvable kid)
Overrides:
calculateOutputMeasures in class SqueakyWheelTournamentSwapMutation

setUpIndices

protected void setUpIndices(EOSschedulingEvolvable kid)
Overrides:
setUpIndices in class SqueakyWheelTournamentSwapMutation

getFirstIndex

protected int getFirstIndex(PermutationEvolvable kid)
Overrides:
getFirstIndex in class SqueakyWheelTournamentSwapMutation

getSecondIndex

protected int getSecondIndex(PermutationEvolvable kid,
                             int firstIndex)
Overrides:
getSecondIndex in class SqueakyWheelTournamentSwapMutation

subClassMeasures

public java.lang.String subClassMeasures()
Overrides:
subClassMeasures in class SqueakyWheelTournamentSwapMutation

toString

public java.lang.String toString()
Overrides:
toString in class SqueakyWheelTournamentSwapMutation

JavaGenes, NASA Ames. Written largely by Al Globus