JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.EOSscheduling
Class SqueakyWheelShiftForward

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
                      extended bygov.nasa.javaGenes.EOSscheduling.SqueakyWheelShiftForward
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class SqueakyWheelShiftForward
extends SqueakyWheelPlacedTSM

See Also:
Serialized Form

Field Summary
protected  double shiftFraction
           
 
Fields inherited from class gov.nasa.javaGenes.EOSscheduling.SqueakyWheelPlacedTSM
badMoves, goodMoves, moveBackFraction, 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
SqueakyWheelShiftForward(EOSModel inModel, int inNumberOfSwaps, int tournamentSize)
           
SqueakyWheelShiftForward(EOSModel inModel, int inNumberOfSwaps, int tournamentSize, double inMoveForwardFraction, double inShiftFraction)
           
 
Method Summary
protected  void calculateOutputMeasures(EOSschedulingEvolvable kid)
           
protected  int getSecondIndex(PermutationEvolvable kid, int firstIndex)
           
 void mutate(int shift, int shiftBeforeMe, PermutationEvolvable kid)
          shifts shift to in front of shiftBeforeMe
 java.lang.String subClassMeasures()
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.EOSscheduling.SqueakyWheelPlacedTSM
getFirstIndex, setUpIndices
 
Methods inherited from class gov.nasa.javaGenes.EOSscheduling.SqueakyWheelTournamentSwapMutation
moreDeservingToMoveBack, moreDeservingToMoveForward, setUpIndicesFromArray, shouldSecondGoForward
 
Methods inherited from class gov.nasa.javaGenes.permutation.PermutationOrderMutation
makeChildren, 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

shiftFraction

protected double shiftFraction
Constructor Detail

SqueakyWheelShiftForward

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

SqueakyWheelShiftForward

public SqueakyWheelShiftForward(EOSModel inModel,
                                int inNumberOfSwaps,
                                int tournamentSize,
                                double inMoveForwardFraction,
                                double inShiftFraction)
Method Detail

calculateOutputMeasures

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

getSecondIndex

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

mutate

public void mutate(int shift,
                   int shiftBeforeMe,
                   PermutationEvolvable kid)
shifts shift to in front of shiftBeforeMe

Overrides:
mutate in class PermutationOrderMutation

subClassMeasures

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

toString

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

JavaGenes, NASA Ames. Written largely by Al Globus