Static and dynamic optimization methods