Optimization Models & Web Applications
Four optimization models built during my data science internship in a 5-member team. The main one assigns 300 sprint tasks to 109 people; three smaller ones cover course selection, stock selection and facility location. All four run from one CLI, in Docker, and in a web demo that re-solves them live.

01 / Problem
Assigning 300 tasks to 109 people has far more possible plans than anyone can check, each plan must respect skills, workload limits and project boundaries, and the goals (nobody idle, good skill fit, even workload) pull against each other.
02 / How it works
- Load the talents, tasks and the skill levels each task needs.
- Score how well each person fits each task.
- Write the decision as rules (one person per task, a workload limit) and goals.
- The solver searches the valid plans and returns the best one.
- The web demo shows the plan; change an input and it solves again on the spot.
03 / Tech & why
- Gurobi (mixed-integer programming)
- Returns a provably optimal plan, or the best found within a time limit on the full dataset.
- Goal programming
- Each goal is solved alone first, then one plan is found that stays closest to all three best values, weighted by priority.
- OR-Tools CP-SAT
- Solves the binary warm-up problems: course selection and the burrito game.
- Python package + `optim` CLI + Docker
- Refactored from Colab notebooks so every model runs the same way locally or in a container; limits, solver settings and weights live in one YAML config.
- Gradio on Hugging Face Spaces
- Calls the same package, so results are solved live, not cached; CI runs tests and redeploys on every push to main.
04 / Results
- All four models solved to optimality on their sample data.
- One task plan that balances idle time, skill fit and workload, instead of three competing plans.
05 / Main model
Assigning Scrum tasks with goal programming
Every talent gets a skill-matching score for every task. The default, Competency Assessment, weights each competency by how much the task needs it and averages the level gap into a Mean Skill Gap; Weighted Euclidean Distance is an alternative. The model then gives each task to exactly one person, keeps each person on at most one project and within a story-point limit, and minimises idle talents, maximises total skill score and minimises the maximum workload.
- Full dataset
- 109 talents × 300 tasks, 5 projects
- Model type
- Mixed-integer program (MIP)
- Objectives
- Idle talents · skill score · max workload
- Default weights
- 0.03 · 0.90 · 0.07
- Workload limit
- 10 story points per talent (configurable)
06 / Warm-up models
Three smaller models, three techniques
Course selection · binary IP
Exactly 180 credits, at least 120 from computer science, at minimum cost; a weighted variant also penalises exam courses. Both reach a cost of 12,356. OR-Tools CP-SAT.
Stock selection · MIQCP
Maximise annualised return on USD 10,000 across seven stocks, with at least three stocks, a minimum share each and a 15% quadratic risk cap. Gurobi.
Burrito game · facility location
Gurobi's Burrito Optimization Game: place trucks so revenue from nearby buildings beats the daily truck cost. Three trucks serve all 14 buildings for a profit of 970. OR-Tools CP-SAT.



