| |
|
| java.lang.Object examples.audit.CoinsExample
CoinsExample | public class CoinsExample (Code) | | Same logic as in MinimizingMakeChange except that we are using the new
audit capabilities provided by JGAP 2.2
author: Klaus Meffert since: 2.2 |
Method Summary | |
public static void | main(String[] args) | public 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. |
makeChangeForAmount | public static void makeChangeForAmount(int a_targetChangeAmount) throws Exception(Code) | | Executes the genetic algorithm to determine the minimum number of
coins necessary to make up the given target amount of change. The
solution will then be written to System.out.
Parameters: a_targetChangeAmount - the target amount of change for which thismethod is attempting to produce the minimum number of coins throws: Exception - author: Neil Rotstan author: Klaus Meffert since: 1.0 |
|
|
|