Class

optimus.optimization

LPSolve

Related Doc: package optimization

Permalink

final class LPSolve extends MPSolver

LpSolve solver.

Linear Supertypes
MPSolver, StrictLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LPSolve
  2. MPSolver
  3. StrictLogging
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LPSolve()

    Permalink

Type Members

  1. type Solver = LpSolve

    Permalink
    Definition Classes
    LPSolve → MPSolver

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. var _objectiveConstant: Double

    Permalink
    Attributes
    protected
  5. var _objectiveValue: Option[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    MPSolver
  6. var _solution: Array[Double]

    Permalink
    Attributes
    protected
    Definition Classes
    MPSolver
  7. var _solutionStatus: SolutionStatus

    Permalink
    Attributes
    protected
    Definition Classes
    MPSolver
  8. def addAllConstraints(constraints: ArrayBuffer[MPConstraint]): Unit

    Permalink
    Definition Classes
    MPSolver
  9. def addConstraint(mpConstraint: MPConstraint): Unit

    Permalink

    Add a mathematical programming constraint to the solver.

    Add a mathematical programming constraint to the solver.

    mpConstraint

    the mathematical programming constraint

    Definition Classes
    LPSolve → MPSolver
  10. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  11. def buildModel(numberOfVars: Int): Unit

    Permalink

    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
    LPSolve → MPSolver
  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  14. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getVarValue(colId: Int): Double

    Permalink

    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
    LPSolve → MPSolver
  18. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  19. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  20. val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    StrictLogging
  21. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  24. var numberOfCons: Int

    Permalink
    Attributes
    protected
    Definition Classes
    MPSolver
  25. def numberOfConstraints: Int

    Permalink
    Definition Classes
    MPSolver
  26. def numberOfVariables: Int

    Permalink
    Definition Classes
    MPSolver
  27. var numberOfVars: Int

    Permalink
    Attributes
    protected
    Definition Classes
    MPSolver
  28. def objectiveValue: Option[Double]

    Permalink
    Definition Classes
    MPSolver
  29. def release(): Unit

    Permalink

    Release the memory of this solver

    Release the memory of this solver

    Definition Classes
    LPSolve → MPSolver
  30. def setBinary(colId: Int): Unit

    Permalink

    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
    LPSolve → MPSolver
  31. def setBounds(colId: Int, lower: Double, upper: Double): Unit

    Permalink

    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
    LPSolve → MPSolver
  32. def setDoubleUnbounded(colId: Int): Unit

    Permalink
    Definition Classes
    MPSolver
  33. def setFloat(colId: Int): Unit

    Permalink

    Set the column/variable as a float variable

    Set the column/variable as a float variable

    colId

    position of the variable

    Definition Classes
    LPSolve → MPSolver
  34. def setInteger(colId: Int): Unit

    Permalink

    Set the column/variable as an integer variable

    Set the column/variable as an integer variable

    colId

    position of the variable

    Definition Classes
    LPSolve → MPSolver
  35. def setObjective(objective: Expression, minimize: Boolean): Unit

    Permalink

    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
    LPSolve → MPSolver
  36. def setTimeout(limit: Int): Unit

    Permalink

    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
    LPSolve → MPSolver
  37. def setUnboundLowerBound(colId: Int): Unit

    Permalink

    Set lower bound to unbounded (infinite)

    Set lower bound to unbounded (infinite)

    colId

    position of the variable

    Definition Classes
    LPSolve → MPSolver
  38. def setUnboundUpperBound(colId: Int): Unit

    Permalink

    Set upper bound to unbounded (infinite)

    Set upper bound to unbounded (infinite)

    colId

    position of the variable

    Definition Classes
    LPSolve → MPSolver
  39. def solution: Array[Double]

    Permalink
    Definition Classes
    MPSolver
  40. def solutionStatus: SolutionStatus

    Permalink
    Definition Classes
    MPSolver
  41. def solve(preSolve: PreSolve = PreSolve.DISABLED): SolutionStatus

    Permalink

    Solve the problem.

    Solve the problem.

    returns

    status code indicating the nature of the solution

    Definition Classes
    LPSolve → MPSolver
  42. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. var underlyingSolver: Solver

    Permalink
    Attributes
    protected
    Definition Classes
    LPSolve → MPSolver
  45. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from MPSolver

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped