Closed shayandavoodii closed 3 years ago
Thanks for posting the question to Stack Overflow. I'll close it here with the link to the thread. https://stackoverflow.com/questions/66154495/gekko-typeerror-in-python
Thanks for posting the question to Stack Overflow. I'll close it here with the link to the thread. https://stackoverflow.com/questions/66154495/gekko-typeerror-in-python
Thank you! I'll be appreciated for your help. Can you help me for that? Really I'm asking this question every where and no one helped me till now.
suppose :
i want to solve a optimization problem in python with specific objective function. Here is the code that i wrote for that purpose:
Output:
TypeError: must be real number, not GK_Operators
i guess this error is cause of specific objective function! because with simple objective functions like :
m.Obj(x1 + x2)
I don't get error! so I guess the error comes from specific objective function.How can I fix this error? where is the problem?