Description
OR-Tools Ruby brings operations research tools to Ruby programs. It is a gem you add to a Gemfile, and it gives Ruby developers ready-made solvers for common planning problems. The gem covers higher-level helpers for scheduling staff shifts, seating charts from personal connections, and the traveling salesperson problem. Lower-level examples show linear and integer optimization, constraint programming with a CP-SAT solver, assignment problems, vehicle routing with capacity, time window and pickup-and-delivery constraints, bin packing, network flows and job shop scheduling. The README includes a code sample for each area. Installation takes a few minutes because the underlying OR-Tools library is downloaded and built during setup. The repository is public on GitHub, and the author invites issues for scheduling use cases that are not yet covered. It suits Ruby developers who need to optimize schedules, routes or resource allocation inside their own applications.…
Highlights
- Scheduling, seating and traveling salesperson helpers
- Linear, integer and constraint optimization
- Assignment and bin packing solvers
- Vehicle routing with time windows and capacity
- Network flow and job shop examples
Ratings & Reviews
No ratings yet
Be the first to rate Or Tools Ruby.
People also visit
PyJobShop
Solve production scheduling problems with constraint programming in Python
Or Tools Ruby FAQ
What is OR-Tools Ruby?
It is a Ruby gem that wraps OR-Tools so Ruby code can solve optimization, scheduling and routing problems.
How do I install it?
Add the gem to your Gemfile and run bundle install. The first install can take a few minutes while OR-Tools downloads and builds.
What kinds of problems can it solve?
The README covers staff scheduling, seating charts, the traveling salesperson problem, vehicle routing, knapsack and bin packing, assignment, and network flows.
Who is it for?
It is for Ruby developers who need to plan shifts, routes or allocations inside an app and want a tested solver instead of writing one.
Is it open source?
Yes. The code is in a public GitHub repository, and the author accepts issues and contributions there.
What are the best Or Tools Ruby alternatives?
Popular alternatives to Or Tools Ruby include OptimoRoute, Route4Me and ResourcePlanner. See all Or Tools Ruby alternatives






