Question about the conditional statement ('m.if3') in the GEKKO
问题 I would like to add some conditional statements in the GEKKO code. I added the below statement with 'm.if3'. However, it has returned syntax error that I didn't have without the conditional statement. 'R1_1 = m.if3(R1<0, 0, R1)' #%% GEKKO m = GEKKO(remote=False) #print(m.version) #m.time = np.linspace(0, 3600, 100) m.time = np.array([0,tstep]) cH = m.CV(value=cs0[0]) cM = m.CV(value=cs0[1]) cW = m.CV(value=cs0[2]) cF = m.CV(value=cs0[3]) R1_1 = m.Var() r3 = m.Intermediate(r0*(1-cF/cFeMax)**(1