Smart Flexible Beam with Self-Maintenance for the Characteristics Variation