Package | Description |
---|---|
com.google.ortools.linearsolver |
Modifier and Type | Method and Description |
---|---|
MPSosConstraint.Builder |
MPSosConstraint.Builder.addAllVarIndex(java.lang.Iterable<? extends java.lang.Integer> values)
Variable index (w.r.t. the "variable" field of MPModelProto) of the
variables in the SOS.
|
MPSosConstraint.Builder |
MPSosConstraint.Builder.addAllWeight(java.lang.Iterable<? extends java.lang.Double> values)
Optional: SOS weights.
|
MPSosConstraint.Builder |
MPSosConstraint.Builder.addVarIndex(int value)
Variable index (w.r.t. the "variable" field of MPModelProto) of the
variables in the SOS.
|
MPSosConstraint.Builder |
MPSosConstraint.Builder.addWeight(double value)
Optional: SOS weights.
|
MPSosConstraint.Builder |
MPSosConstraint.Builder.clear() |
MPSosConstraint.Builder |
MPSosConstraint.Builder.clearType()
optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT]; |
MPSosConstraint.Builder |
MPSosConstraint.Builder.clearVarIndex()
Variable index (w.r.t. the "variable" field of MPModelProto) of the
variables in the SOS.
|
MPSosConstraint.Builder |
MPSosConstraint.Builder.clearWeight()
Optional: SOS weights.
|
MPSosConstraint.Builder |
MPGeneralConstraintProto.Builder.getSosConstraintBuilder()
.operations_research.MPSosConstraint sos_constraint = 3; |
MPSosConstraint.Builder |
MPSosConstraint.Builder.mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MPSosConstraint.Builder |
MPSosConstraint.Builder.mergeFrom(com.google.protobuf.Message other) |
MPSosConstraint.Builder |
MPSosConstraint.Builder.mergeFrom(MPSosConstraint other) |
static MPSosConstraint.Builder |
MPSosConstraint.newBuilder() |
static MPSosConstraint.Builder |
MPSosConstraint.newBuilder(MPSosConstraint prototype) |
MPSosConstraint.Builder |
MPSosConstraint.newBuilderForType() |
protected MPSosConstraint.Builder |
MPSosConstraint.newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) |
MPSosConstraint.Builder |
MPSosConstraint.Builder.setType(MPSosConstraint.Type value)
optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT]; |
MPSosConstraint.Builder |
MPSosConstraint.Builder.setVarIndex(int index,
int value)
Variable index (w.r.t. the "variable" field of MPModelProto) of the
variables in the SOS.
|
MPSosConstraint.Builder |
MPSosConstraint.Builder.setWeight(int index,
double value)
Optional: SOS weights.
|
MPSosConstraint.Builder |
MPSosConstraint.toBuilder() |
Modifier and Type | Method and Description |
---|---|
MPGeneralConstraintProto.Builder |
MPGeneralConstraintProto.Builder.setSosConstraint(MPSosConstraint.Builder builderForValue)
.operations_research.MPSosConstraint sos_constraint = 3; |
Copyright © 2025. All rights reserved.