How to Optimize Workshop Assignments Using Excel Solver
Question details
The user needs to assign participants to multiple workshop rounds based on their ranked preferences while strictly adhering to session capacity limits.

- Product
- Excel Solver
- Device & OS
- not provided
- Scenario
- Scheduling participants into two different workshop rounds based on ranked preferences without exceeding the maximum headcount per session.
- Observed behavior
- Generating an optimal schedule manually is difficult, and improperly configured Solver models yield infeasible results due to conflicting capacity or assignment constraints.
Ensure that the Solver add-in is enabled in your spreadsheet program via the Add-ins menu before setting up your decision variables and constraints.
Use Solver with Binary Decision Variables
Define binary decision variables and clear constraints to accurately match participants with workshops while maximizing total preference scores.
To prevent fractional assignments and conflicting schedules, the optimization model must be strictly structured. Utilizing binary variables ensures a participant is either completely assigned or not assigned to a specific round.
Create a matrix of binary variables (using 1 for assigned and 0 for not assigned) for each participant, categorized by workshop and round.
In the Solver parameters, add a constraint ensuring the sum of variables for a single participant in a given round equals exactly 1. This guarantees each person receives one workshop per round.
Add a constraint that restricts the sum of participants per workshop per round to the maximum limit (e.g., <= 25).
Create a cell that calculates the total preference score (multiplying assigned binary cells by the participant's preference weight) and set the Solver Objective to maximize this cell.
Select 'Simplex LP' as the solving method and click 'Solve' to generate the optimal assignment schedule.

Apply a Custom Assignment Script or Macro
Use a customized VBA script or macro to iterate through participants and assign them based on available first and second choices.
Solve Complex Assignment Models with WPS Spreadsheet
WPS Spreadsheet offers powerful, built-in data analysis tools, allowing you to easily handle complex scheduling, capacity models, and preference assignments without switching applications.
- 1. Open Your Data: Launch WPS Spreadsheet and open the document containing your participant preference data.
- 2. Access Data Tools: Navigate to the 'Data' tab on the top ribbon and locate the advanced data analysis tools.
- 3. Define Parameters: Set your objective cell to maximize preference scores, configure your decision variables to binary, and input your workshop capacity constraints.
- 4. Generate Results: Run the analysis tool to automatically calculate and populate the optimal participant assignments in your spreadsheet.

Frequently Asked Questions
Why does my Solver model return an 'infeasible' result?
An infeasible result usually means your constraints contradict each other or cannot mathematically be met. Double-check that capacity limits are applied strictly per round rather than universally, and ensure no single participant is forced into conflicting sessions simultaneously.
How do I mathematically represent preference rankings in my objective function?
You can assign a numerical weight to each preference (for example, 4 points for a 1st choice, 3 for a 2nd choice, etc.). Multiply these weights by the binary assignment variables, and configure the Solver to maximize the sum of these products.
What is the purpose of a binary decision variable in this scheduling model?
A binary variable restricts the cell value to either 1 (indicating the participant is assigned to that workshop) or 0 (indicating they are not). This prevents the model from generating fractional assignments, such as placing half a person into a session.




