Skip to content

Commit

Permalink
Remove assemble heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
Braktar committed Jun 29, 2021
1 parent 3c6967a commit 7213b63
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 294 deletions.
228 changes: 0 additions & 228 deletions lib/heuristics/assemble_heuristic.rb

This file was deleted.

1 change: 0 additions & 1 deletion optimizer_wrapper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
require './lib/interpreters/periodic_visits.rb'
require './lib/interpreters/split_clustering.rb'
require './lib/interpreters/compute_several_solutions.rb'
require './lib/heuristics/assemble_heuristic.rb'
require './lib/heuristics/dichotomious_approach.rb'
require './lib/filters.rb'
require './lib/cleanse.rb'
Expand Down
65 changes: 0 additions & 65 deletions test/wrappers/ortools_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4553,71 +4553,6 @@ def test_no_solver_with_ortools_single_heuristic
assert_respond_to result, :cost
end

def test_assemble_heuristic
ortools = OptimizerWrapper.config[:services][:ortools]
problem = {
matrices: [{
id: 'matrix_0',
time: [
[0, 1, 1],
[1, 0, 1],
[1, 1, 0]
]
}],
points: [{
id: 'point_0',
matrix_index: 0
}, {
id: 'point_1',
matrix_index: 1
}, {
id: 'point_2',
matrix_index: 2
}],
vehicles: [{
id: 'vehicle_0',
start_point_id: 'point_0',
matrix_id: 'matrix_0',
cost_late_multiplier: 0,
shift_preference: 'force_start'
}, {
id: 'vehicle_1',
start_point_id: 'point_0',
matrix_id: 'matrix_0',
cost_late_multiplier: 0,
shift_preference: 'force_start'
}],
services: [{
id: 'service_1',
activity: {
point_id: 'point_1',
late_multiplier: 0,
timewindows: [{
start: 0,
end: 2
}]
}
}, {
id: 'service_2',
activity: {
point_id: 'point_2',
late_multiplier: 0
}
}],
configuration: {
resolution: {
duration: 20,
}
}
}
vrp = TestHelper.create(problem)
service_vrp = {
service: ortools,
vrp: vrp
}
assert Interpreters::Assemble.assemble_candidate([service_vrp])
end

def test_insert_with_order
vrp = TestHelper.load_vrp(self, fixture_file: 'instance_order')
result = OptimizerWrapper.wrapper_vrp('demo', { services: { vrp: [:ortools] }}, vrp, nil)
Expand Down

0 comments on commit 7213b63

Please sign in to comment.