Reference documentation and code samples for the Cloud Optimization V1 API class Google::Cloud::Optimization::V1::InjectedSolutionConstraint::ConstraintRelaxation.
For a group of vehicles, specifies at what threshold(s) constraints on
visits will be relaxed and to which level. Shipments listed in
the skipped_shipment
field are constrained to be skipped; i.e., they
cannot be performed.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#relaxations
def relaxations() -> ::Array<::Google::Cloud::Optimization::V1::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation>
-
(::Array<::Google::Cloud::Optimization::V1::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation>) — All the visit constraint relaxations that will apply to visits on
routes with vehicles in
vehicle_indices
.
#relaxations=
def relaxations=(value) -> ::Array<::Google::Cloud::Optimization::V1::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation>
-
value (::Array<::Google::Cloud::Optimization::V1::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation>) — All the visit constraint relaxations that will apply to visits on
routes with vehicles in
vehicle_indices
.
-
(::Array<::Google::Cloud::Optimization::V1::InjectedSolutionConstraint::ConstraintRelaxation::Relaxation>) — All the visit constraint relaxations that will apply to visits on
routes with vehicles in
vehicle_indices
.
#vehicle_indices
def vehicle_indices() -> ::Array<::Integer>
-
(::Array<::Integer>) — Specifies the vehicle indices to which the visit constraint
relaxations
apply. If empty, this is considered the default and therelaxations
apply to all vehicles that are not specified in otherconstraint_relaxations
. There can be at most one default, i.e., at most one constraint relaxation field is allowed emptyvehicle_indices
. A vehicle index can only be listed once, even within severalconstraint_relaxations
.A vehicle index is mapped the same as ShipmentRoute.vehicle_index, if
interpret_injected_solutions_using_labels
is true (seefields
comment).
#vehicle_indices=
def vehicle_indices=(value) -> ::Array<::Integer>
-
value (::Array<::Integer>) — Specifies the vehicle indices to which the visit constraint
relaxations
apply. If empty, this is considered the default and therelaxations
apply to all vehicles that are not specified in otherconstraint_relaxations
. There can be at most one default, i.e., at most one constraint relaxation field is allowed emptyvehicle_indices
. A vehicle index can only be listed once, even within severalconstraint_relaxations
.A vehicle index is mapped the same as ShipmentRoute.vehicle_index, if
interpret_injected_solutions_using_labels
is true (seefields
comment).
-
(::Array<::Integer>) — Specifies the vehicle indices to which the visit constraint
relaxations
apply. If empty, this is considered the default and therelaxations
apply to all vehicles that are not specified in otherconstraint_relaxations
. There can be at most one default, i.e., at most one constraint relaxation field is allowed emptyvehicle_indices
. A vehicle index can only be listed once, even within severalconstraint_relaxations
.A vehicle index is mapped the same as ShipmentRoute.vehicle_index, if
interpret_injected_solutions_using_labels
is true (seefields
comment).