Uses of Class
com.google.ortools.linearsolver.MPConstraintProto.Builder
Packages that use MPConstraintProto.Builder
-
Uses of MPConstraintProto.Builder in com.google.ortools.linearsolver
Subclasses with type arguments of type MPConstraintProto.Builder in com.google.ortools.linearsolverModifier and TypeClassDescriptionstatic final classA linear constraint is always of the form: lower_bound <= sum of linear term elements <= upper_bound, where lower_bound and upper_bound: - Can form a singleton: lower_bound == upper_bound.Methods in com.google.ortools.linearsolver that return MPConstraintProto.BuilderModifier and TypeMethodDescriptionMPConstraintProto.Builder.addAllCoefficient(Iterable<? extends Double> values) Must be finite.MPConstraintProto.Builder.addAllVarIndex(Iterable<? extends Integer> values) var_index[i] is the variable index (w.r.t. to "variable" field of MPModelProto) of the i-th linear term involved in this constraint, and coefficient[i] is its coefficient.MPConstraintProto.Builder.addCoefficient(double value) Must be finite.MPModelProto.Builder.addConstraintBuilder()All the constraints appearing in the model.MPModelProto.Builder.addConstraintBuilder(int index) All the constraints appearing in the model.MPConstraintProto.Builder.addVarIndex(int value) var_index[i] is the variable index (w.r.t. to "variable" field of MPModelProto) of the i-th linear term involved in this constraint, and coefficient[i] is its coefficient.MPConstraintProto.Builder.clear()MPConstraintProto.Builder.clearCoefficient()Must be finite.MPConstraintProto.Builder.clearIsLazy()[Advanced usage: do not use this if you don't know what you're doing.]MPConstraintProto.Builder.clearLowerBound()lower_bound must be <= upper_bound.MPConstraintProto.Builder.clearName()The name of the constraint.MPConstraintProto.Builder.clearUpperBound()optional double upper_bound = 3 [default = inf];MPConstraintProto.Builder.clearVarIndex()var_index[i] is the variable index (w.r.t. to "variable" field of MPModelProto) of the i-th linear term involved in this constraint, and coefficient[i] is its coefficient.MPIndicatorConstraint.Builder.getConstraintBuilder()The constraint activated by the indicator variable.MPModelProto.Builder.getConstraintBuilder(int index) All the constraints appearing in the model.MPConstraintProto.Builder.mergeFrom(MPConstraintProto other) MPConstraintProto.Builder.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) MPConstraintProto.Builder.mergeFrom(com.google.protobuf.Message other) static MPConstraintProto.BuilderMPConstraintProto.newBuilder()static MPConstraintProto.BuilderMPConstraintProto.newBuilder(MPConstraintProto prototype) MPConstraintProto.newBuilderForType()protected MPConstraintProto.BuilderMPConstraintProto.newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) MPModelDeltaProto.Builder.putConstraintOverridesBuilderIfAbsent(int key) Constraints can be changed (or added) in the same way as variables, see above.MPConstraintProto.Builder.setCoefficient(int index, double value) Must be finite.MPConstraintProto.Builder.setIsLazy(boolean value) [Advanced usage: do not use this if you don't know what you're doing.]MPConstraintProto.Builder.setLowerBound(double value) lower_bound must be <= upper_bound.The name of the constraint.MPConstraintProto.Builder.setNameBytes(com.google.protobuf.ByteString value) The name of the constraint.MPConstraintProto.Builder.setUpperBound(double value) optional double upper_bound = 3 [default = inf];MPConstraintProto.Builder.setVarIndex(int index, int value) var_index[i] is the variable index (w.r.t. to "variable" field of MPModelProto) of the i-th linear term involved in this constraint, and coefficient[i] is its coefficient.MPConstraintProto.toBuilder()Methods in com.google.ortools.linearsolver that return types with arguments of type MPConstraintProto.BuilderModifier and TypeMethodDescriptionMPModelProto.Builder.getConstraintBuilderList()All the constraints appearing in the model.Methods in com.google.ortools.linearsolver with parameters of type MPConstraintProto.BuilderModifier and TypeMethodDescriptionMPModelProto.Builder.addConstraint(int index, MPConstraintProto.Builder builderForValue) All the constraints appearing in the model.MPModelProto.Builder.addConstraint(MPConstraintProto.Builder builderForValue) All the constraints appearing in the model.MPIndicatorConstraint.Builder.setConstraint(MPConstraintProto.Builder builderForValue) The constraint activated by the indicator variable.MPModelProto.Builder.setConstraint(int index, MPConstraintProto.Builder builderForValue) All the constraints appearing in the model.