Core Module

Objective

An objective function to optimize (see theseus.Objective).

Cost Function

A term in the objective function as a function of one or more Variable objects.

Variable

A variable in the optimization problem. Variable objects are named wrappers for torch tensors.

Cost Weight

A weight for cost functions.

Reference

theseus.Objective

An objective function to optimize.

theseus.Objective.add

Adds a cost function to the objective.

theseus.Objective.error

Evaluates the error vector.

theseus.Objective.error_metric

Aggregates all cost function errors into a (batched) scalar objective.

theseus.Objective.update

Updates all variables with the given input tensor dictionary.

theseus.Objective.retract_vars_sequence

Retracts an ordered sequence of variables.

theseus.CostFunction

A cost function in a differentiable optimization problem.

theseus.Variable

A variable in a differentiable optimization problem.