Ejemplo n.º 1
0
/**
 * Will construct the tension compression string problem
 *
 */
tens_comp_string::tens_comp_string():base(3,0,1,4,4,__constraint_tolerances__(4,4))
{
	// initialize best solution
	initialize_best();

	// set the bounds for the current problem
	const double lb[] = {0.05,0.25,2.};
	const double ub[] = {2.,1.3,15.};
	set_bounds(lb,ub);
}
Ejemplo n.º 2
0
/**
 * Will construct the welded beam problem
 *
 */
welded_beam::welded_beam():base(4,0,1,7,7,__constraint_tolerances__(7,7))
{
	// initialize best solution
	initialize_best();

	// set the bounds for the current problem
	const double lb[] = {0.1,0.1,0.1,0.1};
	const double ub[] = {2.,10.,10.,2.};
	set_bounds(lb,ub);
}