class LinearProgram extends AnyRef

DSL for LinearPrograms. Not thread-safe per instance. Make multiple instances

Basic example:

val lp = new LP
import lp._
val x = new Positive("x")
val y = new Positive("y")

val result = maximize ( (3 * x+ 4 * y)
subjectTo( x <= 3, y <= 1))

result.valueOf(x) // 3
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LinearProgram
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LinearProgram()

Type Members

  1. case class Binary(name: String = "x_" + nextId) extends Variable with Product with Serializable
  2. sealed trait Constraint extends AnyRef
  3. sealed trait Expression extends Problem

    Anything that can be built up from adding/subtracting/dividing and multiplying by constants

  4. case class Integer(name: String = "x_" + nextId) extends Variable with Product with Serializable
  5. sealed trait Problem extends AnyRef
  6. case class Real(name: String = "x_" + nextId) extends Variable with Product with Serializable
  7. sealed abstract class Relation extends AnyRef
  8. case class Result(result: DenseVector[Double], problem: Problem) extends Product with Serializable
  9. sealed trait Variable extends Expression

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate() @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def maximize(objective: Problem)(implicit solver: Solver): Result
  12. def minimize(objective: Problem)(implicit solver: Solver): Result
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  20. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. object EQ extends Relation with Product with Serializable
  22. object GTE extends Relation with Product with Serializable
  23. object LTE extends Relation with Product with Serializable

Deprecated Value Members

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

    (Since version ) see corresponding Javadoc for more information.

Inherited from AnyRef

Inherited from Any

Ungrouped