Constraint Modeling for Solver

IrishHawk01

New Member
Joined
Mar 20, 2014
Messages
4
I think my logic is a little off...

I have three products (Small, Medium, Large)-produced across 3 plants/locations:

Product
S=Small
M=Medium
L= Large

Plant 1=1
Plant 2=2
Plant 3=3

Constraint: Production of Small cannot be greater than 5x the production of Medium

5(Xs1+Xs2+Xs3)<= (Xm1+Xm2+Xm3)
5(Xs1+Xs2+Xc3) - 1(Xm1+Xm2+Xm3) <= 0
5(Xs1+Xs2+Xs3) - 1(Xm1+Xm2+Xm3) + 0(XL1+XL2+XL3) <= 0

Production of Large cannot be greater than 5x the production of medium

5(XL1+XL2+XL3)<= (Xm1+Xm2+Xm3)
5(XL1+XL2+XL3) - 1(Xm1+Xm2+Xm3) <= 0
5(XL1+XL2+XL3) - 1(Xm1+Xm2+Xm3) + 0(Xs1+Xs2+Xs3) <= 0

Cell Ranges that I've created:

SmallMediumLarge
Xs1Xs2Xs3Xm1Xm2Xm3XL1XL2 XL3
-

<tbody>
</tbody>
Production of Small cannot be greater than 5x production of Medium5+5+5+-1+-1+-1+0+0+0 (0) <= 0
Production of Large cannot be greater than 5x production of Medium0+0+0+-1+-1+-1+5+5+5 (0) <= 0

<tbody>
</tbody>


Something appears to be off in my results.....just want to double check my logic on this one.
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.

Forum statistics

Threads
1,214,968
Messages
6,122,506
Members
449,089
Latest member
RandomExceller01

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top