Class/Object

breeze.optimize.linear

LinearProgram

Related Docs: object LinearProgram | package linear

Permalink

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()

    Permalink

Type Members

  1. case class Binary(name: String = "x_" + nextId) extends Variable with Product with Serializable

    Permalink
  2. sealed trait Constraint extends AnyRef

    Permalink
  3. sealed trait Expression extends Problem

    Permalink

    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

    Permalink
  5. sealed trait Problem extends AnyRef

    Permalink
  6. case class Real(name: String = "x_" + nextId) extends Variable with Product with Serializable

    Permalink
  7. sealed abstract class Relation extends AnyRef

    Permalink
  8. case class Result(result: DenseVector[Double], problem: Problem) extends Product with Serializable

    Permalink
  9. sealed trait Variable extends Expression

    Permalink

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. object EQ extends Relation with Product with Serializable

    Permalink
  5. object GTE extends Relation with Product with Serializable

    Permalink
  6. object LTE extends Relation with Product with Serializable

    Permalink
  7. final def asInstanceOf[T0]: T0

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

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

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

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

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

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

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

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

    Permalink
  16. def minimize(objective: Problem)(implicit solver: Solver): Result

    Permalink
  17. final def ne(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped