QuantumCollocation.jl icon indicating copy to clipboard operation
QuantumCollocation.jl copied to clipboard

[Feature] Quadratic regularizer with nonzero baseline

Open andgoldschmidt opened this issue 2 years ago • 1 comments

Is your feature request related to a problem? Please describe. Sometimes we might want to keep controls or trajectories close to some baseline. Currently, $||a||_R$ is allowed, but the new feature should allow for $||a - a_0||_R$.

Describe the solution you'd like The QuadraticRegularizer objectives can be modified with an optional argument for the new feature. The objective function, gradient, and hessian can be modified to account for the shifted baseline.

andgoldschmidt avatar Nov 30 '23 17:11 andgoldschmidt

This has been implemented on a feature branch, but needs to be tested and merged into main.

Some problem templates may want to allow access to this feature via a keyword argument.

andgoldschmidt avatar Jan 24 '24 03:01 andgoldschmidt