MPVar

class MPVar extends Var

Mathematical programming model variable.

Value parameters:
lowerBound

the lower bound in the domain

model

the model that the variable belongs

symbol

the symbol of the variable

upperBound

the upper bound in the domain

class Var
trait LazyLogging
class Object
trait Matchable
class Any

Value members

Concrete methods

def bounds: (Double, Double)
Returns:

the bounds of the variable (lower, upper)

def isBinary: Boolean
Returns:

true if the variable is a binary integer variable (e.g. 0-1).

def isInteger: Boolean
Returns:

true if the variable is integer, false otherwise.

def isUnbounded: Boolean
Returns:

true if the variable is unbounded, false otherwise.

def toText: String
Returns:

a textual representation of the variable along its domain

def value: Option[Double]
Returns:

the value of the variable (integer rounded if the variable is integer).

Inherited methods

override def *(other: Expression): Expression
Definition Classes
Inherited from:
Var
def +(that: Expression): Expression
Inherited from:
Expression
def -(that: Expression): Expression
Inherited from:
Expression
Inherited from:
Expression
Inherited from:
Expression
Inherited from:
Expression
override def equals(obj: Any): Boolean
Value parameters:
obj

an object to compare

Returns:

true only in case the object is a variable and has identical index

Definition Classes
Var -> Expression -> Any
Inherited from:
Var
override def hashCode: Int
Returns:

the index of the variable

Definition Classes
Var -> Any
Inherited from:
Var
override def toString: String
Returns:

the symbol of the variable

Definition Classes
Var -> Expression -> Any
Inherited from:
Var
override def unary_-: Expression
Definition Classes
Inherited from:
Var

Concrete fields

val index: Int
val lowerBound: Double
override val symbol: String
override val terms: LongDoubleMap
val upperBound: Double

Inherited fields

val constant: Double
Inherited from:
Expression
@transient
lazy protected val logger: Logger
Inherited from:
LazyLogging