I have problems with the GEKKO class: I have to use functions like m.exp and m.log but this generates me a problem after. Here is a part of my code:
import numpy as np
from math import sinh, cosh
from scipy.integrate import quad
import csv
m = GEKKO()
def Antoine(T, C1, C2, C3, C4, C5):
P = m.exp(C1 + (C2 / T) + (C3 * m.log(T)) + (C4 * (T ** C5)))
return (P / 1000) # kPa
When I use this function (latter in the code) it returns a gekko class which I can't operate after. This is from the VSC debugger:
((((exp(((66.60897125778965+((-9.2194)*(log(393.15))))+1.07887711905)))/(1000)))/(200))
This is the type that return when I use type()
<class 'gekko.gk_operators.GK_Operators'>
I need the value of that, not the expression, I need a float type. If I try to use the method .VALUE it returns Zero 0.
I hope someone could help me with this.