JGAP

examples.multiobjective
Class MultiObjectiveExample

java.lang.Object
  extended by examples.multiobjective.MultiObjectiveExample

public class MultiObjectiveExample
extends java.lang.Object

Example for a multiobjective problem. Here, we have a function F with one input parameter t and two output values F1 and F2, with F1 = t² and F2 = (t - 2)². The input value is restricted from -10 to 10. We are looking for a t where F1 and F2 get minimal. This example is from Goldberg (pp. 199), who adapted it from Schaffer (1984).

Since:
2.6

Nested Class Summary
 class MultiObjectiveExample.MOFitnessComparator
           
 
Constructor Summary
MultiObjectiveExample()
           
 
Method Summary
 void execute()
          Executes the genetic algorithm.
static void main(java.lang.String[] args)
          Main method to run the example.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiObjectiveExample

public MultiObjectiveExample()
Method Detail

execute

public void execute()
             throws java.lang.Exception
Executes the genetic algorithm.

Throws:
java.lang.Exception
Since:
2.6

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Main method to run the example.

Parameters:
args - ignored
Throws:
java.lang.Exception
Since:
2.6

JGAP