Integrated dynamic optimization and control in reservoir engineering using locally identified linear models