Uses of Class
com.google.ortools.linearsolver.MPSosConstraint.Builder
Packages that use MPSosConstraint.Builder
-
Uses of MPSosConstraint.Builder in com.google.ortools.linearsolver
Subclasses with type arguments of type MPSosConstraint.Builder in com.google.ortools.linearsolverModifier and TypeClassDescriptionstatic final classSpecial Ordered Set (SOS) constraints of type 1 or 2.Methods in com.google.ortools.linearsolver that return MPSosConstraint.BuilderModifier and TypeMethodDescriptionMPSosConstraint.Builder.addAllVarIndex(Iterable<? extends Integer> values) Variable index (w.r.t. the "variable" field of MPModelProto) of the variables in the SOS.MPSosConstraint.Builder.addAllWeight(Iterable<? extends Double> values) Optional: SOS weights.MPSosConstraint.Builder.addVarIndex(int value) Variable index (w.r.t. the "variable" field of MPModelProto) of the variables in the SOS.MPSosConstraint.Builder.addWeight(double value) Optional: SOS weights.MPSosConstraint.Builder.clear()MPSosConstraint.Builder.clearType()optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];MPSosConstraint.Builder.clearVarIndex()Variable index (w.r.t. the "variable" field of MPModelProto) of the variables in the SOS.MPSosConstraint.Builder.clearWeight()Optional: SOS weights.MPGeneralConstraintProto.Builder.getSosConstraintBuilder().operations_research.MPSosConstraint sos_constraint = 3;MPSosConstraint.Builder.mergeFrom(MPSosConstraint other) MPSosConstraint.Builder.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) MPSosConstraint.Builder.mergeFrom(com.google.protobuf.Message other) static MPSosConstraint.BuilderMPSosConstraint.newBuilder()static MPSosConstraint.BuilderMPSosConstraint.newBuilder(MPSosConstraint prototype) MPSosConstraint.newBuilderForType()protected MPSosConstraint.BuilderMPSosConstraint.newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) MPSosConstraint.Builder.setType(MPSosConstraint.Type value) optional .operations_research.MPSosConstraint.Type type = 1 [default = SOS1_DEFAULT];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.setWeight(int index, double value) Optional: SOS weights.MPSosConstraint.toBuilder()Methods in com.google.ortools.linearsolver with parameters of type MPSosConstraint.BuilderModifier and TypeMethodDescriptionMPGeneralConstraintProto.Builder.setSosConstraint(MPSosConstraint.Builder builderForValue) .operations_research.MPSosConstraint sos_constraint = 3;