Google OR-Tools v9.9
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
com.google.ortools.linearsolver.MPVariableProtoOrBuilder Interface Reference
Inheritance diagram for com.google.ortools.linearsolver.MPVariableProtoOrBuilder:
com.google.ortools.linearsolver.MPVariableProto com.google.ortools.linearsolver.MPVariableProto.Builder

Public Member Functions

boolean hasLowerBound ()
 
double getLowerBound ()
 
boolean hasUpperBound ()
 
double getUpperBound ()
 
boolean hasObjectiveCoefficient ()
 
double getObjectiveCoefficient ()
 
boolean hasIsInteger ()
 
boolean getIsInteger ()
 
boolean hasName ()
 
java.lang.String getName ()
 
com.google.protobuf.ByteString getNameBytes ()
 
boolean hasBranchingPriority ()
 
int getBranchingPriority ()
 

Detailed Description

Definition at line 7 of file MPVariableProtoOrBuilder.java.

Member Function Documentation

◆ getBranchingPriority()

int com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getBranchingPriority ( )

optional int32 branching_priority = 6 [default = 0];

Returns
The branchingPriority.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ getIsInteger()

boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getIsInteger ( )
True if the variable is constrained to be integer.
Ignored if MPModelProto::solver_type is *LINEAR_PROGRAMMING*.

optional bool is_integer = 4 [default = false];

Returns
The isInteger.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ getLowerBound()

double com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getLowerBound ( )
lower_bound must be <= upper_bound.

optional double lower_bound = 1 [default = -inf];

Returns
The lowerBound.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ getName()

java.lang.String com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getName ( )
The name of the variable.

optional string name = 5 [default = ""];

Returns
The name.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ getNameBytes()

com.google.protobuf.ByteString com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getNameBytes ( )
The name of the variable.

optional string name = 5 [default = ""];

Returns
The bytes for name.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ getObjectiveCoefficient()

double com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getObjectiveCoefficient ( )
The coefficient of the variable in the objective. Must be finite.

optional double objective_coefficient = 3 [default = 0];

Returns
The objectiveCoefficient.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ getUpperBound()

double com.google.ortools.linearsolver.MPVariableProtoOrBuilder.getUpperBound ( )

optional double upper_bound = 2 [default = inf];

Returns
The upperBound.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ hasBranchingPriority()

boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasBranchingPriority ( )

optional int32 branching_priority = 6 [default = 0];

Returns
Whether the branchingPriority field is set.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ hasIsInteger()

boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasIsInteger ( )
True if the variable is constrained to be integer.
Ignored if MPModelProto::solver_type is *LINEAR_PROGRAMMING*.

optional bool is_integer = 4 [default = false];

Returns
Whether the isInteger field is set.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ hasLowerBound()

boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasLowerBound ( )
lower_bound must be <= upper_bound.

optional double lower_bound = 1 [default = -inf];

Returns
Whether the lowerBound field is set.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ hasName()

boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasName ( )
The name of the variable.

optional string name = 5 [default = ""];

Returns
Whether the name field is set.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ hasObjectiveCoefficient()

boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasObjectiveCoefficient ( )
The coefficient of the variable in the objective. Must be finite.

optional double objective_coefficient = 3 [default = 0];

Returns
Whether the objectiveCoefficient field is set.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.

◆ hasUpperBound()

boolean com.google.ortools.linearsolver.MPVariableProtoOrBuilder.hasUpperBound ( )

optional double upper_bound = 2 [default = inf];

Returns
Whether the upperBound field is set.

Implemented in com.google.ortools.linearsolver.MPVariableProto, and com.google.ortools.linearsolver.MPVariableProto.Builder.


The documentation for this interface was generated from the following file: