Class: Quicopt::Arrangement

Inherits:
Data
  • Object
show all
Defined in:
lib/quicopt/client.rb

Overview

The arrangement the service found for one permutation (see Model#permutation), both ways round and counted from 0: item_at[k] is the item in slot k — for a route, the stops in the order visited — and slot_of[i] the slot of item i.

Instance Attribute Summary collapse

Instance Attribute Details

#item_at ⇒ Object (readonly)

Returns the value of attribute item_at

Returns:

  • (Object) —

    the current value of item_at



58
59
60
# File 'lib/quicopt/client.rb', line 58

def item_at
  @item_at
end

#slot_of ⇒ Object (readonly)

Returns the value of attribute slot_of

Returns:

  • (Object) —

    the current value of slot_of



58
59
60
# File 'lib/quicopt/client.rb', line 58

def slot_of
  @slot_of
end