Class: Google::Cloud::Optimization::V1::Vehicle::LoadLimit

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

Defines a load limit applying to a vehicle, e.g. "this truck may only carry up to 3500 kg". See load_limits.

Defined Under Namespace

Classes: Interval

Instance Attribute Summary collapse

Instance Attribute Details

#cost_per_unit_above_soft_max::Float

Returns If the load ever exceeds soft_max_load along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - soft_max_load)

Returns:



1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1401

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

  # Interval of acceptable load amounts.
  # @!attribute [rw] min
  #   @return [::Integer]
  #     A minimum acceptable load. Must be ≥ 0.
  #     If they're both specified,
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#min min} must
  #     be ≤
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#max max}.
  # @!attribute [rw] max
  #   @return [::Integer]
  #     A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
  #     load is unrestricted by this message.
  #     If they're both specified,
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#min min} must
  #     be ≤
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#max max}.
  class Interval
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#end_load_interval::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval

Returns The acceptable load interval of the vehicle at the end of the route.

Returns:



1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1401

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

  # Interval of acceptable load amounts.
  # @!attribute [rw] min
  #   @return [::Integer]
  #     A minimum acceptable load. Must be ≥ 0.
  #     If they're both specified,
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#min min} must
  #     be ≤
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#max max}.
  # @!attribute [rw] max
  #   @return [::Integer]
  #     A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
  #     load is unrestricted by this message.
  #     If they're both specified,
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#min min} must
  #     be ≤
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#max max}.
  class Interval
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#max_load::Integer

Returns The maximum acceptable amount of load.

Returns:

  • (::Integer)

    The maximum acceptable amount of load.



1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1401

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

  # Interval of acceptable load amounts.
  # @!attribute [rw] min
  #   @return [::Integer]
  #     A minimum acceptable load. Must be ≥ 0.
  #     If they're both specified,
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#min min} must
  #     be ≤
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#max max}.
  # @!attribute [rw] max
  #   @return [::Integer]
  #     A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
  #     load is unrestricted by this message.
  #     If they're both specified,
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#min min} must
  #     be ≤
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#max max}.
  class Interval
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#soft_max_load::Integer

Returns A soft limit of the load. See cost_per_unit_above_soft_max.

Returns:



1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1401

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

  # Interval of acceptable load amounts.
  # @!attribute [rw] min
  #   @return [::Integer]
  #     A minimum acceptable load. Must be ≥ 0.
  #     If they're both specified,
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#min min} must
  #     be ≤
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#max max}.
  # @!attribute [rw] max
  #   @return [::Integer]
  #     A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
  #     load is unrestricted by this message.
  #     If they're both specified,
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#min min} must
  #     be ≤
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#max max}.
  class Interval
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#start_load_interval::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval

Returns The acceptable load interval of the vehicle at the start of the route.

Returns:



1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
# File 'proto_docs/google/cloud/optimization/v1/fleet_routing.rb', line 1401

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

  # Interval of acceptable load amounts.
  # @!attribute [rw] min
  #   @return [::Integer]
  #     A minimum acceptable load. Must be ≥ 0.
  #     If they're both specified,
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#min min} must
  #     be ≤
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#max max}.
  # @!attribute [rw] max
  #   @return [::Integer]
  #     A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
  #     load is unrestricted by this message.
  #     If they're both specified,
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#min min} must
  #     be ≤
  #     {::Google::Cloud::Optimization::V1::Vehicle::LoadLimit::Interval#max max}.
  class Interval
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end