private double psfunc2(double x,double t1,int dim,int css){
  dim=dim + 1;
  double xy=2 * (x - 0.5);
  if (lType == 21) {
    return xy - Math.pow(t1,0.5 * (numberOfVariables + 3 * dim - 8) / (numberOfVariables - 2));
  }
 else   if (lType == 22) {
    double theta=6 * Math.PI * t1 + dim * Math.PI / numberOfVariables;
    return xy - Math.sin(theta);
  }
 else   if (lType == 23) {
    double theta=6 * Math.PI * t1 + dim * Math.PI / numberOfVariables;
    double ra=0.8 * t1;
    if (css == 1) {
      return xy - ra * Math.cos(theta);
    }
 else {
      return xy - ra * Math.sin(theta);
    }
  }
 else   if (lType == 24) {
    double theta=6 * Math.PI * t1 + dim * Math.PI / numberOfVariables;
    double ra=0.8 * t1;
    if (css == 1) {
      return xy - ra * Math.cos(theta / 3);
    }
 else {
      return xy - ra * Math.sin(theta);
    }
  }
 else   if (lType == 25) {
    double rho=0.8;
    double phi=Math.PI * t1;
    double theta=6 * Math.PI * t1 + dim * Math.PI / numberOfVariables;
    if (css == 1) {
      return xy - rho * Math.sin(phi) * Math.sin(theta);
    }
 else     if (css == 2) {
      return xy - rho * Math.sin(phi) * Math.cos(theta);
    }
 else {
      return xy - rho * Math.cos(phi);
    }
  }
 else   if (lType == 26) {
    double theta=6 * Math.PI * t1 + dim * Math.PI / numberOfVariables;
    double ra=0.3 * t1 * (t1 * Math.cos(4 * theta) + 2);
    if (css == 1) {
      return xy - ra * Math.cos(theta);
    }
 else {
      return xy - ra * Math.sin(theta);
    }
  }
 else {
    throw new IllegalStateException();
  }
}

private double psfunc2 ( double x , double t1 , int dim , int css ) { dim = dim + 1 ; double xy = 2 * ( x - 0.5 ) ; if ( lType == 21 ) { return xy - Math . pow ( t1 , 0.5 * ( numberOfVariables + 3 * dim - 8 ) / ( numberOfVariables - 2 ) ) ; } else if ( lType == 22 ) { double theta = 6 * Math . PI * t1 + dim * Math . PI / numberOfVariables ; return xy - Math . sin ( theta ) ; } else if ( lType == 23 ) { double theta = 6 * Math . PI * t1 + dim * Math . PI / numberOfVariables ; double ra = 0.8 * t1 ; if ( css == 1 ) { return xy - ra * Math . cos ( theta ) ; } else { return xy - ra * Math . sin ( theta ) ; } } else if ( lType == 24 ) { double theta = 6 * Math . PI * t1 + dim * Math . PI / numberOfVariables ; double ra = 0.8 * t1 ; if ( css == 1 ) { return xy - ra * Math . cos ( theta / 3 ) ; } else { return xy - ra * Math . sin ( theta ) ; } } else if ( lType == 25 ) { double rho = 0.8 ; double phi = Math . PI * t1 ; double theta = 6 * Math . PI * t1 + dim * Math . PI / numberOfVariables ; if ( css == 1 ) { return xy - rho * Math . sin ( phi ) * Math . sin ( theta ) ; } else if ( css == 2 ) { return xy - rho * Math . sin ( phi ) * Math . cos ( theta ) ; } else { return xy - rho * Math . cos ( phi ) ; } } else if ( lType == 26 ) { double theta = 6 * Math . PI * t1 + dim * Math . PI / numberOfVariables ; double ra = 0.3 * t1 * ( t1 * Math . cos ( 4 * theta ) + 2 ) ; if ( css == 1 ) { return xy - ra * Math . cos ( theta ) ; } else { return xy - ra * Math . sin ( theta ) ; } } else { throw new IllegalStateException ( ) ; } }
controls the pareto set shape for 2d instances .
