|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectexamples.audit.CoinsExample
public class CoinsExample
Same logic as in MinimizingMakeChange except that we are using the new audit capabilities provided by JGAP 2.2
| Constructor Summary | |
|---|---|
CoinsExample()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
|
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 CoinsExample()
| 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.Exceptionpublic static void main(java.lang.String[] args)
|
JGAP | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||