Currently solving a LP problem by GEKKO Library in python. The problem has like 8,000 variables. it runs fine with 462 variables if I increase the number of variables. The program shows an error "Exception: @error: Model Expression *** Error in syntax of function string: Invalid element: ,>=0"
Any comment will be helpful.
#Initialize Model
m = GEKKO()
#Set global options
m.options.solver = 3
m.options.IMODE = 3 #steady state optimization
#define parameter
Num_Cell= 463
H2 = m.Array(m.Var,Num_Cell,value = 0)
Demand = m.Const(value=20000000)
D = np.zeros(Num_Cell)
F = Hardwood_Sawlog.SumOfTotal
for i in range(Num_Cell):
H2[i].lower = 0
H2[i].upper = F[i]
D[i] = i
m.Equation(m.sum(H2[0:Num_Cell])==Demand)
m.Obj(np.dot(D,H2))
m.solve(disp=False,debug=True)
print('')
print(H2)
