#StackBounty: #python #glpk Spread load on different equal cost variables in GLPK

Bounty: 50

Is it possible in GLPK to spread the solution over multiple equal cost variables?

Let’s suppose I have this piece of code in myprog:

from pymprog import *

begin()

loads = var('loads', 3)
load_cost = par('load_cost', [10, 10, 10])

sum (loads[i] for i in range(len(loads))) >= 200

for i in range(len(loads)) :
   loads[i] <= 100

minimize (sum (load_cost[i] * loads[i] for i in range(len(loads))))

solve()
end()

Is it possible to ask the solver to return 66, 66, 66 for the three loads instead of 100, 100, 0?


Get this bounty!!!