Class: Wallace::Operators::SubtourExchangeCrossoverOperator::Subtour
- Inherits:
-
Struct
- Object
- Struct
- Wallace::Operators::SubtourExchangeCrossoverOperator::Subtour
- Defined in:
- lib/operators/subtour_exchange_crossover_operation.rb
Overview
The Subtour data structure is used to hold a given subtour along with its start and end position within the whole tour (i.e. the bounds of the subtour).
Instance Attribute Summary collapse
-
#bounds ⇒ Object
Returns the value of attribute bounds.
-
#tour ⇒ Object
Returns the value of attribute tour.
Instance Attribute Details
#bounds ⇒ Object
Returns the value of attribute bounds
9 10 11 |
# File 'lib/operators/subtour_exchange_crossover_operation.rb', line 9 def bounds @bounds end |
#tour ⇒ Object
Returns the value of attribute tour
9 10 11 |
# File 'lib/operators/subtour_exchange_crossover_operation.rb', line 9 def tour @tour end |