t0 = np.array([8.0])xi = np.array([1,1,1,0,0,0])xj = np.array([0,0,0,1,1,1])
Chaoda,
One thing that works is to initialize with a different solver (IPOPT or BPOPT) and then solve with APOPT to obtain the MINLP solution.
#Set global options
m.options.SOLVER = 2 # BPOPT NLP SOLVER
m.solve(disp=True)
m.options.SOLVER = 1 # APOPT MINLP SOLVER
m.solve(disp=True)
I also had to comment out "dt = dt[dt!=0]" that was giving both a warning and an error for the Intermediate definition without an = sign.
Best regards,
John Hedengren
- To unsubscribe, send email to apmo...@googlegroups.com
- Visit this group at http://groups.google.com/group/apmonitor
---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmo...@googlegroups.com.
- To unsubscribe, send email to apmonitor+...@googlegroups.com
- Visit this group at http://groups.google.com/group/apmonitor
---
You received this message because you are subscribed to the Google Groups "apmonitor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to apmonitor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/apmonitor/b781de66-b204-4074-b713-afe82bef3d70%40googlegroups.com.