Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

HybridEliminationTree

Open In Colab

A HybridEliminationTree is the hybrid equivalent of gtsam.GaussianEliminationTree. It represents the structure of sequential variable elimination performed on a HybridGaussianFactorGraph given a specific Ordering.

Each node in the tree corresponds to a variable being eliminated. The factors associated with that variable (from the original graph) are stored at that node. The tree structure reflects the dependencies created during sequential elimination: the parent of a node j is the variable i appearing earliest in the ordering such that the conditional P(j∣...)P(j | ...) resulting from eliminating j involves i.

Eliminating a HybridEliminationTree yields a HybridBayesNet.

While fundamental to sequential elimination, direct manipulation of HybridEliminationTree objects is less common than using the eliminateSequential method on a HybridGaussianFactorGraph, which uses this structure internally. It primarily serves to understand the computational flow of sequential elimination in the hybrid context.

Creating a HybridEliminationTree

It is constructed from a HybridGaussianFactorGraph and an Ordering.

Original HybridGaussianFactorGraph:
Loading...

Elimination Ordering: Position 0: x0, x1, d0


Resulting HybridEliminationTree:
-(d0)
- f[ (d0,2), ]
 Choice(d0) 
 0 Leaf  0.6
 1 Leaf  0.4
| -(x1)
| -
Hybrid [x1; d0]{
 Choice(d0) 
 0 Leaf :
  A[x1] = [
	1
]
  b = [ 1 ]
isotropic dim=1 sigma=0.5
scalar: 0

 1 Leaf :
  A[x1] = [
	1
]
  b = [ 5 ]
  Noise model: unit (1) 
scalar: 0

}
| | -(x0)
| | -
  A[x0] = [
	1
]
  b = [ 0 ]
  Noise model: unit (1) 
| | -
  A[x0] = [
	-1
]
  A[x1] = [
	1
]
  b = [ 1 ]
isotropic dim=1 sigma=0.316228

The primary use for elimination trees is in sequential elimination, yielding a HybridBayesNet. This is typically done via the eliminateSequential method of the factor graph itself.