Functions
gtsam.utils.logging_optimizer Namespace Reference

Functions

def gtsam_optimize (optimizer, params, hook)
 
def optimize (optimizer, check_convergence, hook)
 

Detailed Description

Optimization with logging via a hook.
Author: Jing Wu and Frank Dellaert

Function Documentation

def gtsam.utils.logging_optimizer.gtsam_optimize (   optimizer,
  params,
  hook 
)
Given an optimizer and params, iterate until convergence.
    After each iteration, hook(optimizer) is called.
    After the function, use values and errors to get the result.
    Arguments:
            optimizer {NonlinearOptimizer} -- Nonlinear optimizer
            params {NonlinearOptimizarParams} -- Nonlinear optimizer parameters
            hook -- hook function to record the error

Definition at line 37 of file logging_optimizer.py.

def gtsam.utils.logging_optimizer.optimize (   optimizer,
  check_convergence,
  hook 
)
Given an optimizer and a convergence check, iterate until convergence.
    After each iteration, hook(optimizer, error) is called.
    After the function, use values and errors to get the result.
    Arguments:
        optimizer (T): needs an iterate and an error function.
        check_convergence: T * float * float -> bool
        hook -- hook function to record the error

Definition at line 11 of file logging_optimizer.py.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:59:10