Excel Solver Linear problem with discontinuous variable cell values

Tlazenby

New Member
Joined
Mar 20, 2016
Messages
3
Hello all,

I am working on a linear optimization problem where I need the variable cells to either be 0 or greater than some set value, for example 100. Conceptually this seems very straightforward but I have been unable to set Solver up properly thus far.

Any help would be greatly appreciated.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
In case anyone else is runs into a similar issue this is how I was able to accomplish this:

Set a column next to your variable cells as binary and then create two more supporting columns. Support column #1 contains the formula =720*(1-AF5) where AF5 is the corresponding binary cell and 720 is an arbitrarily large number that the variable cells will never reach. Support column #2 contains the formula =100-720*AF5 again AF5 is the binary cell and 100 is the minimum value I am looking for within my variable cells if it is used.

Then finally within solver set your variable cells <= support column #1 and >= support column #2. Using this method the variable cells that solver will end up using actually end up as a 0 within the binary cells.
 
Upvote 0

Forum statistics

Threads
1,215,201
Messages
6,123,621
Members
449,109
Latest member
Sebas8956

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