Class: Wallace::Operators::SubtourExchangeCrossoverOperator::Subtour

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#boundsObject

Returns the value of attribute bounds

Returns:

  • (Object)

    the current value of bounds



9
10
11
# File 'lib/operators/subtour_exchange_crossover_operation.rb', line 9

def bounds
  @bounds
end

#tourObject

Returns the value of attribute tour

Returns:

  • (Object)

    the current value of tour



9
10
11
# File 'lib/operators/subtour_exchange_crossover_operation.rb', line 9

def tour
  @tour
end