The paper deals with elastic-plastic optimization of flexural structural systems, subjected to kinematic restrictions. A finite holonomic piecewise linear elastic-hardening constitutive law is adopted. Sensitivity analysis for the displacement field is also performed, and a suitable finite element formulation, allowing for the spreading of plasticity, is also given. Finally, some meaningful numerical applications, together with their physical interpretation, are presented