Excel solver not Producing Solution for Grade Proportion and Bussing Cost Optimization

madhushrisridhar

New Member
Joined
Dec 17, 2024
Messages
1
Office Version
  1. 2024
Platform
  1. MacOS
I am trying to solve a bussing cost minimization problem using Excel Solver. The goal is to assign students from various areas to three schools while respecting:

Capacity Constraints:

School 1: 900 studentsSchool 2: 1100 studentsSchool 3: 1000 students

Grade Proportion Constraints:
Each school's 6th, 7th, and 8th grades must constitute between 30% and 36% of the total student population at that school.

Objective:
Minimize the total bussing cost, calculated as the sum of the number of students assigned to each school multiplied by the cost per student.

What I Have Done:
Objective Function: Set up using SUMPRODUCT to calculate total bussing costs.
Constraints:
School capacity: Total students assigned to each school do not exceed the specified limits.
Grade proportions: Each grade's student count is constrained between 30% and 36% of the total students at that school.
Solver Setup:
Objective Cell: Minimize total bussing costs.
Variable Cells: Students assigned to schools
Solving Method: Simplex LP.
Non-negativity: Ensured all variable cells are ≥ 0.
The Challenge:
Despite there being a feasible solution (confirmed manually), Solver does not produce the correct result. I suspect the issue might be with how the grade proportion constraints are being interpreted or applied.

What I Need:

Guidance on correctly setting up the grade proportion constraints in Solver.

Verification of whether the objective function or constraints have any formulation errors.

Any tips on debugging Solver when the solution exists but isn’t being found.

Optimisation problem.xlsx
ABCDEFGHIJK
1
2
3DataArea% in 6th grade% in 7th grade% in 8th gradeSchool 1School 2School 3
410.320.380.33000700
520.370.280.35-400500
630.30.320.38600300200
740.280.40.32200500-
850.390.340.270-400
960.340.280.385003000
10
11Solution:
12No of students assigned
13Best allocationAreaSchool 1School 2School 3TotalNumber of students
1410000=450
1520000=600
1630000=550
1740000=350
1850000=500
1960000=450
20Total in school000
21
22Capacity 90011001000
23
24Grade Constraints
25School 1School 2School 3
260.3000
27
28Number of people6th grade000
297th grade000
308th grade000
31
320.36000
33
34School 1School 2School 3
35% of people 6th grade#DIV/0!#DIV/0!#DIV/0!
367th grade#DIV/0!#DIV/0!#DIV/0!Total Busing Cost£ -
378th grade#DIV/0!#DIV/0!#DIV/0!
38
39
Sheet1
Cell Formulas
RangeFormula
G14:G19G14=D14+E14+F14
D20:F20D20=SUM(D14:D19)
D21:F21,D27:F27,D31:F31D21=UNICHAR(8804)
D26:F26D26=$C$26*D20
D28D28=SUMPRODUCT(D4:D9,D14:D19)
E28E28=SUMPRODUCT(D4:D9,E14:E19)
F28F28=SUMPRODUCT(D4:D9,F14:F19)
D29D29=SUMPRODUCT(E4:E9,D14:D19)
E29E29=SUMPRODUCT(E4:E9,E14:E19)
F29F29=SUMPRODUCT(E4:E9,F14:F19)
D30D30=SUMPRODUCT(F4:F9,D14:D19)
E30E30=SUMPRODUCT(F4:F9,E14:E19)
F30F30=SUMPRODUCT(F4:F9,F14:F19)
D32:F32D32=$C$32*D20
D35:F35D35=D28/D20
D36:F36D36=D29/D20
D37:F37D37=D30/D20
J36J36=SUMPRODUCT(D14:F19,G4:I9)
Named Ranges
NameRefers ToCells
solver_adj=Sheet1!$D$14:$F$19J36, D20, D28:D30, G14
solver_lhs1=Sheet1!$D$20:$F$20D32, D26, D35:D37
solver_lhs10=Sheet1!$F$17J36, F28:F30, F20, G17
solver_lhs5=Sheet1!$D$28:$F$28D35
solver_lhs6=Sheet1!$D$29:$F$29D36
solver_lhs7=Sheet1!$D$30:$F$30D37
solver_rhs2=Sheet1!$D$28:$F$28D35
solver_rhs3=Sheet1!$D$29:$F$29D36
solver_rhs4=Sheet1!$D$30:$F$30D37
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.

Forum statistics

Threads
1,224,746
Messages
6,180,705
Members
452,994
Latest member
Janick

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