private double getfunctionvalue(int tipefungsi, double X, double Y) { switch (tipefungsi) { case 0: return(FunctionVariabel.goldsteinprice(X, Y)); case 1: return(Andi.Fungsi.Bohachevsky.getValue(X, Y, Enums.BohaType.Boha1)); case 2: return(Andi.Fungsi.Bohachevsky.getValue(X, Y, Enums.BohaType.Boha2)); case 3: return(Andi.Fungsi.Bohachevsky.getValue(X, Y, Enums.BohaType.Boha3)); case 4: return(FunctionVariabel.fourpeaks(X, Y)); default: return(0); } }