SolverVariable
class SolverVariable : Comparable
Represents a given variable used in the linear expression solver.
Summary
Nested types |
|---|
enum SolverVariable.TypeType of variables |
Constants |
|
|---|---|
const Int |
STRENGTH_BARRIER = 6 |
const Int |
|
const Int |
|
const Int |
STRENGTH_FIXED = 8 |
const Int |
STRENGTH_HIGH = 3 |
const Int |
STRENGTH_HIGHEST = 4 |
const Int |
STRENGTH_LOW = 1 |
const Int |
STRENGTH_MEDIUM = 2 |
const Int |
STRENGTH_NONE = 0 |
Public constructors |
|---|
SolverVariable(name: String!, type: SolverVariable.Type!)Base constructor |
SolverVariable(type: SolverVariable.Type!, prefix: String!) |
Public functions |
|
|---|---|
Unit |
|
Int |
compareTo(v: SolverVariable!) |
String! |
getName()Accessor for the name |
Unit |
removeFromRow(row: ArrayRow!) |
Unit |
reset() |
Unit |
setFinalValue(system: LinearSystem!, value: Float) |
Unit |
|
Unit |
setSynonym( |
Unit |
setType(type: SolverVariable.Type!, prefix: String!) |
String! |
toString()Override the toString() method to display the variable |
Unit |
updateReferencesWithNewDefinition( |
Constants
Public constructors
SolverVariable
Added in 1.1.1
SolverVariable(name: String!, type: SolverVariable.Type!)
Base constructor
| Parameters | |
|---|---|
name: String! |
the variable name |
type: SolverVariable.Type! |
the type of the variable |
Public functions
getName
Added in 1.1.1
fun getName(): String!
Accessor for the name
| Returns | |
|---|---|
String! |
the name of the variable |
setSynonym
Added in 1.1.1
fun setSynonym(
system: LinearSystem!,
synonymVariable: SolverVariable!,
value: Float
): Unit
updateReferencesWithNewDefinition
Added in 1.1.1
fun updateReferencesWithNewDefinition(
system: LinearSystem!,
definition: ArrayRow!
): Unit