Work

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.

Role
Data Scientist Intern
Fields
Data / Optimization
Stack
  • Python
  • Gurobi
  • OR-Tools
  • Gradio
  • Docker
  • Google Kubernetes Engine
Live demo: the task-assignment model solved, with results per objective and a box plot of skill scores

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

  1. Load the talents, tasks and the skill levels each task needs.
  2. Score how well each person fits each task.
  3. Write the decision as rules (one person per task, a workload limit) and goals.
  4. The solver searches the valid plans and returns the best one.
  5. 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.

Burrito game tab: a map of Burritoville with three placed trucks and the buildings they serve
Burrito game: three trucks serve all 14 buildings for a profit of 970.
Stock selection tab: allocation bar chart and a risk-versus-return scatter plot
Stock selection: the best split of USD 10,000 within a 15% risk limit.
Course selection tab: two tables listing the chosen courses with credits and cost
Course selection: the cheapest set of courses that still completes the degree.
Chart comparing goal programming with the three single-objective task-assignment models
Full dataset: goal programming compared with each goal optimised on its own.

Faris Zaidan Nafis

Loading portfolio