Excel Solver - Optimizing Profit - Constraint Problem - Micr Office voor Mac 2011

SophiePantone

New Member
Joined
Dec 3, 2015
Messages
1
I am trying to optimize the profit by area constraints in a store. A sort of Knapsack problem.
The goal is to optimize the profit by placing department i within section j. 4 departments need to be located to 6 sections.


The objective function is a sum of decision variable xij * profit for department i in section j. xij is a binary variable.
Everything is working fine, until I try that the model only maximises the profit by the use of 3 to 4 departments.
I want to investigate wether if you drop a department, the profit is maximized.


Does someone know how I can enforce this constraint?
I already tried the countif(...;'<>0') functions on both of my area constraints. But this is not working.


This is my model so far:
MAX Xij * Pij + E
ST
EACH SECTION CAN ONLY CARY ONE DEPARTMENT
SUM i to 4: Xij = 1 for all j sections


BRANDS TOGETHER
sum j to 6: abs value (Xij + Xij+1) <= 2 for all i brands


AREA CONSTRAINTS
0 < sum j to 6: Xij for all i brands * size department < 92


I tried the countif function on the <xij for all i brands * size department>. For some situations the model only puts 2 departments within the 6 sections, even when i ask that the countif constraint should be >= 3.


Can anyone help me?


Thank you!!!
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,223,227
Messages
6,170,848
Members
452,361
Latest member
d3ad3y3

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