Quiet@Remove["Global`*"];
SetDirectory[NotebookDirectory[]];
Off[Part::pspec];

<<geneticoperators.m
<<genetic-new.m

(*vector of variables*)
(*{variable,costr1,constr2,number of digits}*)
VektorPromennych={{x,-1,1,16},{y,-1,1,16},{z,-1,1,16}};
Fitness[{x_,y_,z_}]:=Sin[x]+Cos[y]+Sin[z] ;

(*number genoms in a population*)
pocetJedincu=80;
(*mutation probability*)
pravdepodobnostMutace=0.01;
(*having children probability*)
pravdepodobnostKrizeni=0.85;
(*use Gray Code*)
pouzitGrayCode=True;
(*roulette choise*)
pouzitRuletu=True;
debugMode=False;

Populace=Inicializace[pocetJedincu];

OptimalizacniSmycka[20];