breeze.optimize.linear

LinearProgram

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
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. LinearProgram
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LinearProgram()

Type Members

  1. case class Binary(name: String = "x_".+(LinearProgram.this.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_".+(LinearProgram.this.nextId)) extends Variable with Product with Serializable

  5. sealed trait Problem extends AnyRef

  6. case class Real(name: String = "x_".+(LinearProgram.this.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: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. object EQ extends Relation with Product with Serializable

  7. object GTE extends Relation with Product with Serializable

  8. object LTE extends Relation with Product with Serializable

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def clone(): AnyRef

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

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

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

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

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

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

    Definition Classes
    Any
  17. def maximize(objective: Problem)(implicit solver: Solver): Result

  18. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  19. final def notify(): Unit

    Definition Classes
    AnyRef
  20. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  22. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped