public static enum GlopParameters.CostScalingAlgorithm extends java.lang.Enum<GlopParameters.CostScalingAlgorithm> implements com.google.protobuf.ProtocolMessageEnum
This is only used if use_scaling is true. After the scaling is done, we also scale the objective by a constant factor. This is important because scaling the cost has a direct influence on the meaning of the dual_feasibility_tolerance. Because we usually use a fixed tolerance, the objective must be well scaled to make sense.Protobuf enum
operations_research.glop.GlopParameters.CostScalingAlgorithm
Enum Constant and Description |
---|
CONTAIN_ONE_COST_SCALING
This is the most defensive option.
|
MEAN_COST_SCALING
Make the mean of the non-zero costs equals to one.
|
MEDIAN_COST_SCALING
Make the median of the non-zero costs equals to one.
|
NO_COST_SCALING
Leave the cost as is.
|
Modifier and Type | Field and Description |
---|---|
static int |
CONTAIN_ONE_COST_SCALING_VALUE
This is the most defensive option.
|
static int |
MEAN_COST_SCALING_VALUE
Make the mean of the non-zero costs equals to one.
|
static int |
MEDIAN_COST_SCALING_VALUE
Make the median of the non-zero costs equals to one.
|
static int |
NO_COST_SCALING_VALUE
Leave the cost as is.
|
Modifier and Type | Method and Description |
---|---|
static GlopParameters.CostScalingAlgorithm |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<GlopParameters.CostScalingAlgorithm> |
internalGetValueMap() |
static GlopParameters.CostScalingAlgorithm |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static GlopParameters.CostScalingAlgorithm |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static GlopParameters.CostScalingAlgorithm |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GlopParameters.CostScalingAlgorithm[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GlopParameters.CostScalingAlgorithm NO_COST_SCALING
Leave the cost as is.
NO_COST_SCALING = 0;
public static final GlopParameters.CostScalingAlgorithm CONTAIN_ONE_COST_SCALING
This is the most defensive option. It makes sure that [min_cost_magnitude, max_cost_magnitude] contains 1.0, and if not, it makes the closest magnitude bound equal to one.
CONTAIN_ONE_COST_SCALING = 1;
public static final GlopParameters.CostScalingAlgorithm MEAN_COST_SCALING
Make the mean of the non-zero costs equals to one.
MEAN_COST_SCALING = 2;
public static final GlopParameters.CostScalingAlgorithm MEDIAN_COST_SCALING
Make the median of the non-zero costs equals to one.
MEDIAN_COST_SCALING = 3;
public static final int NO_COST_SCALING_VALUE
Leave the cost as is.
NO_COST_SCALING = 0;
public static final int CONTAIN_ONE_COST_SCALING_VALUE
This is the most defensive option. It makes sure that [min_cost_magnitude, max_cost_magnitude] contains 1.0, and if not, it makes the closest magnitude bound equal to one.
CONTAIN_ONE_COST_SCALING = 1;
public static final int MEAN_COST_SCALING_VALUE
Make the mean of the non-zero costs equals to one.
MEAN_COST_SCALING = 2;
public static final int MEDIAN_COST_SCALING_VALUE
Make the median of the non-zero costs equals to one.
MEDIAN_COST_SCALING = 3;
public static GlopParameters.CostScalingAlgorithm[] values()
for (GlopParameters.CostScalingAlgorithm c : GlopParameters.CostScalingAlgorithm.values()) System.out.println(c);
public static GlopParameters.CostScalingAlgorithm valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static GlopParameters.CostScalingAlgorithm valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static GlopParameters.CostScalingAlgorithm forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<GlopParameters.CostScalingAlgorithm> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static GlopParameters.CostScalingAlgorithm valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2025. All rights reserved.