Beispiel #1
0
void FWeierstrass::initialize(){

    setOriginalGlobalOpt();

	if(IS_PROBLEM_NAME(m_id,"FUN_Weierstrass")){
	
	}else if(IS_PROBLEM_NAME(m_id,"FUN_R_Weierstrass")){
		setConditionNumber(2);
            loadRotation();
	}else if(IS_PROBLEM_NAME(m_id,"FUN_RS_Weierstrass")){
		setConditionNumber(5);
            loadTranslation();
            loadRotation();
	}else if(IS_PROBLEM_NAME(m_id,"FUN_RS_Weierstrass_CEC05")){
		setConditionNumber(5);
            loadTranslation();
            loadRotation();
             setBias(90);
	}else {
		throw myException("Error: please check the problem ID@FWeierstrass::initialize");
	}

    setGlobalOpt();
    setAccuracy(1.0e-2);

}
Beispiel #2
0
void FAckley::initialize(){

    setOriginalGlobalOpt();

	if(IS_PROBLEM_NAME(m_id,"FUN_Ackley")||IS_PROBLEM_NAME(m_id,"FUN_Ackley_Noisy")){	}
	else if(IS_PROBLEM_NAME(m_id,"FUN_S_Ackley")){
		loadTranslation();
	}else if(IS_PROBLEM_NAME(m_id,"FUN_R_Ackley")){
		 setConditionNumber(2);
         loadRotation();
	}else if(IS_PROBLEM_NAME(m_id,"FUN_RS_Ackley")){
		setConditionNumber(100);
        loadTranslation();
        loadRotation();
	}else if(IS_PROBLEM_NAME(m_id,"FUN_RS_Ackley_Bound_CEC05")){
		setConditionNumber(100);
        loadTranslation();
        loadRotation();
        setBias(-140);

	}else if(IS_PROBLEM_NAME(m_id,"FUN_S_Ackley_CEC08")){
		setBias(-140);
            loadTranslation();
	}else{
		throw myException("Error: please check the problem ID@FAckley::initialize()");
	}

    setGlobalOpt();
}
Beispiel #3
0
void FSchwefel_2_22::initialize() {

    setOriginalGlobalOpt();

    if(IS_PROBLEM_NAME(m_id,"FUN_Schwefel_2_22")||IS_PROBLEM_NAME(m_id,"FUN_Schwefel_2_22_Noisy")) {

    } else if(IS_PROBLEM_NAME(m_id,"FUN_S_Schwefel_2_22")) {
        loadTranslation();

    } else if(IS_PROBLEM_NAME(m_id,"FUN_R_Schwefel_2_22")) {
        setConditionNumber(2);
        loadRotation();
    } else if(IS_PROBLEM_NAME(m_id,"FUN_RS_Schwefel_2_22")) {
        setConditionNumber(2);
        loadTranslation();
        loadRotation();
    } else {
        throw myException("Error: please check the problem ID@FSchwefel_2_22::initialize");
    }
    setGlobalOpt();

}
Beispiel #4
0
void FSchwefel::initialize()
{
	vector<double> v(m_numDim,420.9687);
    setOriginalGlobalOpt(0,&v);

	if(IS_PROBLEM_NAME(m_id,"FUN_Schwefel")||IS_PROBLEM_NAME(m_id,"FUN_Schwefel_Noisy")){
	}else if(IS_PROBLEM_NAME(m_id,"FUN_S_Schwefel")){
		loadTranslation();
	}else if(IS_PROBLEM_NAME(m_id,"FUN_R_Schwefel")){
		setConditionNumber(2);
        loadRotation();
	}else if(IS_PROBLEM_NAME(m_id,"FUN_RS_Schwefel")){
		 setConditionNumber(2);
        loadTranslation();
        loadRotation();
	}else{
		throw myException("Error: please check the problem ID@FSchwefel::initialize");
	}
	
    setGlobalOpt(0,&v);
    setAccuracy(1.0e-2);

}