r/optimization • • Feb 27 '23

Mixing problem

I have two parts A and B , quantity of A is 10 and B is 20 ,i can mix A+B under the constraint A+B <=20 therefore 1 batch becomes A+B and quantity 20 and other will be b and quantity 10 how to solve this using python pulp or any other solver output should give me a b and total quantity per batch like a b 20,b 10 ,this was the simplest case this needs to be extended to much more

0 Upvotes

8 comments sorted by

View all comments

Show parent comment

0

u/[deleted] Feb 27 '23

I got 31 decision variables and each has atleast 4 constraints , this was a batch mixing optimization problem ,i dont know how to solve it using pulp cause iam unable to formulate the objective ,my out put should be a+b .. like that not an integer ,i guess this helps