Inelastic Analysis of Structures under Variable Loads