import java.io.*;
import javax.swing.*;
import javax.tools.*;
import java.util.*;
import java.lang.Integer;
import java.awt.*;
import java.awt.event.*;
import java.awt.font.*;
import java.awt.geom.*;
import java.awt.image.*;
import javax.swing.*;
import java.util.Locale;
import java.text.*;
import java.util.*;
import javax.swing.table.*;

public class ce3_17
{ 	 public double r[];	
	 public ce3_17(double xmin[],double xmax[]) 
	 {  f3D ff1=new f3D();	    
	    int N=18; //number of figits in binary genes
	    int POPSIZE=200; //population size
        int MAXGENS=200; //maximum number of generations
        int NVARS=xmin.length; //number of variables (nember of genes in genome
        double PXOVER=0.3; //probability of crossover
        double PMUTATION=0.02; //probability of mutation
        Genetic1 xx=new Genetic1(POPSIZE,MAXGENS,NVARS,N,PXOVER,PMUTATION);
        xx.setPopulation(xmin,xmax,ff1);
        r=xx.calculate(ff1,false); 
     }     
}
