optimaru 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- optimaru-0.1.0/LICENSE +202 -0
- optimaru-0.1.0/MANIFEST.in +13 -0
- optimaru-0.1.0/NOTICE +10 -0
- optimaru-0.1.0/PKG-INFO +99 -0
- optimaru-0.1.0/README.md +242 -0
- optimaru-0.1.0/include/optimaru/api/domain/solution_descriptor.hpp +108 -0
- optimaru-0.1.0/include/optimaru/api/domain/variable/variable_listener.hpp +46 -0
- optimaru-0.1.0/include/optimaru/api/score/analysis/score_analysis.hpp +39 -0
- optimaru-0.1.0/include/optimaru/api/score/buildin/hard_soft_score.hpp +49 -0
- optimaru-0.1.0/include/optimaru/api/score/calculator/chained_incremental_score_calculator.hpp +42 -0
- optimaru-0.1.0/include/optimaru/api/score/calculator/composite_incremental_score_calculator.hpp +99 -0
- optimaru-0.1.0/include/optimaru/api/score/calculator/constraint_assembly.hpp +288 -0
- optimaru-0.1.0/include/optimaru/api/score/calculator/decomposed_score_calculator.hpp +1438 -0
- optimaru-0.1.0/include/optimaru/api/score/calculator/incremental_score_calculator.hpp +120 -0
- optimaru-0.1.0/include/optimaru/api/score/director/score_director.hpp +170 -0
- optimaru-0.1.0/include/optimaru/api/solver/solution_manager.hpp +45 -0
- optimaru-0.1.0/include/optimaru/api/solver/solver.hpp +16 -0
- optimaru-0.1.0/include/optimaru/api/solver/solver_factory.hpp +33 -0
- optimaru-0.1.0/include/optimaru/api/solver/solver_manager.hpp +87 -0
- optimaru-0.1.0/include/optimaru/config/constructionheuristic/construction_heuristic_config.hpp +17 -0
- optimaru-0.1.0/include/optimaru/config/heuristic/selector/common/nearby/nearby_selection_config.hpp +22 -0
- optimaru-0.1.0/include/optimaru/config/heuristic/selector/move_selector_config.hpp +43 -0
- optimaru-0.1.0/include/optimaru/config/localsearch/decider/acceptor/local_search_acceptor_config.hpp +52 -0
- optimaru-0.1.0/include/optimaru/config/localsearch/local_search_config.hpp +243 -0
- optimaru-0.1.0/include/optimaru/config/solver/solver_config.hpp +37 -0
- optimaru-0.1.0/include/optimaru/config/solver/termination/termination_config.hpp +30 -0
- optimaru-0.1.0/include/optimaru/impl/constructionheuristic/default_construction_heuristic_phase.hpp +119 -0
- optimaru-0.1.0/include/optimaru/impl/domain/variable/chained_working_solution.hpp +139 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/common/nearby/nearby_neighborhoods.hpp +45 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/ruin/random_ruin.hpp +38 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/ruin/related_ruin.hpp +59 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/ruin/removal_gain.hpp +45 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/ruin/route_ruin.hpp +74 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/ruin/sisr_ruin.hpp +135 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/ruin/worst_ruin.hpp +53 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/ruin_recreate_selector.hpp +48 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/select/alpha_ucb.hpp +89 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/select/operator_selection_scheme.hpp +56 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/select/random_select.hpp +30 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/select/roulette_wheel.hpp +68 -0
- optimaru-0.1.0/include/optimaru/impl/heuristic/selector/move/generic/select/segmented_roulette_wheel.hpp +59 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/decider/acceptor/acceptor.hpp +41 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/decider/acceptor/greatdeluge/great_deluge_acceptor.hpp +35 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/decider/acceptor/hillclimbing/hill_climbing_acceptor.hpp +19 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/decider/acceptor/lateacceptance/late_acceptance_acceptor.hpp +34 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/decider/acceptor/recordtorecordtravel/record_to_record_travel_acceptor.hpp +98 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/decider/acceptor/simulatedannealing/simulated_annealing_acceptor.hpp +46 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/decider/acceptor/stepcountinghillclimbing/step_counting_hill_climbing_acceptor.hpp +38 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/decider/acceptor/tabu/entity_tabu_acceptor.hpp +47 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/default_local_search_phase.hpp +862 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/element_index.hpp +175 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/greedy_repair.hpp +405 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/list_move.hpp +171 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/preview_evaluation.hpp +45 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/solution_snapshot.hpp +174 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/strategy/descent.hpp +574 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/strategy/ejection_chain.hpp +371 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/strategy/iterated_local_search.hpp +423 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/strategy/route_elimination.hpp +129 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/strategy/ruin_recreate_move.hpp +104 -0
- optimaru-0.1.0/include/optimaru/impl/localsearch/termination_throttle.hpp +47 -0
- optimaru-0.1.0/include/optimaru/impl/solver/default_solver.hpp +202 -0
- optimaru-0.1.0/include/optimaru/impl/solver/termination/best_score.hpp +24 -0
- optimaru-0.1.0/include/optimaru/impl/solver/termination/solver_termination.hpp +104 -0
- optimaru-0.1.0/include/optimaru/impl/solver/termination/step_count.hpp +26 -0
- optimaru-0.1.0/include/optimaru/impl/solver/termination/termination.hpp +23 -0
- optimaru-0.1.0/include/optimaru/impl/solver/termination/termination_criterion.hpp +36 -0
- optimaru-0.1.0/include/optimaru/impl/solver/termination/time_millis_spent.hpp +26 -0
- optimaru-0.1.0/include/optimaru/impl/solver/termination/unimproved_step_count.hpp +26 -0
- optimaru-0.1.0/include/optimaru/impl/solver/termination/unimproved_time_millis_spent.hpp +26 -0
- optimaru-0.1.0/include/optimaru/optimaru.hpp +24 -0
- optimaru-0.1.0/include/optimaru/preview/api/move/operators.hpp +91 -0
- optimaru-0.1.0/include/optimaru/python/constraint_binding.hpp +174 -0
- optimaru-0.1.0/include/optimaru/testing/preview_parity.hpp +196 -0
- optimaru-0.1.0/optimaru.egg-info/PKG-INFO +99 -0
- optimaru-0.1.0/optimaru.egg-info/SOURCES.txt +561 -0
- optimaru-0.1.0/optimaru.egg-info/dependency_links.txt +1 -0
- optimaru-0.1.0/optimaru.egg-info/requires.txt +1 -0
- optimaru-0.1.0/optimaru.egg-info/top_level.txt +1 -0
- optimaru-0.1.0/pyproject.toml +57 -0
- optimaru-0.1.0/python/README.md +71 -0
- optimaru-0.1.0/python/optimaru/__init__.py +60 -0
- optimaru-0.1.0/python/optimaru/py.typed +0 -0
- optimaru-0.1.0/setup.cfg +4 -0
- optimaru-0.1.0/setup.py +124 -0
- optimaru-0.1.0/use-cases/assembly-line-balancing/python/assembly_line_balancing/__init__.py +112 -0
- optimaru-0.1.0/use-cases/assembly-line-balancing/python/assembly_line_balancing/_core.py +3 -0
- optimaru-0.1.0/use-cases/assembly-line-balancing/python/assembly_line_balancing/common.py +125 -0
- optimaru-0.1.0/use-cases/assembly-line-balancing/python/assembly_line_balancing/constraints.py +108 -0
- optimaru-0.1.0/use-cases/assembly-line-balancing/python/assembly_line_balancing/models.py +86 -0
- optimaru-0.1.0/use-cases/assembly-line-balancing/python/assembly_line_balancing/py.typed +0 -0
- optimaru-0.1.0/use-cases/assembly-line-balancing/python/setup.py +3 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/assign_every_patient_to_a_bed.hpp +45 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/common.hpp +172 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/department_maximum_age.hpp +31 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/department_minimum_age.hpp +31 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/department_specialty.hpp +29 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/department_specialty_not_first_priority.hpp +36 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/different_gender_in_same_gender_room_in_same_night.hpp +112 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/female_in_male_room.hpp +33 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/male_in_female_room.hpp +33 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/preferred_maximum_room_capacity.hpp +35 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/preferred_patient_equipment.hpp +35 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/required_patient_equipment.hpp +41 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints/same_bed_in_same_night.hpp +59 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/constraints.hpp +75 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/domain.hpp +250 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/incremental_calculator.hpp +87 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/score_calculator.hpp +109 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/include/ba/solver.hpp +122 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/src/incremental_calculator.cpp +212 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/src/main.cpp +272 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/src/score_calculator.cpp +220 -0
- optimaru-0.1.0/use-cases/bed-allocation/cpp/src/solver.cpp +207 -0
- optimaru-0.1.0/use-cases/bed-allocation/python/bed_allocation/__init__.py +148 -0
- optimaru-0.1.0/use-cases/bed-allocation/python/bed_allocation/_core.pyi +226 -0
- optimaru-0.1.0/use-cases/bed-allocation/python/bed_allocation/constraints.py +284 -0
- optimaru-0.1.0/use-cases/bed-allocation/python/bed_allocation/demo.py +140 -0
- optimaru-0.1.0/use-cases/bed-allocation/python/bed_allocation/models.py +240 -0
- optimaru-0.1.0/use-cases/bed-allocation/python/bed_allocation/py.typed +0 -0
- optimaru-0.1.0/use-cases/bed-allocation/python/bindings.cpp +418 -0
- optimaru-0.1.0/use-cases/bed-allocation/python/setup.py +44 -0
- optimaru-0.1.0/use-cases/bin-packing/python/bin_packing/__init__.py +44 -0
- optimaru-0.1.0/use-cases/bin-packing/python/bin_packing/_core.py +254 -0
- optimaru-0.1.0/use-cases/bin-packing/python/bin_packing/constraints.py +110 -0
- optimaru-0.1.0/use-cases/bin-packing/python/bin_packing/models.py +79 -0
- optimaru-0.1.0/use-cases/bin-packing/python/setup.py +3 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/audience_level_diversity.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/audience_type_diversity.hpp +27 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/audience_type_theme_track_conflict.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/common.hpp +162 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/consecutive_talks_pause.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/content_audience_level_flow_violation.hpp +27 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/content_conflict.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/crowd_control.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/language_diversity.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/popular_talks.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/room_conflict.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/room_unavailable_timeslot.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/same_day_talks.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/sector_conflict.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_conflict.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_makespan.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_preferred_room_tags.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_preferred_timeslot_tags.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_prohibited_room_tags.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_prohibited_timeslot_tags.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_required_room_tags.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_required_timeslot_tags.hpp +27 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_unavailable_timeslot.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_undesired_room_tags.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/speaker_undesired_timeslot_tags.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_mutually_exclusive_talks_tags.hpp +27 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_preferred_room_tags.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_preferred_timeslot_tags.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_prerequisite_talks.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_prohibited_room_tags.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_prohibited_timeslot_tags.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_required_room_tags.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_required_timeslot_tags.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_type_compatibility.hpp +29 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_undesired_room_tags.hpp +25 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/talk_undesired_timeslot_tags.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/theme_track_conflict.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints/theme_track_room_stability.hpp +26 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/constraints.hpp +128 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/domain.hpp +244 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/incremental_calculator.hpp +183 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/score_calculator.hpp +252 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/include/cs/solver.hpp +156 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/src/incremental_calculator.cpp +701 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/src/main.cpp +301 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/src/score_calculator.cpp +481 -0
- optimaru-0.1.0/use-cases/conference-scheduling/cpp/src/solver.cpp +314 -0
- optimaru-0.1.0/use-cases/conference-scheduling/python/bindings.cpp +609 -0
- optimaru-0.1.0/use-cases/conference-scheduling/python/conference_scheduling/__init__.py +100 -0
- optimaru-0.1.0/use-cases/conference-scheduling/python/conference_scheduling/_core.pyi +287 -0
- optimaru-0.1.0/use-cases/conference-scheduling/python/conference_scheduling/constraints.py +530 -0
- optimaru-0.1.0/use-cases/conference-scheduling/python/conference_scheduling/demo.py +143 -0
- optimaru-0.1.0/use-cases/conference-scheduling/python/conference_scheduling/models.py +286 -0
- optimaru-0.1.0/use-cases/conference-scheduling/python/conference_scheduling/py.typed +0 -0
- optimaru-0.1.0/use-cases/conference-scheduling/python/setup.py +44 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/include/fl/constraints/common.hpp +84 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/include/fl/constraints/distance_from_facility.hpp +47 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/include/fl/constraints/facility_capacity.hpp +44 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/include/fl/constraints/facility_setup_cost.hpp +38 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/include/fl/constraints.hpp +82 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/include/fl/domain.hpp +221 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/include/fl/incremental_calculator.hpp +75 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/include/fl/score_calculator.hpp +41 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/include/fl/solver.hpp +153 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/src/incremental_calculator.cpp +98 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/src/main.cpp +155 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/src/score_calculator.cpp +77 -0
- optimaru-0.1.0/use-cases/facility-location/cpp/src/solver.cpp +440 -0
- optimaru-0.1.0/use-cases/facility-location/python/bindings.cpp +362 -0
- optimaru-0.1.0/use-cases/facility-location/python/facility_location/__init__.py +92 -0
- optimaru-0.1.0/use-cases/facility-location/python/facility_location/_core.pyi +162 -0
- optimaru-0.1.0/use-cases/facility-location/python/facility_location/constraints.py +168 -0
- optimaru-0.1.0/use-cases/facility-location/python/facility_location/models.py +128 -0
- optimaru-0.1.0/use-cases/facility-location/python/facility_location/py.typed +0 -0
- optimaru-0.1.0/use-cases/facility-location/python/setup.py +44 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/constraints/common.hpp +158 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/constraints/employee_unavailability.hpp +31 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/constraints/first_assignment_not_departing_from_home.hpp +29 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/constraints/flight_conflict.hpp +46 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/constraints/last_assignment_not_arriving_at_home.hpp +28 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/constraints/required_skill.hpp +30 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/constraints/transfer_between_two_flights.hpp +32 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/constraints.hpp +63 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/domain.hpp +221 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/incremental_calculator.hpp +68 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/score_calculator.hpp +95 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/include/fcs/solver.hpp +102 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/src/incremental_calculator.cpp +134 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/src/main.cpp +328 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/src/score_calculator.cpp +259 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/cpp/src/solver.cpp +132 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/python/bindings.cpp +366 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/python/flight_crew/__init__.py +131 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/python/flight_crew/_core.pyi +177 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/python/flight_crew/constraints.py +219 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/python/flight_crew/models.py +293 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/python/flight_crew/py.typed +0 -0
- optimaru-0.1.0/use-cases/flight-crew-scheduling/python/setup.py +44 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/constraints/common.hpp +150 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/constraints/ideal_end_date_time.hpp +52 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/constraints/max_end_date_time.hpp +47 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/constraints/maximize_jobs_assigned.hpp +79 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/constraints/minimize_makespan.hpp +44 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/constraints/operator_cleaning_conflict.hpp +108 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/constraints.hpp +61 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/demo_data.hpp +22 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/domain.hpp +305 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/incremental_calculator.hpp +89 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/score_calculator.hpp +80 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/include/fp/solver.hpp +173 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/src/demo_data.cpp +258 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/src/incremental_calculator.cpp +200 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/src/main.cpp +112 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/src/score_calculator.cpp +235 -0
- optimaru-0.1.0/use-cases/food-packaging/cpp/src/solver.cpp +409 -0
- optimaru-0.1.0/use-cases/food-packaging/python/bindings.cpp +446 -0
- optimaru-0.1.0/use-cases/food-packaging/python/food_packaging/__init__.py +126 -0
- optimaru-0.1.0/use-cases/food-packaging/python/food_packaging/_core.pyi +160 -0
- optimaru-0.1.0/use-cases/food-packaging/python/food_packaging/constraints.py +219 -0
- optimaru-0.1.0/use-cases/food-packaging/python/food_packaging/models.py +248 -0
- optimaru-0.1.0/use-cases/food-packaging/python/food_packaging/py.typed +0 -0
- optimaru-0.1.0/use-cases/food-packaging/python/setup.py +45 -0
- optimaru-0.1.0/use-cases/knapsack/python/knapsack/__init__.py +80 -0
- optimaru-0.1.0/use-cases/knapsack/python/knapsack/_core.py +3 -0
- optimaru-0.1.0/use-cases/knapsack/python/knapsack/common.py +125 -0
- optimaru-0.1.0/use-cases/knapsack/python/knapsack/constraints.py +78 -0
- optimaru-0.1.0/use-cases/knapsack/python/knapsack/models.py +75 -0
- optimaru-0.1.0/use-cases/knapsack/python/knapsack/py.typed +0 -0
- optimaru-0.1.0/use-cases/knapsack/python/setup.py +3 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/constraints/after_ideal_end_date.hpp +36 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/constraints/before_ideal_end_date.hpp +35 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/constraints/common.hpp +241 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/constraints/crew_conflict.hpp +36 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/constraints/max_end_date.hpp +34 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/constraints/min_start_date.hpp +34 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/constraints/tag_conflict.hpp +37 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/constraints.hpp +63 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/demo_data.hpp +39 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/domain.hpp +192 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/incremental_calculator.hpp +137 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/score_calculator.hpp +52 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/include/mnt/solver.hpp +144 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/src/demo_data.cpp +194 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/src/incremental_calculator.cpp +151 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/src/main.cpp +130 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/src/score_calculator.cpp +155 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/cpp/src/solver.cpp +370 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/python/bindings.cpp +454 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/python/maintenance_scheduling/__init__.py +100 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/python/maintenance_scheduling/_core.pyi +185 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/python/maintenance_scheduling/constraints.py +217 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/python/maintenance_scheduling/models.py +166 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/python/maintenance_scheduling/py.typed +0 -0
- optimaru-0.1.0/use-cases/maintenance-scheduling/python/setup.py +45 -0
- optimaru-0.1.0/use-cases/max-cut/python/max_cut/__init__.py +84 -0
- optimaru-0.1.0/use-cases/max-cut/python/max_cut/_core.py +3 -0
- optimaru-0.1.0/use-cases/max-cut/python/max_cut/common.py +125 -0
- optimaru-0.1.0/use-cases/max-cut/python/max_cut/constraints.py +68 -0
- optimaru-0.1.0/use-cases/max-cut/python/max_cut/models.py +64 -0
- optimaru-0.1.0/use-cases/max-cut/python/max_cut/py.typed +0 -0
- optimaru-0.1.0/use-cases/max-cut/python/setup.py +3 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/assign_larger_rooms_first.hpp +32 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/avoid_overtime.hpp +35 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/common.hpp +286 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/do_meetings_as_soon_as_possible.hpp +33 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/one_break_between_consecutive_meetings.hpp +52 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/overlapping_meetings.hpp +48 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/preferred_attendance_conflict.hpp +61 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/required_and_preferred_attendance_conflict.hpp +64 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/required_attendance_conflict.hpp +64 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/required_room_capacity.hpp +32 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/room_conflict.hpp +48 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/room_stability.hpp +72 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints/start_and_end_on_same_day.hpp +38 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/constraints.hpp +76 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/demo_data.hpp +292 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/domain.hpp +249 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/incremental_calculator.hpp +117 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/score_calculator.hpp +141 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/include/ms/solver.hpp +152 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/src/incremental_calculator.cpp +357 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/src/main.cpp +160 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/src/score_calculator.cpp +357 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/cpp/src/solver.cpp +200 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/python/bindings.cpp +440 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/python/meeting_scheduling/__init__.py +120 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/python/meeting_scheduling/_core.pyi +253 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/python/meeting_scheduling/constraints.py +300 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/python/meeting_scheduling/models.py +178 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/python/meeting_scheduling/py.typed +0 -0
- optimaru-0.1.0/use-cases/meeting-scheduling/python/setup.py +44 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/constraints/common.hpp +67 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/constraints/minimize_distance_from_last_pick_task_to_path_origin.hpp +34 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/constraints/minimize_distance_from_previous_pick_task.hpp +39 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/constraints/minimize_order_split_by_trolley.hpp +55 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/constraints/required_number_of_buckets.hpp +58 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/constraints.hpp +58 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/demo_data.hpp +33 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/domain.hpp +313 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/incremental_calculator.hpp +106 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/score_calculator.hpp +91 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/include/op/solver.hpp +140 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/src/demo_data.cpp +297 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/src/incremental_calculator.cpp +121 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/src/main.cpp +88 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/src/score_calculator.cpp +119 -0
- optimaru-0.1.0/use-cases/order-picking/cpp/src/solver.cpp +666 -0
- optimaru-0.1.0/use-cases/order-picking/python/bindings.cpp +424 -0
- optimaru-0.1.0/use-cases/order-picking/python/order_picking/__init__.py +110 -0
- optimaru-0.1.0/use-cases/order-picking/python/order_picking/_core.pyi +196 -0
- optimaru-0.1.0/use-cases/order-picking/python/order_picking/constraints.py +197 -0
- optimaru-0.1.0/use-cases/order-picking/python/order_picking/models.py +225 -0
- optimaru-0.1.0/use-cases/order-picking/python/order_picking/py.typed +0 -0
- optimaru-0.1.0/use-cases/order-picking/python/setup.py +41 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/common.hpp +266 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/load_utilization.hpp +33 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/minimize_travel_time.hpp +32 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/paired_request.hpp +32 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/pickup_before_dropoff.hpp +35 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/route_costs.hpp +45 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/route_geometry.hpp +138 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/route_limits.hpp +63 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/same_vehicle.hpp +37 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/service_finished_after_max_end_time.hpp +45 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/unassigned_requests.hpp +45 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints/vehicle_capacity.hpp +44 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/constraints.hpp +78 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/demo_data.hpp +28 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/domain.hpp +292 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/haversine.hpp +30 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/incremental_calculator.hpp +112 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/score_calculator.hpp +54 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/include/pdp/solver.hpp +166 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/src/demo_data.cpp +85 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/src/haversine.cpp +81 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/src/incremental_calculator.cpp +247 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/src/main.cpp +72 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/src/score_calculator.cpp +154 -0
- optimaru-0.1.0/use-cases/pickup-delivery/cpp/src/solver.cpp +946 -0
- optimaru-0.1.0/use-cases/pickup-delivery/python/bindings.cpp +491 -0
- optimaru-0.1.0/use-cases/pickup-delivery/python/pdp_routing/__init__.py +61 -0
- optimaru-0.1.0/use-cases/pickup-delivery/python/pdp_routing/_core.pyi +271 -0
- optimaru-0.1.0/use-cases/pickup-delivery/python/pdp_routing/constraints.py +427 -0
- optimaru-0.1.0/use-cases/pickup-delivery/python/pdp_routing/models.py +348 -0
- optimaru-0.1.0/use-cases/pickup-delivery/python/pdp_routing/py.typed +0 -0
- optimaru-0.1.0/use-cases/pickup-delivery/python/setup.py +37 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/include/pjs/constraints/common.hpp +176 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/include/pjs/constraints/non_renewable_resource_capacity.hpp +56 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/include/pjs/constraints/renewable_resource_capacity.hpp +64 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/include/pjs/constraints/total_makespan.hpp +39 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/include/pjs/constraints/total_project_delay.hpp +45 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/include/pjs/constraints.hpp +59 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/include/pjs/domain.hpp +318 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/include/pjs/incremental_calculator.hpp +105 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/include/pjs/score_calculator.hpp +71 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/include/pjs/solver.hpp +118 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/src/incremental_calculator.cpp +269 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/src/main.cpp +266 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/src/score_calculator.cpp +205 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/cpp/src/solver.cpp +236 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/python/bindings.cpp +444 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/python/project_job/__init__.py +163 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/python/project_job/_core.pyi +226 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/python/project_job/constraints.py +201 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/python/project_job/demo.py +117 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/python/project_job/models.py +331 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/python/project_job/py.typed +0 -0
- optimaru-0.1.0/use-cases/project-job-scheduling/python/setup.py +44 -0
- optimaru-0.1.0/use-cases/quadratic-assignment/python/quadratic_assignment/__init__.py +85 -0
- optimaru-0.1.0/use-cases/quadratic-assignment/python/quadratic_assignment/_core.py +3 -0
- optimaru-0.1.0/use-cases/quadratic-assignment/python/quadratic_assignment/common.py +125 -0
- optimaru-0.1.0/use-cases/quadratic-assignment/python/quadratic_assignment/constraints.py +57 -0
- optimaru-0.1.0/use-cases/quadratic-assignment/python/quadratic_assignment/models.py +61 -0
- optimaru-0.1.0/use-cases/quadratic-assignment/python/quadratic_assignment/py.typed +0 -0
- optimaru-0.1.0/use-cases/quadratic-assignment/python/setup.py +3 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/bit_ops.hpp +57 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/canonical_constraints.hpp +111 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/canonical_domain.hpp +212 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/canonical_incremental_calculator.hpp +202 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/canonical_score_calculator.hpp +155 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/canonical_solver.hpp +180 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/class_gap.hpp +77 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/common.hpp +164 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/global/block_adjacency.hpp +85 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/global/course_daily_limit.hpp +74 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/global/global_constraint.hpp +33 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/global/unassigned_lesson.hpp +48 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/slot/avoided_period.hpp +61 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/slot/class_conflict.hpp +56 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/slot/non_preferred_period.hpp +64 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/slot/room_capacity.hpp +67 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/slot/slot_constraint.hpp +33 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/slot/slot_delta_group.hpp +336 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/slot/slot_not_allowed.hpp +46 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/slot/teacher_conflict.hpp +56 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/teacher/teacher_consecutive_limit.hpp +27 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/teacher/teacher_free_day.hpp +26 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/teacher/teacher_gap.hpp +27 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/teacher/teacher_load_limit.hpp +28 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/teacher/teacher_mask_hub.hpp +246 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/constraints/teacher/teacher_workday.hpp +26 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/domain.hpp +152 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/incremental_calculator.hpp +89 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/moves/hot_source.hpp +72 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/moves/reassign.hpp +194 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/moves/smart_class_swap.hpp +213 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/moves/unassign.hpp +108 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/score_calculator.hpp +66 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/include/st/solver.hpp +147 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/src/canonical_incremental_calculator.cpp +534 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/src/canonical_score_calculator.cpp +312 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/src/canonical_solver.cpp +342 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/src/incremental_calculator.cpp +171 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/src/main.cpp +279 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/src/score_calculator.cpp +193 -0
- optimaru-0.1.0/use-cases/school-timetabling/cpp/src/solver.cpp +118 -0
- optimaru-0.1.0/use-cases/school-timetabling/python/bindings.cpp +781 -0
- optimaru-0.1.0/use-cases/school-timetabling/python/setup.py +47 -0
- optimaru-0.1.0/use-cases/school-timetabling/python/st_timetabling/__init__.py +279 -0
- optimaru-0.1.0/use-cases/school-timetabling/python/st_timetabling/_core.pyi +494 -0
- optimaru-0.1.0/use-cases/school-timetabling/python/st_timetabling/constraints.py +396 -0
- optimaru-0.1.0/use-cases/school-timetabling/python/st_timetabling/convert.py +447 -0
- optimaru-0.1.0/use-cases/school-timetabling/python/st_timetabling/models.py +231 -0
- optimaru-0.1.0/use-cases/school-timetabling/python/st_timetabling/py.typed +0 -0
- optimaru-0.1.0/use-cases/school-timetabling/python/st_timetabling/quickstart.py +338 -0
- optimaru-0.1.0/use-cases/semiconductor-scheduling/python/semiconductor_scheduling/__init__.py +473 -0
- optimaru-0.1.0/use-cases/semiconductor-scheduling/python/semiconductor_scheduling/_core.py +3 -0
- optimaru-0.1.0/use-cases/semiconductor-scheduling/python/semiconductor_scheduling/common.py +125 -0
- optimaru-0.1.0/use-cases/semiconductor-scheduling/python/semiconductor_scheduling/constraints.py +205 -0
- optimaru-0.1.0/use-cases/semiconductor-scheduling/python/semiconductor_scheduling/models.py +213 -0
- optimaru-0.1.0/use-cases/semiconductor-scheduling/python/semiconductor_scheduling/py.typed +0 -0
- optimaru-0.1.0/use-cases/semiconductor-scheduling/python/setup.py +3 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/away_to_away_hop.hpp +46 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/away_to_end_hop.hpp +34 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/away_to_home_hop.hpp +49 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/classic_matches.hpp +32 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/common.hpp +306 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/consecutive_away_matches.hpp +23 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/consecutive_home_matches.hpp +24 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/home_to_away_hop.hpp +48 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/matches_on_same_day.hpp +44 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/repeat_match_on_next_day.hpp +135 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints/start_to_away_hop.hpp +33 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/constraints.hpp +72 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/domain.hpp +145 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/incremental_calculator.hpp +111 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/score_calculator.hpp +108 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/include/sls/solver.hpp +128 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/src/incremental_calculator.cpp +409 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/src/main.cpp +333 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/src/score_calculator.cpp +229 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/cpp/src/solver.cpp +214 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/python/bindings.cpp +337 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/python/setup.py +44 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/python/sports_league/__init__.py +103 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/python/sports_league/_core.pyi +203 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/python/sports_league/constraints.py +264 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/python/sports_league/demo.py +115 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/python/sports_league/models.py +176 -0
- optimaru-0.1.0/use-cases/sports-league-scheduling/python/sports_league/py.typed +0 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/constraints/common.hpp +152 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/constraints/critical_priority_task_end_time.hpp +24 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/constraints/major_priority_task_end_time.hpp +24 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/constraints/minimize_makespan.hpp +37 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/constraints/minimize_unassigned_tasks.hpp +57 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/constraints/minor_priority_task_end_time.hpp +24 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/constraints/no_missing_skills.hpp +34 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/constraints.hpp +63 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/demo_data.hpp +159 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/domain.hpp +341 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/incremental_calculator.hpp +71 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/score_calculator.hpp +42 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/include/ta/solver.hpp +114 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/src/incremental_calculator.cpp +103 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/src/main.cpp +91 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/src/score_calculator.cpp +82 -0
- optimaru-0.1.0/use-cases/task-assigning/cpp/src/solver.cpp +132 -0
- optimaru-0.1.0/use-cases/task-assigning/python/bindings.cpp +448 -0
- optimaru-0.1.0/use-cases/task-assigning/python/setup.py +44 -0
- optimaru-0.1.0/use-cases/task-assigning/python/task_assigning/__init__.py +162 -0
- optimaru-0.1.0/use-cases/task-assigning/python/task_assigning/_core.pyi +197 -0
- optimaru-0.1.0/use-cases/task-assigning/python/task_assigning/constraints.py +226 -0
- optimaru-0.1.0/use-cases/task-assigning/python/task_assigning/demo.py +120 -0
- optimaru-0.1.0/use-cases/task-assigning/python/task_assigning/models.py +221 -0
- optimaru-0.1.0/use-cases/task-assigning/python/task_assigning/py.typed +0 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/include/ts/constraints/common.hpp +105 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/include/ts/constraints/evenly_confrontation_count.hpp +121 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/include/ts/constraints/fair_assignment_count_per_team.hpp +82 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/include/ts/constraints/one_assignment_per_date_per_team.hpp +61 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/include/ts/constraints/unavailability_penalty.hpp +74 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/include/ts/constraints.hpp +61 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/include/ts/domain.hpp +137 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/include/ts/incremental_calculator.hpp +106 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/include/ts/score_calculator.hpp +69 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/include/ts/solver.hpp +136 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/src/incremental_calculator.cpp +162 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/src/main.cpp +267 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/src/score_calculator.cpp +158 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/cpp/src/solver.cpp +705 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/python/bindings.cpp +337 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/python/setup.py +44 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/python/tournament_scheduling/__init__.py +109 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/python/tournament_scheduling/_core.pyi +163 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/python/tournament_scheduling/constraints.py +201 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/python/tournament_scheduling/models.py +169 -0
- optimaru-0.1.0/use-cases/tournament-scheduling/python/tournament_scheduling/py.typed +0 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints/common.hpp +154 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints/load_utilization.hpp +18 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints/maximize_visits_assigned.hpp +96 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints/minimize_travel_time.hpp +43 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints/route_costs.hpp +31 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints/route_geometry.hpp +148 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints/route_limits.hpp +46 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints/route_sums.hpp +281 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints/service_finished_after_max_end_time.hpp +59 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints/vehicle_capacity.hpp +39 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/constraints.hpp +70 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/demo_data.hpp +32 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/domain.hpp +327 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/haversine.hpp +30 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/incremental_calculator.hpp +215 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/score_calculator.hpp +32 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/include/vrp/solver.hpp +263 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/src/demo_data.cpp +70 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/src/haversine.cpp +72 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/src/incremental_calculator.cpp +586 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/src/main.cpp +69 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/src/score_calculator.cpp +103 -0
- optimaru-0.1.0/use-cases/vehicle-routing/cpp/src/solver.cpp +301 -0
- optimaru-0.1.0/use-cases/vehicle-routing/python/bindings.cpp +483 -0
- optimaru-0.1.0/use-cases/vehicle-routing/python/setup.py +38 -0
- optimaru-0.1.0/use-cases/vehicle-routing/python/vrp_routing/__init__.py +61 -0
- optimaru-0.1.0/use-cases/vehicle-routing/python/vrp_routing/_core.pyi +251 -0
- optimaru-0.1.0/use-cases/vehicle-routing/python/vrp_routing/constraints.py +396 -0
- optimaru-0.1.0/use-cases/vehicle-routing/python/vrp_routing/models.py +321 -0
- optimaru-0.1.0/use-cases/vehicle-routing/python/vrp_routing/py.typed +0 -0
optimaru-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# sdist for the `optimaru` Python distribution: the engine headers and, per use
|
|
2
|
+
# case, the C++ sources its extension compiles plus the Python package.
|
|
3
|
+
include LICENSE NOTICE pyproject.toml setup.py python/README.md
|
|
4
|
+
recursive-include python/optimaru *.py
|
|
5
|
+
recursive-include include *.hpp *.h
|
|
6
|
+
recursive-include use-cases/*/cpp/include *.hpp *.h
|
|
7
|
+
recursive-include use-cases/*/cpp/src *.cpp *.hpp *.h
|
|
8
|
+
include use-cases/*/python/setup.py use-cases/*/python/bindings.cpp
|
|
9
|
+
recursive-include use-cases/*/python *.py *.pyi py.typed
|
|
10
|
+
prune use-cases/*/python/tests
|
|
11
|
+
prune use-cases/*/python/build
|
|
12
|
+
prune use-cases/*/python/.venv
|
|
13
|
+
global-exclude *.so *.pyd __pycache__ *.pyc
|
optimaru-0.1.0/NOTICE
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
optimaru
|
|
2
|
+
Copyright 2026 The optimaru Authors
|
|
3
|
+
|
|
4
|
+
This product's architecture, directory layout, class names and API are
|
|
5
|
+
modelled on Timefold Solver (https://github.com/TimefoldAI/timefold-solver),
|
|
6
|
+
which is licensed under the Apache License, Version 2.0.
|
|
7
|
+
Copyright Timefold BV and contributors.
|
|
8
|
+
|
|
9
|
+
optimaru is an independent C++ implementation and is not affiliated with or
|
|
10
|
+
endorsed by Timefold BV. "Timefold" is a trademark of Timefold BV.
|
optimaru-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: optimaru
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Metaheuristic optimization engine for routing, scheduling, timetabling and allocation — 21 ready-to-use models.
|
|
5
|
+
Author: optimaru
|
|
6
|
+
License-Expression: Apache-2.0
|
|
7
|
+
Project-URL: Homepage, https://optimaru.com
|
|
8
|
+
Project-URL: Source, https://github.com/optimaru/optimaru
|
|
9
|
+
Project-URL: Issues, https://github.com/optimaru/optimaru/issues
|
|
10
|
+
Keywords: optimization,combinatorial-optimization,metaheuristics,scheduling,vehicle-routing,timetabling,operations-research,solver
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Intended Audience :: Science/Research
|
|
14
|
+
Classifier: Operating System :: MacOS
|
|
15
|
+
Classifier: Operating System :: Microsoft :: Windows
|
|
16
|
+
Classifier: Operating System :: POSIX :: Linux
|
|
17
|
+
Classifier: Programming Language :: C++
|
|
18
|
+
Classifier: Programming Language :: Python :: 3
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
20
|
+
Classifier: Topic :: Scientific/Engineering :: Mathematics
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
Requires-Python: >=3.14
|
|
23
|
+
Description-Content-Type: text/markdown
|
|
24
|
+
License-File: LICENSE
|
|
25
|
+
License-File: NOTICE
|
|
26
|
+
Requires-Dist: pydantic>=2.5
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
# optimaru
|
|
30
|
+
|
|
31
|
+
A metaheuristic optimization engine for real-world routing, scheduling,
|
|
32
|
+
timetabling and allocation problems — with 21 ready-to-use models.
|
|
33
|
+
|
|
34
|
+
The solver core is C++17 and ships compiled in the wheel; you use it from
|
|
35
|
+
Python. Every business rule and preference is a constraint *plugin*: switch it
|
|
36
|
+
on or off, change its weight, or make it hard or soft — without touching the
|
|
37
|
+
solver.
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
pip install optimaru
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Requires Python 3.14+. Wheels are published for Linux, macOS and Windows.
|
|
44
|
+
|
|
45
|
+
## Example: vehicle routing
|
|
46
|
+
|
|
47
|
+
```python
|
|
48
|
+
from optimaru import vehicle_routing as vrp
|
|
49
|
+
from optimaru.vehicle_routing.constraints import (
|
|
50
|
+
MinimizeTravelTime, get_constraints, maximize_visits_assigned, vehicle_capacity,
|
|
51
|
+
)
|
|
52
|
+
|
|
53
|
+
locations = [vrp.Location(37.5665, 126.9780)] # 0: depot
|
|
54
|
+
visits = []
|
|
55
|
+
for i, (lat, lon) in enumerate([(37.5700, 126.9820), (37.5512, 126.9882), (37.5133, 127.1001)]):
|
|
56
|
+
locations.append(vrp.Location(lat, lon))
|
|
57
|
+
# id name location demand ready due service (s)
|
|
58
|
+
visits.append(vrp.Visit(f"C{i}", f"Customer {i}", i + 1, 2, 8 * 3600, 20 * 3600, 600))
|
|
59
|
+
|
|
60
|
+
vehicles = [vrp.Vehicle("V1", 6, 0, departure_time=7 * 3600)]
|
|
61
|
+
plan = vrp.VehicleRoutePlan("demo", locations, vehicles, visits)
|
|
62
|
+
|
|
63
|
+
config = vrp.SolverConfig()
|
|
64
|
+
config.spent_limit_seconds = 2
|
|
65
|
+
solver = vrp.Solver(config)
|
|
66
|
+
|
|
67
|
+
solver.solve(plan) # default constraints
|
|
68
|
+
print(plan.score, plan.routes())
|
|
69
|
+
|
|
70
|
+
# Pick constraints and reweight them — the solver itself does not change.
|
|
71
|
+
# Only the listed constraints are scored: leave out maximize_visits_assigned and
|
|
72
|
+
# skipping every visit becomes free.
|
|
73
|
+
solver.solve_with_constraints(plan, get_constraints([
|
|
74
|
+
vehicle_capacity,
|
|
75
|
+
maximize_visits_assigned,
|
|
76
|
+
MinimizeTravelTime(weight=10),
|
|
77
|
+
]))
|
|
78
|
+
print(plan.score, plan.routes())
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Use cases
|
|
82
|
+
|
|
83
|
+
| Family | `optimaru.…` |
|
|
84
|
+
| --- | --- |
|
|
85
|
+
| Routing & logistics | `vehicle_routing`, `pickup_delivery`, `order_picking`, `facility_location` |
|
|
86
|
+
| Scheduling | `flight_crew_scheduling`, `maintenance_scheduling`, `project_job_scheduling`, `semiconductor_scheduling`, `food_packaging`, `task_assigning`, `meeting_scheduling` |
|
|
87
|
+
| Timetabling | `school_timetabling`, `conference_scheduling`, `sports_league_scheduling`, `tournament_scheduling` |
|
|
88
|
+
| Allocation & packing | `bed_allocation`, `bin_packing`, `knapsack`, `assembly_line_balancing`, `quadratic_assignment`, `max_cut` |
|
|
89
|
+
|
|
90
|
+
Each subpackage is loaded on first use, so `import optimaru` stays cheap.
|
|
91
|
+
`list_constraints()` on a use case shows the constraint plugins it ships with.
|
|
92
|
+
|
|
93
|
+
## Links
|
|
94
|
+
|
|
95
|
+
- Website: <https://optimaru.com>
|
|
96
|
+
- Source, docs and benchmarks against OR-Tools: <https://github.com/optimaru/optimaru>
|
|
97
|
+
|
|
98
|
+
optimaru comes in a free, open-source edition (this package, Apache-2.0) and
|
|
99
|
+
an Enterprise edition (coming soon).
|
optimaru-0.1.0/README.md
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
# optimaru
|
|
2
|
+
|
|
3
|
+
A dependency-free, header-only C++17 metaheuristic solver engine for
|
|
4
|
+
real-world combinatorial optimization — scheduling, routing and assignment.
|
|
5
|
+
|
|
6
|
+
The engine contains **no domain code** — problems consume it as a library.
|
|
7
|
+
Worked use cases live in [`use-cases/`](use-cases) and public benchmark
|
|
8
|
+
harnesses in [`benchmarks/`](benchmarks).
|
|
9
|
+
|
|
10
|
+
optimaru comes in a free edition and a paid edition; this repository is the
|
|
11
|
+
free, open-source edition.
|
|
12
|
+
|
|
13
|
+
## Install (Python)
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip install optimaru
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
One package with every use case as a subpackage — `optimaru.vehicle_routing`,
|
|
20
|
+
`optimaru.school_timetabling`, … — compiled for Linux, macOS and Windows
|
|
21
|
+
(Python 3.14+). See [`python/README.md`](python/README.md) for an example.
|
|
22
|
+
The distribution is built from this repository by [`setup.py`](setup.py), which
|
|
23
|
+
reuses each use case's own `python/setup.py`.
|
|
24
|
+
|
|
25
|
+
**Releasing:** bump `version` in [`pyproject.toml`](pyproject.toml) in a PR and
|
|
26
|
+
merge it. On the push to `main`, [`wheels.yml`](.github/workflows/wheels.yml)
|
|
27
|
+
builds the wheels and sdist and — only if there is no `v<version>` tag yet —
|
|
28
|
+
uploads them to PyPI, then creates the `v<version>` tag and GitHub release.
|
|
29
|
+
An unchanged version publishes nothing.
|
|
30
|
+
|
|
31
|
+
## Repository layout
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
include/optimaru/ the engine (header-only, one header per class)
|
|
35
|
+
test/ engine tests
|
|
36
|
+
use-cases/<slug>/ 21 problems built on the engine: C++ domain + solver
|
|
37
|
+
and a pybind11 package (or a small pure-Python model)
|
|
38
|
+
benchmarks/<slug>/ the same problems against OR-Tools (CP-SAT, or the
|
|
39
|
+
Routing solver for VRP) and, where available, Timefold;
|
|
40
|
+
competing solvers live only here
|
|
41
|
+
benchmarks/cpsat-common/ shared CP-SAT constraint-plugin contract
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Engine layout
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
include/optimaru/
|
|
48
|
+
├── optimaru.hpp umbrella include for consumers
|
|
49
|
+
├── api/
|
|
50
|
+
│ ├── domain/solution_descriptor.hpp planning variable description
|
|
51
|
+
│ │ (VariableKind::BASIC | LIST | CHAINED)
|
|
52
|
+
│ ├── domain/variable/variable_listener.hpp shadow variables
|
|
53
|
+
│ ├── score/buildin/hard_soft_score.hpp HardSoftScore
|
|
54
|
+
│ ├── score/calculator/incremental_score_calculator.hpp
|
|
55
|
+
│ ├── score/calculator/chained_incremental_score_calculator.hpp
|
|
56
|
+
│ ├── score/calculator/composite_incremental_score_calculator.hpp
|
|
57
|
+
│ │ cost components, weighted sum
|
|
58
|
+
│ ├── score/director/score_director.hpp + EnvironmentMode::FULL_ASSERT
|
|
59
|
+
│ ├── score/analysis/score_analysis.hpp ScoreAnalysis / ConstraintAnalysis
|
|
60
|
+
│ └── solver/{solver.hpp, solver_factory.hpp,
|
|
61
|
+
│ solution_manager.hpp, solver_manager.hpp}
|
|
62
|
+
├── config/ SolverConfig as plain structs
|
|
63
|
+
│ ├── solver/solver_config.hpp
|
|
64
|
+
│ ├── solver/termination/termination_config.hpp
|
|
65
|
+
│ ├── constructionheuristic/construction_heuristic_config.hpp
|
|
66
|
+
│ ├── localsearch/local_search_config.hpp + RuinRecreateConfig (ALNS)
|
|
67
|
+
│ ├── localsearch/decider/acceptor/local_search_acceptor_config.hpp
|
|
68
|
+
│ ├── heuristic/selector/move_selector_config.hpp move mix weights (union selector)
|
|
69
|
+
│ └── heuristic/selector/common/nearby/nearby_selection_config.hpp
|
|
70
|
+
├── impl/
|
|
71
|
+
│ ├── solver/default_solver.hpp phase orchestration, multi-start
|
|
72
|
+
│ ├── solver/termination/termination.hpp Termination hierarchy +
|
|
73
|
+
│ │ SolverTermination (OR-composite)
|
|
74
|
+
│ ├── constructionheuristic/default_construction_heuristic_phase.hpp
|
|
75
|
+
│ ├── localsearch/default_local_search_phase.hpp step loop, sampled moves, LNS
|
|
76
|
+
│ ├── localsearch/list_move.hpp the LIST moves every strategy
|
|
77
|
+
│ │ previews / applies / undoes
|
|
78
|
+
│ ├── localsearch/element_index.hpp element -> (list, position)
|
|
79
|
+
│ ├── localsearch/solution_snapshot.hpp whole and list-wise restore
|
|
80
|
+
│ ├── localsearch/strategy/ Descent, EjectionChain,
|
|
81
|
+
│ │ IteratedLocalSearch, ...
|
|
82
|
+
│ ├── localsearch/decider/acceptor/ one class per subdirectory:
|
|
83
|
+
│ │ ├── acceptor.hpp hillclimbing/ lateacceptance/
|
|
84
|
+
│ │ │ tabu/ simulatedannealing/
|
|
85
|
+
│ │ │ greatdeluge/ stepcountinghillclimbing/
|
|
86
|
+
│ ├── heuristic/selector/common/nearby/nearby_neighborhoods.hpp
|
|
87
|
+
│ └── heuristic/selector/move/generic/ruin_recreate_selector.hpp
|
|
88
|
+
│ LnsOutcome + RouletteWheelSelector
|
|
89
|
+
├── preview/api/move/operators.hpp custom MoveOperator / RuinOperator
|
|
90
|
+
│ registration (experimental API)
|
|
91
|
+
└── testing/preview_parity.hpp move-preview vs applied-score harness
|
|
92
|
+
for a use case's calculator tests
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
`optimaru::` is one flat namespace; the directories organize the headers,
|
|
96
|
+
the namespaces don't.
|
|
97
|
+
|
|
98
|
+
## Features
|
|
99
|
+
|
|
100
|
+
- **Planning variables**: BASIC (entity → value), LIST (ordered lists of
|
|
101
|
+
elements) and CHAINED (previous pointers/anchors, solved through a
|
|
102
|
+
synchronized list view so the full LIST move repertoire applies).
|
|
103
|
+
- **Shadow variables** via `VariableListener<Solution>`
|
|
104
|
+
(`Solver::addVariableListener()`); FULL_ASSERT also catches stale shadows.
|
|
105
|
+
- **Scoring**: `HardSoftScore` (int64 hard, double soft); constraints are
|
|
106
|
+
written as an `IncrementalScoreCalculator` (list hooks included) or composed
|
|
107
|
+
from named cost components with `CompositeIncrementalScoreCalculator`.
|
|
108
|
+
Move evaluation stays incremental (O(delta)).
|
|
109
|
+
- **Score analysis**: `SolutionManager::analyze()` → `ScoreAnalysis` /
|
|
110
|
+
`ConstraintAnalysis`, a per-constraint breakdown over the named components.
|
|
111
|
+
- **Verification**: `ScoreDirector` with `EnvironmentMode::FULL_ASSERT`;
|
|
112
|
+
score corruption throws `ScoreCorruptionError`.
|
|
113
|
+
- **Construction heuristics**: First Fit, First Fit Decreasing, cheapest
|
|
114
|
+
insertion for list variables.
|
|
115
|
+
- **Acceptors**: Hill Climbing, Late Acceptance, Entity Tabu, Simulated
|
|
116
|
+
Annealing, Great Deluge, Step Counting Hill Climbing.
|
|
117
|
+
- **Terminations**: spent / unimproved-spent / step count /
|
|
118
|
+
unimproved-step-count / best score, OR-composed.
|
|
119
|
+
- **Moves**: change/swap (BASIC); relocate / swap / 2-opt / Or-opt / 2-opt\*
|
|
120
|
+
tail swap (LIST), mixed by weight in `MoveSelectorConfig`.
|
|
121
|
+
- **Nearby selection**: `NearbySelectionConfig::distanceMeter` biases moves
|
|
122
|
+
toward k-nearest neighbors.
|
|
123
|
+
- **Ruin & recreate**: adaptive ALNS — random/related/worst ruin + greedy
|
|
124
|
+
(nearby-restricted) recreate + polish, roulette-wheel operator weights.
|
|
125
|
+
- **Solving**: `SolverFactory` / `Solver` / `SolverConfig`; async background
|
|
126
|
+
solving with `SolverManager` / `SolverJob` / `SolverStatus` and
|
|
127
|
+
`terminateEarly()`; `solveMultiStart()` (N independent starts, best wins).
|
|
128
|
+
- **Custom moves** (`preview/api/move`): `addMoveOperator` /
|
|
129
|
+
`addRuinOperator` / `setAcceptorFactory`.
|
|
130
|
+
|
|
131
|
+
Multithreaded *move* evaluation is deliberately excluded: it only pays when a
|
|
132
|
+
single score calculation is expensive (ms-scale); at this engine's ~200ns
|
|
133
|
+
moves, per-step thread synchronization would cost more than it saves — use
|
|
134
|
+
`solveMultiStart()` to occupy cores instead. Also out of scope:
|
|
135
|
+
exhaustive/partitioned search and REST layers.
|
|
136
|
+
|
|
137
|
+
## Using it
|
|
138
|
+
|
|
139
|
+
Header-only: add `include/` to the include path, or from CMake:
|
|
140
|
+
|
|
141
|
+
```cmake
|
|
142
|
+
add_subdirectory(optimaru) # or FetchContent
|
|
143
|
+
target_link_libraries(my_app PRIVATE optimaru::optimaru)
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
```cpp
|
|
147
|
+
#include "optimaru/optimaru.hpp"
|
|
148
|
+
|
|
149
|
+
// 1. Describe the planning variable:
|
|
150
|
+
template <>
|
|
151
|
+
struct optimaru::SolutionDescriptor<MySolution> {
|
|
152
|
+
static constexpr optimaru::VariableKind kind = optimaru::VariableKind::BASIC;
|
|
153
|
+
static int entityCount(const MySolution&);
|
|
154
|
+
static int valueCount(const MySolution&);
|
|
155
|
+
static int getVariable(const MySolution&, int entity); // -1 == unassigned
|
|
156
|
+
static void setVariable(MySolution&, int entity, int value);
|
|
157
|
+
};
|
|
158
|
+
// (LIST kind instead: listCount/elementCount/listSize/getElement/
|
|
159
|
+
// insertElement/removeElement/reverseSegment)
|
|
160
|
+
|
|
161
|
+
// 2. Implement the constraints incrementally (or compose cost components
|
|
162
|
+
// with CompositeIncrementalScoreCalculator):
|
|
163
|
+
class MyCalculator final : public optimaru::IncrementalScoreCalculator<MySolution> { ... };
|
|
164
|
+
|
|
165
|
+
// 3. Configure and solve:
|
|
166
|
+
optimaru::SolverConfig config;
|
|
167
|
+
config.termination.spentLimit = std::chrono::seconds(30);
|
|
168
|
+
config.localSearch.acceptor.acceptorType = optimaru::AcceptorType::LATE_ACCEPTANCE;
|
|
169
|
+
config.localSearch.nearby.distanceMeter = [&](int a, int b) { return dist(a, b); };
|
|
170
|
+
config.localSearch.ruinRecreate.enabled = true; // ALNS kicks on stagnation
|
|
171
|
+
|
|
172
|
+
auto solver = optimaru::SolverFactory<MySolution>::create(config).buildSolver();
|
|
173
|
+
solver.addMoveOperator(std::make_unique<MyOrOptMove>()); // optional customs
|
|
174
|
+
MyCalculator calculator;
|
|
175
|
+
solver.solve(solution, calculator);
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
For a complete, production-shaped example see
|
|
179
|
+
[`use-cases/vehicle-routing`](use-cases/vehicle-routing).
|
|
180
|
+
|
|
181
|
+
## Performance features
|
|
182
|
+
|
|
183
|
+
- **Nearby selection**: on spatial problems a distant relocate/swap is almost
|
|
184
|
+
never an improvement, so moves are biased toward k-nearest neighbors. The
|
|
185
|
+
same lists drive the LNS related ruin and the nearby-restricted repair.
|
|
186
|
+
- **LNS / ALNS**: escapes the local optima that acceptor-only search cannot
|
|
187
|
+
leave — verified in the tests: hill climbing alone stays trapped on a
|
|
188
|
+
conflicted instance, hill climbing + LNS reaches the global optimum.
|
|
189
|
+
- Measured on 100-city random TSP (5-seed sweep): nearby + LNS beats plain
|
|
190
|
+
local search on every seed even with HALF the outer step budget
|
|
191
|
+
(mean tour 2514 → 2409).
|
|
192
|
+
|
|
193
|
+
## Use cases
|
|
194
|
+
|
|
195
|
+
[`use-cases/README.md`](use-cases/README.md) lists all 21 use cases and
|
|
196
|
+
explains how to extend one — adding a move, changing the construction
|
|
197
|
+
heuristic, adding a hard or soft cost. Each use case's README has a short
|
|
198
|
+
usage example and the same guide with its own file names.
|
|
199
|
+
|
|
200
|
+
Scheduling: bed allocation, conference, flight crew, food packaging,
|
|
201
|
+
maintenance, meeting, project-job (RCPSP), school timetabling, semiconductor
|
|
202
|
+
fab, sports league, task assigning, tournament. Routing: vehicle routing
|
|
203
|
+
(CVRPTW), pickup & delivery (PDPTW), order picking. Assignment and packing:
|
|
204
|
+
facility location, bin packing, knapsack, quadratic assignment, max-cut,
|
|
205
|
+
assembly-line balancing.
|
|
206
|
+
|
|
207
|
+
```sh
|
|
208
|
+
# C++
|
|
209
|
+
cmake -S use-cases/<slug>/cpp -B build/<slug> && cmake --build build/<slug> -j
|
|
210
|
+
ctest --test-dir build/<slug>
|
|
211
|
+
|
|
212
|
+
# Python (uv)
|
|
213
|
+
cd use-cases/<slug>/python && uv sync --all-groups --all-extras && uv run pytest
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
## Benchmarks
|
|
217
|
+
|
|
218
|
+
[`benchmarks/README.md`](benchmarks/README.md) lists every comparison. In
|
|
219
|
+
short: every use case is compared with OR-Tools CP-SAT on the same instances
|
|
220
|
+
and rescored by the use case's own evaluator; vehicle routing is compared with
|
|
221
|
+
the OR-Tools Routing solver and Timefold Solver on CVRPLIB Set X, and school
|
|
222
|
+
timetabling three ways (engine / CP-SAT / Timefold). Pickup & delivery,
|
|
223
|
+
project-job scheduling, bin packing, quadratic assignment and assembly-line
|
|
224
|
+
balancing also run on public instance sets (Li & Lim, Patterson, Hexaly BPP,
|
|
225
|
+
QAPLIB, SALBP).
|
|
226
|
+
|
|
227
|
+
## Tests
|
|
228
|
+
|
|
229
|
+
`test/engine_test.cpp` verifies every feature against brute force on two toy
|
|
230
|
+
domains (BASIC task assignment, LIST TSP): all six acceptors, all four
|
|
231
|
+
terminations, FFD ordering, multi-start, FULL_ASSERT catching a deliberately
|
|
232
|
+
corrupted calculator, list moves under FULL_ASSERT, adaptive operator-weight
|
|
233
|
+
convergence, LNS escaping a local optimum that traps hill climbing, and the
|
|
234
|
+
nearby+LNS quality win on 100-city random TSP.
|
|
235
|
+
|
|
236
|
+
```sh
|
|
237
|
+
cmake -B build && cmake --build build && ctest --test-dir build
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
## License
|
|
241
|
+
|
|
242
|
+
[Apache License 2.0](LICENSE). See [NOTICE](NOTICE) for attribution.
|