Method and apparatus for simulation of dynamic and stationary prediction, control and otpimierungsverfahren