BYU-PRISM / GEKKO

GEKKO Python for Machine Learning and Dynamic Optimization
https://machinelearning.byu.edu
Other
595 stars 104 forks source link

Error in IMODE 3 when variables are not initialized to values #18

Closed abe-mart closed 6 years ago

abe-mart commented 6 years ago

Optimizing in IMODE 3 gives a CSV_READ error when variables are initialized without values.

abe-mart commented 6 years ago

Example:

from gekko import GEKKO
m = GEKKO()
x = m.Var()
m.Obj(x**2)
m.options.IMODE = 3
m.solve()

Gives the error Error: include CSV data in 10.8.33.233_gk_model0.csv when CSV_read is ON STOPPING. . .

loganbeal commented 6 years ago

@abe-mart Nice find. @APMonitor is going to fix this in the back-end to be a warning rather than a fatal error.

loganbeal commented 6 years ago

@abe-mart The latest GEKKO packages include an updated executable that corrects this error. The executables on the remote servers will be updated shortly.

APMonitor commented 6 years ago

The executable on the public servers byu.apmonitor.com and xps.apmonitor.com are updated.