|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectexamples.MinimizingMakeChangeCached
public class MinimizingMakeChangeCached
See class MinimizingMakeChanged. Here a cached fitness function is used instead of an ordinary fitness function.
Constructor Summary | |
---|---|
MinimizingMakeChangeCached()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
Main method. |
static void |
makeChangeForAmount(int a_targetChangeAmount)
Executes the genetic algorithm to determine the minimum number of coins necessary to make up the given target amount of change. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MinimizingMakeChangeCached()
Method Detail |
---|
public static void makeChangeForAmount(int a_targetChangeAmount) throws java.lang.Exception
a_targetChangeAmount
- the target amount of change for which this
method is attempting to produce the minimum number of coins
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
args
- amount of change in cents to create
java.lang.Exception
|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |