I'm trying to maximize profit in my optimization problem. When I use the Gekko m.Obj function, it always minimizes the profit.
from gekko import GEKKO
m = GEKKO()
profit = m.Var(lb=1,ub=10)
m.Obj(profit**2)
m.solve(disp=False)
print(profit.value)
The reported optimal solution is profit=1. How can I switch to maximizing an objective function with Python Gekko so that the optimal solution is profit=10? I have multiple objectives in my problem. There are some that I want to minimize (utilities, feed material, operating expense) and others that I want to maximize (profit, production).