Cashocs

Latest version: v2.5.0

Safety actively analyzes 724166 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 3

1.2.0

Not secure
-------------------------

* Users can now supply their own bilinear form (or scalar product) for the computation of the shape gradient, which is then used instead of the linear elasticity formulation. This is documented at `<https://cashocs.readthedocs.io/en/stable/user/demos/shape_optimization/demo_custom_scalar_product>`_.

* Added a curvature regularization term for shape optimization, which can be enabled via the config files, similarly to already implemented regularizations. This is documented at `<https://cashocs.readthedocs.io/en/stable/user/demos/shape_optimization/demo_regularization>`_.

* cashocs can now scale individual terms of the cost functional if this is desired. This allows for a more granular handling of problems with cost functionals consisting of multiple terms. This also extends to the regularizations for shape optimization, see `<https://cashocs.readthedocs.io/en/stable/user/demos/shape_optimization/demo_regularization>`_. This feature is documented at `<https://cashocs.readthedocs.io/en/stable/user/demos/shape_optimization/demo_scaling>`_.

* cashocs now uses the logging module to issue messages for the user. The level of verbosity can be controlled via :py:func:`cashocs.set_log_level`.

* New configuration file parameters:

* Section Regularization:

* :ini:`factor_curvature` can be used to specify the weight for the curvature regularization term.

* :ini:`use_relative_weights` is a boolean which specifies, whether the weights should be used as scaling factor in front of the regularization terms (if this is `False`), or whether they should be used to scale the regularization terms so that they have the prescribed value on the initial iteration (if this is `True`).

1.1.0

Not secure
-------------------------

* Added the functionality for cashocs to be used as a solver only, where users can specify their custom adjoint equations and (shape) derivatives for the optimization problems. This is documented at `<https://cashocs.readthedocs.io/en/stable/user/demos/cashocs_as_solver/index>`_.

* Using :py:func:`cashocs.create_config` is deprecated and replaced by :py:func:`cashocs.load_config`, but the former will still be supported.

* Configuration files are now not strictly necessary, but still very strongly recommended.

* New configuration file parameters:

* Section Output:

* :ini:`result_dir` can be used to specify where cashocs' output files should be placed.

1.0.0

Not secure
--------------------------

* Initial release of cashocs.

Page 3 of 3

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.