Add support for global+local optimization algorithms.
[shared-tests] Synchronize