Class: Google::Cloud::Optimization::V1::ShipmentModel::DurationDistanceMatrix

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/optimization/v1/fleet_routing.rb

Overview

Specifies a duration and distance matrix from visit and vehicle start locations to visit and vehicle end locations.

Defined Under Namespace

Classes: Row

Instance Attribute Summary collapse

Instance Attribute Details

#rows::Array<::Google::Cloud::Optimization::V1::ShipmentModel::DurationDistanceMatrix::Row>

Returns Specifies the rows of the duration and distance matrix. It must have as many elements as ShipmentModel.duration_distance_matrix_src_tags.

Returns:



637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 637

class DurationDistanceMatrix
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies a row of the duration and distance matrix.
  # @!attribute [rw] durations
  #   @return [::Array<::Google::Protobuf::Duration>]
  #     Duration values for a given row. It must have as many elements as
  #     {::Google::Cloud::Optimization::V1::ShipmentModel#duration_distance_matrix_dst_tags ShipmentModel.duration_distance_matrix_dst_tags}.
  # @!attribute [rw] meters
  #   @return [::Array<::Float>]
  #     Distance values for a given row. If no costs or constraints refer to
  #     distances in the model, this can be left empty; otherwise it must have
  #     as many elements as `durations`.
  class Row
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#vehicle_start_tag::String

Returns Tag defining to which vehicles this duration and distance matrix applies. If empty, this applies to all vehicles, and there can only be a single matrix.

Each vehicle start must match exactly one matrix, i.e. exactly one of their start_tags field must match the vehicle_start_tag of a matrix (and of that matrix only).

All matrices must have a different vehicle_start_tag.

Returns:

  • (::String)

    Tag defining to which vehicles this duration and distance matrix applies. If empty, this applies to all vehicles, and there can only be a single matrix.

    Each vehicle start must match exactly one matrix, i.e. exactly one of their start_tags field must match the vehicle_start_tag of a matrix (and of that matrix only).

    All matrices must have a different vehicle_start_tag.



637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 637

class DurationDistanceMatrix
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Specifies a row of the duration and distance matrix.
  # @!attribute [rw] durations
  #   @return [::Array<::Google::Protobuf::Duration>]
  #     Duration values for a given row. It must have as many elements as
  #     {::Google::Cloud::Optimization::V1::ShipmentModel#duration_distance_matrix_dst_tags ShipmentModel.duration_distance_matrix_dst_tags}.
  # @!attribute [rw] meters
  #   @return [::Array<::Float>]
  #     Distance values for a given row. If no costs or constraints refer to
  #     distances in the model, this can be left empty; otherwise it must have
  #     as many elements as `durations`.
  class Row
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end