Using Solver to set contraint divisibility

trigger467

New Member
Joined
Sep 15, 2005
Messages
35
I am working on a problem that I must use solver for and I need to have one of the "changed cells" divisible by 6. Is there a way to set a constraint in Solver to do this?

For example, I am deciding on how many of product A, B, and C to produce. But, Product A MUST be produced in quantities of 6.

Any help is appreciated.

Wil
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
without thinking of the solver setup, the contraint is of the form:

mod(your_cal,6)=0
 
Upvote 0
If you know about the advantage of keeping an optimization problem "linear," you may want to add a new variable, say X=A/6 and ensure X is an integer. I *believe* that will keep the problem linear but it's been a long time since I had to worry about things like this.
I am working on a problem that I must use solver for and I need to have one of the "changed cells" divisible by 6. Is there a way to set a constraint in Solver to do this?

For example, I am deciding on how many of product A, B, and C to produce. But, Product A MUST be produced in quantities of 6.

Any help is appreciated.

Wil
 
Upvote 0

Forum statistics

Threads
1,203,462
Messages
6,055,565
Members
444,799
Latest member
CraigCrowhurst

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