ortools

Solve combinatorial optimization problems with Google OR-Tools and CP-SAT.

19|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/tondevrel/scientific-agent-skills --skill ortools
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ortools
Source: https://github.com/tondevrel/scientific-agent-skills/tree/main/skills/ortools
Command: npx skills add https://github.com/tondevrel/scientific-agent-skills --skill ortools

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and scripts (resource) components.

What problem does it solve?

This Skill tackles challenging combinatorial optimization problems, providing efficient solutions for complex logistical, scheduling, and resource allocation tasks.

Core Features & Use Cases

  • Combinatorial Optimization: Solves problems like Vehicle Routing (VRP), scheduling, bin packing, and knapsack problems.
  • Linear & Integer Programming: Handles resource allocation with continuous and discrete variables.
  • Constraint Programming: Leverages the CP-SAT solver for complex logic-based optimization.
  • Use Case: Optimize delivery routes for a fleet of vehicles to minimize travel time and cost, or schedule employee shifts to meet demand while respecting labor laws and employee preferences.

Quick Start

Use the ortools skill to solve a vehicle routing problem with the provided distance matrix and number of vehicles.

Frequently Asked Questions about ortools

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I solve complex vehicle routing and scheduling problems?

To solve vehicle routing and scheduling problems, you must model variables, constraints, and objectives precisely. This process leverages combinatorial optimization to find optimal or feasible routes and schedules that minimize travel time, cost, and resource waste.

What is constraint programming and linear programming used for in operations research?

Constraint programming handles complex logic-based optimization, while linear and integer programming manage resource allocation with continuous and discrete variables. Both techniques efficiently solve challenging logistical, scheduling, and bin packing tasks within operations research.

Can I optimize delivery routes for a fleet of vehicles to minimize travel time?

Yes, you can optimize delivery routes for a fleet of vehicles to minimize travel time and cost. By defining a distance matrix and the number of vehicles, the solver calculates the most efficient allocation and sequence of stops for your fleet.

Does the CP-SAT solver work with integer programming for bin packing and knapsack problems?

Yes, the CP-SAT solver works with integer programming to solve bin packing and knapsack problems. It integrates constraint programming and integer variables to handle discrete resource allocation and complex logical conditions effectively.

What is the best way to model employee shift scheduling while respecting labor laws?

The best way to model employee shift scheduling while respecting labor laws is through constraint programming. You define continuous and discrete variables for shifts, add constraints for demand and labor rules, and set an objective to meet employee preferences.

What are the limitations of combinatorial optimization for complex logistical tasks?

A key limitation of combinatorial optimization for complex logistical tasks is the requirement for precise modeling. Without accurately defining variables, constraints, and objectives, the solver cannot find optimal or feasible solutions for your resource allocation problems.