Class

com.cra.figaro.algorithm.structured

Problem

Related Doc: package structured

Permalink

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
Visibility
  1. Public
  2. All

Instance Constructors

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

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

    Permalink

    Add a component for the given element to this problem.

  5. final def asInstanceOf[T0]: T0

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

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

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

    Permalink

    Components directly defined in this problem.

  9. val componentsToVisit: Set[ProblemComponent[_]]

    Permalink
  10. def contains(otherProblem: Problem): Boolean

    Permalink

    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.

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

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

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

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

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

    Permalink

    Determines if a variable is in scope outside of this problem

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

    Permalink

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

  17. def hashCode(): Int

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

    Permalink

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

  19. final def isInstanceOf[T0]: Boolean

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

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

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

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

    Permalink

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

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

    Permalink

    Factors over globals produced by solving the problem.

  25. def solve(strategy: SolvingStrategy, bounds: Bounds = Lower): Unit

    Permalink

    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.

  26. var solved: Boolean

    Permalink

    A flag indicating whether the problem has been solved.

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

    Permalink
    Definition Classes
    AnyRef
  28. val targets: List[Element[_]]

    Permalink
  29. def toString(): String

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped