com.google.ortools.linearsolver.MPVariableProtoOrBuilder Maven / Gradle / Ivy
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ortools/linear_solver/linear_solver.proto
package com.google.ortools.linearsolver;
public interface MPVariableProtoOrBuilder extends
// @@protoc_insertion_point(interface_extends:operations_research.MPVariableProto)
com.google.protobuf.MessageOrBuilder {
/**
*
* lower_bound must be <= upper_bound.
*
*
* optional double lower_bound = 1 [default = -inf];
* @return Whether the lowerBound field is set.
*/
boolean hasLowerBound();
/**
*
* lower_bound must be <= upper_bound.
*
*
* optional double lower_bound = 1 [default = -inf];
* @return The lowerBound.
*/
double getLowerBound();
/**
* optional double upper_bound = 2 [default = inf];
* @return Whether the upperBound field is set.
*/
boolean hasUpperBound();
/**
* optional double upper_bound = 2 [default = inf];
* @return The upperBound.
*/
double getUpperBound();
/**
*
* The coefficient of the variable in the objective. Must be finite.
*
*
* optional double objective_coefficient = 3 [default = 0];
* @return Whether the objectiveCoefficient field is set.
*/
boolean hasObjectiveCoefficient();
/**
*
* The coefficient of the variable in the objective. Must be finite.
*
*
* optional double objective_coefficient = 3 [default = 0];
* @return The objectiveCoefficient.
*/
double getObjectiveCoefficient();
/**
*
* True if the variable is constrained to be integer.
* Ignored if MPModelProto::solver_type is *LINEAR_PROGRAMMING*.
*
*
* optional bool is_integer = 4 [default = false];
* @return Whether the isInteger field is set.
*/
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];
* @return The isInteger.
*/
boolean getIsInteger();
/**
*
* The name of the variable.
*
*
* optional string name = 5 [default = ""];
* @return Whether the name field is set.
*/
boolean hasName();
/**
*
* The name of the variable.
*
*
* optional string name = 5 [default = ""];
* @return The name.
*/
java.lang.String getName();
/**
*
* The name of the variable.
*
*
* optional string name = 5 [default = ""];
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional int32 branching_priority = 6 [default = 0];
* @return Whether the branchingPriority field is set.
*/
boolean hasBranchingPriority();
/**
* optional int32 branching_priority = 6 [default = 0];
* @return The branchingPriority.
*/
int getBranchingPriority();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy