title: Where should i locate the setpoint change in the python code; after or before solving the MPC(m.solve(disp=True))?
body: <p>I am trying to use GEKKO to control the concentration and temperature of a CSTR while manipulating the cooling temperature and the inlet flow. I am confused about the position of the setpoint change in the python code. In one example on the APMonitor website, the setpoint of the controlled variables were put before the mpc solve option; that was used when m.options.CV_TYPE was equal to 2. One another case was when m.options.CV_TYPE was equal to 1 and the setpoint change was put after the mpc solving option. </p>
  
  <p>Thank you. </p>