I want to apply max3 function in GEKKO on each element of a GEKKO array. For example:
from gekko import GEKKO
m = GEKKO()
a = m.Array(m.Var, dim = (5,))
b = m.Array(m.Var, dim = (5,))
I would like to compare each element of a with b and get a 5 dimensional GEKKO vector. So, I implement
c = m.max3(a, b)
print(c)
print(c.value)
It results into a GEKKO variable of size 1 with value 0. Is there a way to get a 5 dimensional GEKKO vector without using for loop?
Thank you.