From c882cca2c2fe5e05ddca918ce391e2d43481acbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gw=C3=A9na=C3=ABl=20Rault?= Date: Wed, 3 Dec 2025 09:37:07 +0100 Subject: [PATCH 1/2] Remove unused variable --- wrappers/pyvrp.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/wrappers/pyvrp.rb b/wrappers/pyvrp.rb index 922cbb88..5cf97c66 100644 --- a/wrappers/pyvrp.rb +++ b/wrappers/pyvrp.rb @@ -314,11 +314,9 @@ def build_vehicles(vrp) vrp.vehicles.map { |veh| capacity_hash = all_units.map{ |id, _unit| [id, MAX_INT64] }.to_h - limit_hash = all_units.map{ |id, _unit| [id, MAX_INT64] }.to_h veh.capacities.each do |capacity| capacity_hash[capacity.unit_id] = (capacity.limit && (capacity.limit * CUSTOM_QUANTITY_BIGNUM).to_i || MAX_INT_UNITS) - limit_hash[capacity.unit_id] = capacity.initial&.to_i || capacity.limit&.to_i || MAX_INT64 end capacity_skills = Array.new(@skills_index_hash.size, 0) From 29012ac357493377ba191c6fffd5e5b1d4c04299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gw=C3=A9na=C3=ABl=20Rault?= Date: Wed, 3 Dec 2025 10:39:33 +0100 Subject: [PATCH 2/2] PyVRP - Reduce min penalty --- wrappers/pyvrp_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wrappers/pyvrp_wrapper.py b/wrappers/pyvrp_wrapper.py index e363b8ed..d84df2fe 100644 --- a/wrappers/pyvrp_wrapper.py +++ b/wrappers/pyvrp_wrapper.py @@ -34,7 +34,7 @@ def main(input_path, output_path, timeout=None): data = ProblemData.from_dict(json_data) m = Model.from_data(data) # Solve the problem - penalty_params = PenaltyParams(min_penalty=1e10, max_penalty=1e10) + penalty_params = PenaltyParams(min_penalty=1e5, max_penalty=1e10) solve_params = SolveParams(penalty=penalty_params) result = m.solve(stop=MaxRuntime(int(timeout)), params=solve_params)