Skip to content

Commit

Permalink
remove upsolet test because of PR104
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsecadeline committed Jan 28, 2021
1 parent c05999e commit 9bc1059
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions test/models/vrp_consistency_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -153,32 +153,6 @@ def test_point_id_not_defined
assert_equal('Couldn\'t find Models::Point with ID=missing_point_id', exception.message)
end

def test_same_point_day_authorized
vrp = VRP.scheduling
reference_point = vrp[:services].first[:activity][:point_id]
vrp[:services].first[:visits_number] = 3
vrp[:services].first[:minimum_lapse] = 3
vrp[:services].first[:maximum_lapse] = 3
vrp[:services] << {
id: 'last_service',
visits_number: 2,
minimum_lapse: 6,
maximum_lapse: 6,
activity: {
point_id: reference_point
}
}
vrp[:configuration][:resolution][:same_point_day] = true
vrp[:configuration][:schedule][:range_indices][:end] = 10
result = OptimizerWrapper.wrapper_vrp('demo', { services: { vrp: [:demo] }}, TestHelper.create(vrp), nil)
assert result # there exist a common_divisor

vrp[:services].last[:minimum_lapse] = vrp[:services].last[:maximum_lapse] = 7
assert_raises OptimizerWrapper::UnsupportedProblemError do
OptimizerWrapper.wrapper_vrp('demo', { services: { vrp: [:demo] }}, TestHelper.create(vrp), nil)
end
end

def test_reject_if_shipments_and_periodic_heuristic
vrp = VRP.pud
vrp[:configuration][:preprocessing][:first_solution_strategy] = 'periodic'
Expand Down

0 comments on commit 9bc1059

Please sign in to comment.