Metaheuristic optimal design of adaptive composite beams