Solver Adding Constraints

legolas97

New Member
Joined
May 24, 2022
Messages
30
Office Version
  1. 365
Platform
  1. Windows
debug 13.png


Hi, I'm trying to optimize floor planning. I want the maximum number of people coming on any given day to be minimized, and to use minimum number of floors possible on any given day. Assume there are 5 groups of people and I can tell them what day of the week they have to come.

Second step would be if these groups are coming multiple times in a week.

I have currently tried using solver and got this ^ but as you can see the solution is far short of what I'm hoping for.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
this is feasible as worksheet not as an image, so can you give an example with the XL2BB-tool or with a link.
Group1 not together with Group2 = binary variables for each group (and each day) and the sum <=1
The number of variables (especially binary) becomes soon too high ...:cry:
I don't see any relationship between your capacity and your groups.
 
Upvote 0
this is feasible as worksheet not as an image, so can you give an example with the XL2BB-tool or with a link.
Group1 not together with Group2 = binary variables for each group (and each day) and the sum <=1
The number of variables (especially binary) becomes soon too high ...:cry:
I don't see any relationship between your capacity and your groups.
Hi I'm not able to add the xl2bb tool, in fact both that and the solver tool are no longer appearing on the ribbon.
1655707465562.png


I'm attaching a link to the excel file for your reference.


 
Upvote 0
Basically group 1 can come to school 1 time a week, 2 times, 3 times, 4 times or 5 times.

And its also possible that group 1 cannot sit with group 2 for instance.

Like I said the objective is to reduce the space requirement given this. With the assumption that we can tell each group when they have to come.
 
Upvote 0
i have no idea what you're optimizing.
Can you explain the whole story because what you do and what you say doesn't match.
 
Upvote 0
i have no idea what you're optimizing.
Can you explain the whole story because what you do and what you say doesn't match.
Ok let me retry.

I'm optimizing from a real estate perspective.
We have an academy for which we've leased out some land.

Students come to the academy in groups.
I want to be able to use minimal number of floors by telling them on what days to come.
So on any given day I want the minimum number of students turning up.

So then I can contract/reduce the area I'm currently leasing.
 
Upvote 0

Forum statistics

Threads
1,224,826
Messages
6,181,192
Members
453,021
Latest member
pingpong7117

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