Uses of Class
com.google.ortools.linearsolver.MPVariableProto.Builder
Packages that use MPVariableProto.Builder
-
Uses of MPVariableProto.Builder in com.google.ortools.linearsolver
Subclasses with type arguments of type MPVariableProto.Builder in com.google.ortools.linearsolverModifier and TypeClassDescriptionstatic final classA variable is always constrained in the form: lower_bound <= x <= upper_bound where lower_bound and upper_bound: - Can form a singleton: x = constant = lower_bound = upper_boundMethods in com.google.ortools.linearsolver that return MPVariableProto.BuilderModifier and TypeMethodDescriptionMPModelProto.Builder.addVariableBuilder()All the variables appearing in the model.MPModelProto.Builder.addVariableBuilder(int index) All the variables appearing in the model.MPVariableProto.Builder.clear()MPVariableProto.Builder.clearBranchingPriority()optional int32 branching_priority = 6 [default = 0];MPVariableProto.Builder.clearIsInteger()True if the variable is constrained to be integer.MPVariableProto.Builder.clearLowerBound()lower_bound must be <= upper_bound.MPVariableProto.Builder.clearName()The name of the variable.MPVariableProto.Builder.clearObjectiveCoefficient()The coefficient of the variable in the objective.MPVariableProto.Builder.clearUpperBound()optional double upper_bound = 2 [default = inf];MPModelProto.Builder.getVariableBuilder(int index) All the variables appearing in the model.MPVariableProto.Builder.mergeFrom(MPVariableProto other) MPVariableProto.Builder.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) MPVariableProto.Builder.mergeFrom(com.google.protobuf.Message other) static MPVariableProto.BuilderMPVariableProto.newBuilder()static MPVariableProto.BuilderMPVariableProto.newBuilder(MPVariableProto prototype) MPVariableProto.newBuilderForType()protected MPVariableProto.BuilderMPVariableProto.newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) MPModelDeltaProto.Builder.putVariableOverridesBuilderIfAbsent(int key) The variable protos listed here will override (via MergeFrom()) the ones in the baseline model: you only need to specify the fields that change.MPVariableProto.Builder.setBranchingPriority(int value) optional int32 branching_priority = 6 [default = 0];MPVariableProto.Builder.setIsInteger(boolean value) True if the variable is constrained to be integer.MPVariableProto.Builder.setLowerBound(double value) lower_bound must be <= upper_bound.The name of the variable.MPVariableProto.Builder.setNameBytes(com.google.protobuf.ByteString value) The name of the variable.MPVariableProto.Builder.setObjectiveCoefficient(double value) The coefficient of the variable in the objective.MPVariableProto.Builder.setUpperBound(double value) optional double upper_bound = 2 [default = inf];MPVariableProto.toBuilder()Methods in com.google.ortools.linearsolver that return types with arguments of type MPVariableProto.BuilderModifier and TypeMethodDescriptionMPModelProto.Builder.getVariableBuilderList()All the variables appearing in the model.Methods in com.google.ortools.linearsolver with parameters of type MPVariableProto.BuilderModifier and TypeMethodDescriptionMPModelProto.Builder.addVariable(int index, MPVariableProto.Builder builderForValue) All the variables appearing in the model.MPModelProto.Builder.addVariable(MPVariableProto.Builder builderForValue) All the variables appearing in the model.MPModelProto.Builder.setVariable(int index, MPVariableProto.Builder builderForValue) All the variables appearing in the model.