Closed agobL closed 2 years ago
Some functions such as np.dot()
are allowed with Gekko arrays but others such as np.logical_or()
do not return the correct form for Gekko automatic differentiation. Gekko uses gradient-based solvers so discontinuous functions are not allowed. Perhaps try scipy.optimize.minimize()
instead?
Hi,
I would like to optimize an optimal control problem with Gekko, but I don't know how to write it correctly.
On the code below, the input to optimize is the 23-elements-vector Pheat, so that the objective function Cost is minimized, and the 23-elements-vector Tint kept above a threshold value given by the setpoint list. The computation of Tint is done by the simulateTint function. It's not an explicit mathematic formula, and I would like to know how to formulate it so that the algorithm takes it into account.
Thanks in advance.