I’m trying to use pulp to get minimum value U(X) of following objective function, where x_{f,i,v} is binary value. And I’m having problem while writing max() when set an objective function to pulp.LpProblem. What I do is use python inner function max() but it gives me an error. Seems like it cannot be used to pulp. How can I use
Tag: linear-programming
How could constraints be dynamically constructed in gekko?
I’m a newbie in gekko, and want to use it in my linear programming problems. I have variable names, costs, minimum and maximum bounds in separate dictionaries (my_vars, Cost, Min and Max) with variable names as their keys, and the objective is minimizing total cost with determining the amount of variables satisfying the constraints. I did as below; Here I’d