On the solution of elastic-plastic static and dynamic postbuckling collapse of general structure