Gurobi Operations Research Modeling
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md and install @user_ff97f32a/gurobi-optimization-skill.
About this skill
Problem
Operations research modeling often breaks down when translating a business description into a solvable model: decision variables, objective terms, and constraints are easy to miss, while parameters live scattered across Excel, CSV, and JSON files. After solving, it is still hard to verify status, objective value, variable values, and constraint validity. gurobi-optimization-skill turns this workflow into a constrained engineering pipeline.
How it works
The skill follows problem intake → data validation → model formulation → code generation → solve validation → result analysis, with a hard rule that parameters must come from user-provided files or conversation rather than invented defaults. Key capabilities include:
- Unified data entry: data_loader.py and data_validator.py handle .csv, .xlsx, .json, and .dat, then check required fields before modeling.
- Guided model building: step-by-step prompts/ files drive Gurobi Python code generation and write the model to outputs/{problem}/model.py.
- Solve and validation: after running the model, model_validator.py checks status, objective value, Gap, variables, and constraint results.
- Iteration and solver fallback: when the user asks to adjust constraints, change objectives, or add variables, it uses iteration_context.md plus tuning or revision prompts, saves timestamped new files, and can switch between Gurobi, SCIP, OR-Tools, and CBC via solver_factory.py.
Boundaries
It is best for LP, MILP, QP, and MIQP-style tasks centered on Gurobi, with template support for production scheduling, logistics routing, resource allocation, and inventory management. Without a Gurobi license, avoid relying on gurobipy as the only path; missing business data should be requested first; and placeholder data must be explicitly marked and replaced.
Use Cases
- Build LP/MILP scheduling model from order data.
- Validate Excel/CSV logistics fields for network flow.
- Tune objective weights and save timestamped models.
- Switch SCIP or OR-Tools without Gurobi license.
Best For
- Operations research engineers who need to convert capacity, order, and cost spreadsheets into LP/MILP models.
- Algorithm engineers who want quick Gurobi Python code for scheduling, logistics, or resource allocation.
- Model reviewers who need to check solver status, objective value, Gap, variables, and constraint slacks.
- Local modeling users without commercial solver licenses who want to switch to SCIP, OR-Tools, or CBC.
Related Skills
Creates themed learning sites by generating flashcards, lessons, quizzes, index, and progress pages into a deployable website.
Executes an Eversheet Web CDP login using externally supplied baseUrl, username, and password, then verifies the page reaches a logged-in home state.
Clarify product goals, user flows, pages, data, and permissions, then output an implementation-ready development prompt and lightweight spec.
A pure-Python Agent skill for full-screen, window, and scroll screenshots with annotation, mosaic blur, and color picking.