com.cra.figaro.experimental.structured

Problem

Related Doc: package structured

class Problem extends AnyRef

A Problem defines an inference problem to be solved. It includes a set of components directly contained in the problem. These components might have nested subproblems. It also refers to global components that are outside of this problem. The targets are elements that appear in this problem that are visible outside. They might be newly defined in this problem or they might be defined previously, but either way, they should not be eliminated.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Problem
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Problem(collection: ComponentCollection, targets: List[Element[_]] = List())

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[T](element: Element[T]): ProblemComponent[T]

    Add a component for the given element to this problem.

  5. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  6. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val collection: ComponentCollection

  8. var components: List[ProblemComponent[_]]

    Components directly defined in this problem.

  9. def contains(otherProblem: Problem): Boolean

    Determines if this problem contains the given problem.

    Determines if this problem contains the given problem. Any variables in the contained problem should also be eliminated when this problem is solved.

  10. final def eq(arg0: AnyRef): Boolean

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

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

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

    Definition Classes
    AnyRef → Any
  14. def global(variable: Variable[_]): Boolean

    Determines if a variable is in scope outside of this problem

  15. var globals: Set[ProblemComponent[_]]

    Components outside of this problem that appear in the solution to this problem.

  16. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  17. def internal(variable: Variable[_]): Boolean

    Determines if a variable is internal to this problem and should be eliminated

  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  22. def sample(): (Map[Element[_], _], Double)

    Produce a single weighted sample of all the elements in this problem.

  23. var solution: List[Factor[Double]]

    Factors over globals produced by solving the problem.

  24. def solve(algorithm: Solver, bounds: Bounds = Lower): Unit

    Solve the problem defined by all the components' current factors.

    Solve the problem defined by all the components' current factors. This will also set the globals accordingly. All components in this problem and contained subproblems should be eliminated in the solution.

  25. var solved: Boolean

    A flag indicating whether the problem has been solved.

  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  27. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped