Stress compensation method for structural shakedown analysis