Class

org.tropic.sparkor.linprog

LinearProblemSolver

Related Doc: package linprog

Permalink

abstract class LinearProblemSolver extends Solver

Abstract class extending Solver specific to solve linear optimization problems

Linear Supertypes
Solver, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LinearProblemSolver
  2. Solver
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LinearProblemSolver(_sc: SparkContext = null)

    Permalink

    _sc

    SparkContext

Type Members

  1. type NewSolutionFoundCallback = (Int, Solution, Solver) ⇒ Unit

    Permalink

    Callback function called every n iterations Int: number of iterations (n) after which the callback is called Solution: new solution after n iterations Solver: solver used for this problem

    Callback function called every n iterations Int: number of iterations (n) after which the callback is called Solution: new solution after n iterations Solver: solver used for this problem

    Definition Classes
    Solver
  2. type SolvingStartedCallback = (Solver) ⇒ Unit

    Permalink

    Callback function called when starting the solving process Solver: solver used for this problem

    Callback function called when starting the solving process Solver: solver used for this problem

    Definition Classes
    Solver
  3. type SolvingStoppedCallback = (Solution, Solver) ⇒ Unit

    Permalink

    Callback function called at the end of the solving process Solution: final solution of the problem Solver: solver used for this problem

    Callback function called at the end of the solving process Solution: final solution of the problem Solver: solver used for this problem

    Definition Classes
    Solver

Abstract Value Members

  1. abstract def _cleanupSolving(): Unit

    Permalink

    Cleans up the solving process

    Cleans up the solving process

    Definition Classes
    Solver
  2. abstract def _initSolving(): Unit

    Permalink

    Initializes the solving process

    Initializes the solving process

    Definition Classes
    Solver
  3. abstract def _solveNIters(iterCount: Int): (Int, Solution)

    Permalink

    Solves the problem within iterCount iterations

    Solves the problem within iterCount iterations

    iterCount

    number of maximum iterations

    returns

    Tuple (number of iterations to solve the problem, solution found)

    Definition Classes
    Solver
  4. abstract def getScore: Double

    Permalink

    Returns the score of the solution

    Returns the score of the solution

    returns

    score of the solution

    Definition Classes
    Solver

Concrete 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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  12. def isSolving: Boolean

    Permalink

    Returns a boolean to know if the problem is being solved

    Returns a boolean to know if the problem is being solved

    returns

    True if the problem is being solved, false otherwise

    Definition Classes
    Solver
  13. var lpb: LinearOptimizationProblem

    Permalink
    Attributes
    protected
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. var sc: SparkContext

    Permalink
    Definition Classes
    Solver
  18. def setNewSolutionFoundCallback(iterInterval: Int, callback: NewSolutionFoundCallback): Unit

    Permalink

    Sets the newSolutionFoundCallback function

    Sets the newSolutionFoundCallback function

    iterInterval

    maximum number of iterations before calling the callback

    callback

    newSolutionFoundCallback function

    Definition Classes
    Solver
  19. def setProblem(_lpb: LinearOptimizationProblem): Unit

    Permalink

    Sets the linear optimization problem to be solved

    Sets the linear optimization problem to be solved

    _lpb

    linear optimization problem to be solved

  20. def setSolvingStartedCallback(callback: SolvingStartedCallback): Unit

    Permalink

    Sets the solvingStartedCallback function

    Sets the solvingStartedCallback function

    callback

    solvingStartedCallback function

    Definition Classes
    Solver
  21. def setSolvingStoppedCallback(callback: SolvingStoppedCallback): Unit

    Permalink

    Sets the solvingStoppedCallback function

    Sets the solvingStoppedCallback function

    callback

    solvingStoppedCallback function

    Definition Classes
    Solver
  22. def solve(): Unit

    Permalink

    Solves the problem

    Solves the problem

    Definition Classes
    Solver
  23. def stopSolving(): Unit

    Permalink

    Stops solving the problem

    Stops solving the problem

    Definition Classes
    Solver
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

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

Inherited from Solver

Inherited from AnyRef

Inherited from Any

Ungrouped