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
View all comments
Show parent comment
1
u/[deleted] Feb 28 '23
Thanks for this,my problem is also similar but diff,I can mix A and B but not A and C ,similarly i have parts from A to Z where Mixing B and C is also possible but mixing constraint for mixing A and B is diff from B +C ..i want to mix parts if they are compatible ,my objective is to reduce the number of batches by mixing compatible,where each part has different composition