Skip to content

Commit d82015b

Browse files
committed
Remove required and edit penalty
1 parent 0917091 commit d82015b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

wrappers/pyvrp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ def build_clients_and_groups(vrp)
400400
tw_late: tw.end || MAX_INT64,
401401
release_time: 0,
402402
prize: service.exclusion_cost || (MAX_PENALTY / (service.priority + 1)).round,
403-
required: service.priority == 0 && activity.timewindows.size <= 1,
403+
required: false,
404404
name: "#{service.id}_tw#{tw_idx}"
405405
}
406406
service_to_client_indices[service.id] ||= []

wrappers/pyvrp_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def main(input_path, output_path, timeout=None):
3434
data = ProblemData.from_dict(json_data)
3535
m = Model.from_data(data)
3636
# Solve the problem
37-
penalty_params = PenaltyParams(target_feasible=0.8, max_penalty=1e12)
37+
penalty_params = PenaltyParams(min_penalty=1e10, max_penalty=1e10)
3838
solve_params = SolveParams(penalty=penalty_params)
3939
result = m.solve(stop=MaxRuntime(int(timeout)), params=solve_params)
4040

0 commit comments

Comments
 (0)