Java Reference

Java Reference

MPVariableProtoOrBuilder

Detailed Description

Definition at line 6 of file MPVariableProtoOrBuilder.java.

Public Member Functions

boolean hasLowerBound ()
 
double getLowerBound ()
 
boolean hasUpperBound ()
 optional double upper_bound = 2 [default = inf]; More...
 
double getUpperBound ()
 optional double upper_bound = 2 [default = inf]; More...
 
boolean hasObjectiveCoefficient ()
 
double getObjectiveCoefficient ()
 
boolean hasIsInteger ()
 
boolean getIsInteger ()
 
boolean hasName ()
 
java.lang.String getName ()
 
com.google.protobuf.ByteString getNameBytes ()
 
boolean hasBranchingPriority ()
 optional int32 branching_priority = 6 [default = 0]; More...
 
int getBranchingPriority ()
 optional int32 branching_priority = 6 [default = 0]; More...
 

Member Function Documentation

◆ getBranchingPriority()

int getBranchingPriority ( )

optional int32 branching_priority = 6 [default = 0];

Returns
The branchingPriority.

Implemented in MPVariableProto.Builder, and MPVariableProto.

◆ getIsInteger()

boolean 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 MPVariableProto.Builder, and MPVariableProto.

◆ getLowerBound()

double getLowerBound ( )
lower_bound must be <= upper_bound.

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

Returns
The lowerBound.

Implemented in MPVariableProto.Builder, and MPVariableProto.

◆ getName()

java.lang.String getName ( )
The name of the variable.

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

Returns
The name.

Implemented in MPVariableProto.Builder, and MPVariableProto.

◆ getNameBytes()

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

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

Returns
The bytes for name.

Implemented in MPVariableProto.Builder, and MPVariableProto.

◆ getObjectiveCoefficient()

double getObjectiveCoefficient ( )
The coefficient of the variable in the objective. Must be finite.

optional double objective_coefficient = 3 [default = 0];

Returns
The objectiveCoefficient.

Implemented in MPVariableProto.Builder, and MPVariableProto.

◆ getUpperBound()

double getUpperBound ( )

optional double upper_bound = 2 [default = inf];

Returns
The upperBound.

Implemented in MPVariableProto.Builder, and MPVariableProto.

◆ hasBranchingPriority()

boolean hasBranchingPriority ( )

optional int32 branching_priority = 6 [default = 0];

Returns
Whether the branchingPriority field is set.

Implemented in MPVariableProto.Builder, and MPVariableProto.

◆ hasIsInteger()

boolean 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 MPVariableProto.Builder, and MPVariableProto.

◆ hasLowerBound()

boolean hasLowerBound ( )
lower_bound must be <= upper_bound.

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

Returns
Whether the lowerBound field is set.

Implemented in MPVariableProto.Builder, and MPVariableProto.

◆ hasName()

boolean hasName ( )
The name of the variable.

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

Returns
Whether the name field is set.

Implemented in MPVariableProto.Builder, and MPVariableProto.

◆ hasObjectiveCoefficient()

boolean 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 MPVariableProto.Builder, and MPVariableProto.

◆ hasUpperBound()

boolean hasUpperBound ( )

optional double upper_bound = 2 [default = inf];

Returns
Whether the upperBound field is set.

Implemented in MPVariableProto.Builder, and MPVariableProto.


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