Global Index (all files) (short | long) | Local contents | Local Index (files in subdir) (short | long)
ObjVal = objsharifi1(Chrom, P1, P2);
OBJective function for 5-x1^2-2*x2^2-x1 This function implements an example. Syntax: ObjVal = objsharifi1(Chrom, P1, P2) Input parameters: Chrom - Matrix containing the chromosomes of the current population. Each row corresponds to one individual's string representation. if Chrom == [NaN xxx], then special values will be returned xxx == 1 (or []) return boundaries xxx == 2 return title xxx == 3 return value of global minimum P1, P2 - Additional parameter Output parameters: ObjVal - Column vector containing the objective values of the individuals in the current population. if called with Chrom == [NaN xxx], then ObjVal contains xxx == 1, matrix with the boundaries of the function xxx == 2, text for the title of the graphic output xxx == 3, value of global minimum See also: objfun1a, objfun1b, objfun2, objfun6, objfun7, objfun8, objfun9, objfun10, initfun1
GEATbx: | Main page Tutorial Algorithms M-functions Parameter/Options Example functions www.geatbx.com |