Packages

case class MPModel(solverLib: SolverLib = SolverLib.oJSolver) extends StrictLogging with Product with Serializable

Defines the mathematical programming model we are about to solve.

solverLib

a solver library (default is ojSolver)

Linear Supertypes
Serializable, Serializable, Product, Equals, StrictLogging, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MPModel
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. StrictLogging
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MPModel(solverLib: SolverLib = SolverLib.oJSolver)

    solverLib

    a solver library (default is ojSolver)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def add(constraint: Constraint): MPConstraint

    constraint

    a constraint to add

    returns

    an MPConstraint

    See also

    optimus.algebra.Constraint

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def checkConstraints(tol: Double = 10e-6): Boolean

    Check if all constraints in the model are satisfied by the given solution.

    Check if all constraints in the model are satisfied by the given solution.

    tol

    a tolerance threshold

    returns

    true if all constraints are satisfied, false otherwise

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  8. val constraints: ArrayBuffer[MPConstraint]
    Attributes
    protected
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. def getStatus: SolutionStatus

    returns

    the status of the solution found for the model

  12. def getVarValue(idx: Int): Option[Double]

    idx

    the index of the variable

    returns

    the solution value for the variable

  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val logger: Logger
    Attributes
    protected
    Definition Classes
    StrictLogging
  15. def maximize(expression: Expression): MPModel

    expression

    an expression to maximize

    returns

    the model

  16. def minimize(expression: Expression): MPModel

    expression

    an expression to minimize

    returns

    the model

  17. var minimize: Boolean
    Attributes
    protected
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. var objective: Expression
    Attributes
    protected
  22. def objectiveValue: Double

    returns

    the objective value of the underlying solver

  23. def optimize(expression: Expression, minimize: Boolean): MPModel
    Attributes
    protected
  24. var reOptimize: Boolean
    Attributes
    protected
  25. def register(variable: MPVar): Int

    Register a variable to the model

    Register a variable to the model

    variable

    an MPVar to register

    returns

    the index of the variable

    See also

    optimus.optimization.model.MPVar

  26. def release(): Unit

    Release the memory of the underlying solver.

  27. var solution: HashMap[Int, Double]
    Attributes
    protected
  28. lazy val solver: MPSolver
    Attributes
    protected
  29. val solverLib: SolverLib
  30. def start(timeLimit: Int = Int.MaxValue, preSolve: PreSolve = DISABLED): Boolean

    Start the underlying solver.

    Start the underlying solver.

    timeLimit

    a time limit for the solver

    preSolve

    a pre solve strategy

    returns

    true if there is a solution, false otherwise

    See also

    optimus.optimization.enums.PreSolve

  31. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  32. def variable(idx: Int): Try[MPVar]

    idx

    the index of the variable

    returns

    the MPVar on the given index

    See also

    optimus.optimization.model.MPVar

  33. val variables: ArrayBuffer[MPVar]
    Attributes
    protected
  34. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  36. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from StrictLogging

Inherited from AnyRef

Inherited from Any

Ungrouped