Cloud Optimization V1 API - Class Google::Cloud::Optimization::V1::ShipmentModel::DurationDistanceMatrix::Row (v0.9.2)

Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::ShipmentModel::DurationDistanceMatrix::Row.

Specifies a row of the duration and distance matrix.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#durations

def durations() -> ::Array<::Google::Protobuf::Duration>
Returns

#durations=

def durations=(value) -> ::Array<::Google::Protobuf::Duration>
Parameter
Returns

#meters

def meters() -> ::Array<::Float>
Returns
  • (::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.

#meters=

def meters=(value) -> ::Array<::Float>
Parameter
  • value (::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.
Returns
  • (::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.