This PR includes a new class for piece-wise constant control functions called BSpline0. It also includes a new penalty term that suppresses sudden variations in the control amplitude, when the BSpline0 basis is used during optimization. Functionality has also been added to use the new functionality from the Python interface, see examples/pythoninterface/example_spline0.py.
This PR includes a new class for piece-wise constant control functions called BSpline0. It also includes a new penalty term that suppresses sudden variations in the control amplitude, when the BSpline0 basis is used during optimization. Functionality has also been added to use the new functionality from the Python interface, see examples/pythoninterface/example_spline0.py.