final class oJSolver extends MPSolver
oj solver.
- Alphabetic
- By Inheritance
- oJSolver
- MPSolver
- StrictLogging
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new oJSolver()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var _objectiveConstant: Double
- Attributes
- protected
- val _objectiveValue: Option[Double]
- Attributes
- protected
- Definition Classes
- MPSolver
- val _solution: Array[Double]
- Attributes
- protected
- Definition Classes
- MPSolver
- val _solutionStatus: SolutionStatus
- Attributes
- protected
- Definition Classes
- MPSolver
- def addAllConstraints(constraints: ArrayBuffer[MPConstraint]): Unit
- Definition Classes
- MPSolver
- def addConstraint(mpConstraint: MPConstraint): Unit
Add a mathematical programming constraint to the solver.
Add a mathematical programming constraint to the solver.
- mpConstraint
the mathematical programming constraint
- Definition Classes
- oJSolver → MPSolver
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def buildModel(numberOfVars: Int): Unit
Problem builder, should configure the solver and append mathematical model variables and constraints.
Problem builder, should configure the solver and append mathematical model variables and constraints.
- numberOfVars
number of variables in the model
- Definition Classes
- oJSolver → MPSolver
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def getVarValue(colId: Int): Double
Get value of the variable in the specified position.
Get value of the variable in the specified position. Solution should exist in order for a value to exist.
- colId
position of the variable
- returns
the value of the variable in the solution
- Definition Classes
- oJSolver → MPSolver
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logger: Logger
- Attributes
- protected
- Definition Classes
- StrictLogging
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val numberOfCons: Int
- Attributes
- protected
- Definition Classes
- MPSolver
- def numberOfConstraints: Int
- Definition Classes
- MPSolver
- def numberOfVariables: Int
- Definition Classes
- MPSolver
- val numberOfVars: Int
- Attributes
- protected
- Definition Classes
- MPSolver
- def objectiveValue: Option[Double]
- Definition Classes
- MPSolver
- def release(): Unit
Release the memory of this solver
Release the memory of this solver
- Definition Classes
- oJSolver → MPSolver
- def setBinary(colId: Int): Unit
Set the column / variable as an binary integer variable
Set the column / variable as an binary integer variable
- colId
position of the variable
- Definition Classes
- oJSolver → MPSolver
- def setBounds(colId: Int, lower: Double, upper: Double): Unit
Set bounds of variable in the specified position.
Set bounds of variable in the specified position.
- colId
position of the variable
- lower
domain lower bound
- upper
domain upper bound
- Definition Classes
- oJSolver → MPSolver
- def setDoubleUnbounded(colId: Int): Unit
- Definition Classes
- MPSolver
- def setFloat(colId: Int): Unit
Set the column/variable as a float variable
Set the column/variable as a float variable
- colId
position of the variable
- Definition Classes
- oJSolver → MPSolver
- def setInteger(colId: Int): Unit
Set the column/variable as an integer variable
Set the column/variable as an integer variable
- colId
position of the variable
- Definition Classes
- oJSolver → MPSolver
- def setObjective(objective: Expression, minimize: Boolean): Unit
Add objective expression to be optimized by the solver.
Add objective expression to be optimized by the solver.
- objective
the expression to be optimized
- minimize
flag for minimization instead of maximization
- Definition Classes
- oJSolver → MPSolver
- def setTimeout(limit: Int): Unit
Set a time limit for solver optimization.
Set a time limit for solver optimization. After the limit is reached the solver stops running.
- limit
the time limit
- Definition Classes
- oJSolver → MPSolver
- def setUnboundLowerBound(colId: Int): Unit
Set upper bound to unbounded (infinite)
Set upper bound to unbounded (infinite)
- colId
position of the variable
- Definition Classes
- oJSolver → MPSolver
- def setUnboundUpperBound(colId: Int): Unit
Set lower bound to unbounded (infinite)
Set lower bound to unbounded (infinite)
- colId
position of the variable
- Definition Classes
- oJSolver → MPSolver
- def solution: Array[Double]
- Definition Classes
- MPSolver
- def solutionStatus: SolutionStatus
- Definition Classes
- MPSolver
- def solve(preSolve: PreSolve = PreSolve.DISABLED): SolutionStatus
Solve the problem.
Solve the problem.
- returns
status code indicating the nature of the solution
- Definition Classes
- oJSolver → MPSolver
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- var underlyingSolver: Solver
- Attributes
- protected
- Definition Classes
- oJSolver → MPSolver
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated