# \[ANN\] Manopt.jl

**URL:** <https://discourse.julialang.org/t/ann-manopt-jl/24906>\
**Category:** Package Announcements\
**Tags:** optimization, math, manifolds\
**Created:** [June 4, 2019, 4:38am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906 "2019-06-04T04:38:15Z")\
**Posts on this page:** 17\
**Page:** 3

<div class="post-metadata">

**Author:** ![mateuszbaran](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mateuszbaran/32/221842_2.png) [@mateuszbaran](https://discourse.julialang.org/u/mateuszbaran)\
**Post date:** [May 7, 2023, 9:39am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/41 "2023-05-07T09:39:48Z")

</div>

> [@kellertuer](#):
>
> For a different subsolver, you need to mainly mimic what Steinhaug-Toiint does
> 
> - define a new solver state
> - implement `initialize_solver!(mp::AbstractManoptProblem, s::MyNewState)` (if theree is something to do, there is a default “do-nothing” available)
> - implement `step_solver!(mp::AbstractManoptProblem, s::MyNewState)`
> - implement `get_solver_result(s:: MyNewState)` (if the results is not stored in `s.p`)

After the change Manopt’s trust region solver still assumes that the subsolver has a few specific fields (`p`, `η`, `trust_region_radius`, `Hη`, `X`, `ηPη` and `δHδ`) so I’d suggest copying existing `TruncatedConjugateGradientState` and either follow @kellertuer 's suggestions or just implement `solve!(::AbstractManoptProblem, ::MyNewState)` that does all the solving if you don’t want to interact with Manopt’s iteration protocol.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [May 22, 2023, 10:51am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/42 "2023-05-22T10:51:42Z")

</div>

📢 Manopt.jl v0.4.21 🏔 Count and Cache everything (from the objective)!  
See the tutorial at 📚 [Count and use a Cache · Manopt.jl](https://manoptjl.org/stable/tutorials/CountAndCache/)

This version also introduces the new weak dependencies feature of Julia 1.9 to Manopt.jl, such that Manopt.jl now loads 3x faster.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [September 2, 2023, 4:56pm UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/43 "2023-09-02T16:56:47Z")

</div>

🔈 Manopt.jl v0.4.34 🏔 Euclidean Gradient conversion.

introduces the keyword `objective_type=:Euclidean` to all solvers,  
which allows you to provide a Euclidean cost, gradient, Hessian in the embedding of a manifold.  
We then perform the conversion to Riemannian gradient and Hessian automatically in Manopt.jl  
See [https://manoptjl.org/stable/tutorials/EmbeddingObjectives/](https://manoptjl.org/stable/tutorials/EmbeddingObjectives/) for a tutorial / example.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [September 5, 2023, 9:14am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/44 "2023-09-05T09:14:55Z")

</div>

To follow up ton the Apache et al. paper – that might be challenging on manifolds – at least not straight forward – at require the metric tensor and its eigenvalues probably.

Concerning the ARC that I mentioned, it is now available at [Adaptive Regularization with Cubics · Manopt.jl](https://manoptjl.org/stable/solvers/adaptive-regularization-with-cubics/).

---

<div class="post-metadata">

**Author:** ![fastwave](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fastwave/32/14725_2.png) [@fastwave](https://discourse.julialang.org/u/fastwave)\
**Post date:** [September 5, 2023, 11:40am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/45 "2023-09-05T11:40:48Z")

</div>

Wow, I am quite impressed. I will try the ARC solver once I have time again.

I can see that the unit tests, e.g. here: [https://github.com/JuliaManifolds/Manopt.jl/blob/b574950cf349013232e8ab07fa355046bd90e8d3/test/solvers/test\_adaptive\_regularization\_with\_cubics.jl](https://github.com/JuliaManifolds/Manopt.jl/blob/b574950cf349013232e8ab07fa355046bd90e8d3/test/solvers/test_adaptive_regularization_with_cubics.jl)  
use the same optimisation problems. Would you have any intuition about how various methods perform relative to each other, and whether that is consistent with MATLAB implementation?

I specifically think about this figure:  
[https://link.springer.com/article/10.1007/s10107-020-01505-1/figures/1](https://link.springer.com/article/10.1007/s10107-020-01505-1/figures/1)

Thanks,  
Robert

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [September 5, 2023, 12:50pm UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/46 "2023-09-05T12:50:20Z")

</div>

The implementation is based on a Master thesis (which is – not yet – publicly available but at some point will), which specifically compared the Julia implementation (said student did) with the Matlab implementation.

They are – according to the experiments in the thesis – very consistent in the results, just that we might have a small memory disadvantage for high-dimensional problems, that we could not completely narrow down yet (edit: It seemed to be that Maltab’s `\` was sometimes faster than our linear system solver from LinearAlgebra, but we could not completely find out why).

For the tests I mainly use problems that are easy to compare and check that the methods work correctly. Those are not meant necessarily to compare methods.

Comparing methods is also a bit delicate, since it depends _a lot_ on the application, so the intuition is not that easy, since it really depends on the individual problem.

Compared to the figure, we do have Lanczos and CG and also GD as sub solvers available in Manopt.jl – I wrote CG and GD based on the students implementation.

_edit:_ and concerning the comparison, also keep in mind that this is not a professional software – so I can not just do such a comparison. If you for example have a student to write a thesis on such a comparison, I can surely help, but otherwise, the open source package also gets better with other peoples contributions.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [November 2, 2023, 11:10am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/47 "2023-11-02T11:10:26Z")

</div>

The newest version Manopt 0.4.41 has now all sub solvers decoupled, that is, also for Trust Regions one can no prove alternative solvers for the sub problem – which is also rewritten to work on the tangent space.

@fastwave so if we now would have a paper describing a Lanczos method on tangent spaces, we could implement that. However, the challenge is to work independent of coordinates, i.e. only using inner products, since coordinates are a bit hard to keep track of. For example on the 2-Sphere each tangent space is 2-dimensional but the vectors are a subset of R3 – so a plane. Then for coordinates we would need a basis of that space first. Basis-free approaches are therefore preferable.

I looked a bit into this and until now I have not yet found a good reference for e.g. Lanczos for Trust Regions on manifolds.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [November 6, 2023, 12:07pm UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/48 "2023-11-06T12:07:35Z")

</div>

The new version

## Manopt.jl 0.4.42

introduces an extension to [Jump.jl](http://jump.dev), so that you can use Manifolds based on ManifoldsBase.jl (e.g. from Manifolds.jl) and algorithms from Manopt.jl within the JuMP modelling.  
It is realized as a weak dependency, so though MOI.jl is a bit heavy in loading, this does not affect Manopt.jl in general.

See [https://manoptjl.org/dev/extensions.html#JuMP.jl](https://manoptjl.org/dev/extensions.html#JuMP.jl) for a first small example and a documentation of the interface. Thanks @blegat for starting the idea and implementing this!

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [March 3, 2024, 1:15pm UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/49 "2024-03-03T13:15:22Z")

</div>

Our newest version

## Manopt.jl 0.4.54

introduces two new non-smooth solvers

- [The Convex Bundle Method](https://manoptjl.org/stable/solvers/convex_bundle_method/)
- [The Proximal Bundle Method](https://manoptjl.org/stable/solvers/proximal_bundle_method/)

where the first is the reference implementation for a [recently published paper](https://arxiv.org/abs/2402.13670) of the same title.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [April 8, 2024, 8:09am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/50 "2024-04-08T08:09:37Z")

</div>

Our newest version

# Manopt.jl 0.4.59

introduces a Riemannian variant of the [Covariance matrix adaptation evolutionary strategy](https://manoptjl.org/stable/solvers/cma_es/#Covariance-matrix-adaptation-evolutionary-strategy) (CMA-ES) algorithm! Thanks @mateuszbaran for implementing that.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [April 10, 2024, 9:14am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/51 "2024-04-10T09:14:07Z")

</div>

An already the next nice version

## Manopt.jl 0.4.60

Introduces the possibility to extend recording to the subsolver; to be precise, it could of course record things before itself, but that was lost after every subsolver call.

Now, for example with

```julia-auto
s1 = exact_penalty_method(
    M2,
    f2,
    grad_f2,
    p0;
    g = g,
    grad_g = grad_g,
    record = [:Iteration, :Cost, :Subsolver],
    sub_kwargs = [:record => [:Iteration, :Cost]],
    return_state=true,
);

```

The `:Subsolver` keyword states, that the (main) solver shall record (take over) the recording from the subsolver in every step. For more examples see the new section at [Record values · Manopt.jl](https://manoptjl.org/stable/tutorials/HowToRecord/#Recording-from-a-Subsolver).

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [June 8, 2024, 8:44pm UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/52 "2024-06-08T20:44:35Z")

</div>

# Manopt.jl 0.4.64

Introduces a rewrite of the constrained objective. Now

- any constraint function can either be a single function or a vector of functions
- its gradient can be the same two options, but each of these can now map into a vector of tangent spaces of the tangent space of a power manifold (using a new `range=` positional keyword specifying the power manifold representation).
- its Hessian can now also be provided

Furthermore the access functions for inequality and equality constraints (and their gradients and hessians) like `get_grad_equality_constraint(M, o, p, i)` interface accepts more than just a single index `i`, namely any range, bit vectors or even just `:` for all;  
hence both algorithms and implementations of constraints can benefit from more flexible implementations.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [August 2, 2024, 5:09pm UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/53 "2024-08-02T17:09:38Z")

</div>

# Manopt.jl 0.4.68

introduces the [Interior Point Newton Method](https://manoptjl.org/stable/solvers/interior_point_Newton/)  
to solve constrained problems on Riemannian manifolds.  
We also introduce the [conjugate residual](https://manoptjl.org/stable/solvers/conjugate_residual/) solver for the sub problem as well as several method to work with and evaluate the KKT conditions.  
Both follow the[paper by Lai & Yoshise](https://doi.org/10.1007/s10957-024-02403-8).

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [August 29, 2024, 6:39am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/54 "2024-08-29T06:39:16Z")

</div>

# 🏔 Manopt.jl 0.5.0

This breaking release is mainly concerned with stability and usability

- all interfaces have been unified, especially orders of arguments and names of keywords
- for gradient rules like CG or average gradient, and stepsizes like the Armijo linesearch, specifying the manifold (yet again) is no longer necessary thanks to an idea from @bvdmitri – and of course for the nice discussions at JuliaCon!
- the documentation has been reworked to using a glossary internally
- we now use Aqua.jl to avoid ambiguities
- we are back to supporting Julia 1.6 again after this rework as well.

For a full list of changes, especially everything to adapt for the breaking ones see the [Changelog.md](https://github.com/JuliaManifolds/Manopt.jl/blob/ba6979e47ef26e4c1780bde33f10177dc0bf5c93/Changelog.md).

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [November 5, 2025, 9:25am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/55 "2025-11-05T09:25:41Z")

</div>

# 🏔 Manopt.jl 0.5.26

In the newest release, we have a new solver, that allows to solve nonlinear equations on vector bundles, the [vector bundle Newton method](https://manoptjl.org/stable/solvers/vectorbundle_newton/). We will next bring the examples from [one of the preprints](https://arxiv.org/abs/2507.13836) of this algorithm to ManopExamples.jl.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [June 25, 2026, 4:14am UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/56 "2026-06-25T04:14:31Z")

</div>

# 🏔 Manopt.jl 0.6.0

After amore than 1.5 years we had a few changes, that caused this release to be breaking.

As new algorithms we have

- L-BFGS-B was added and we wrote a [tutorial](https://manoptjl.org/stable/tutorials/BoxDomain/) about it. (see also [this preprint](https://arxiv.org/abs/2605.10573) for details)
- the [Riemannian Levenberg-Marquardt](https://manoptjl.org/stable/solvers/LevenbergMarquardt/) now includes a robust variant (see [this preprint](https://arxiv.org/abs/2606.23560) for details) and was extended to apply the robustifiers to blocks of the residual vector
- Plotting has been extracted into the separate packages ManifoldMakie.jl and ManifoldAsymptote.jl
- internally a few things have been refactored, especially how plotting of extended results is done on REPL
- for the time being we dropped the JuMP extension

The [changelog](https://github.com/JuliaManifolds/Manopt.jl/releases/tag/v0.6.0) provides more detail of that breaking changes this release contains.

---

<div class="post-metadata">

**Author:** ![kellertuer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kellertuer/32/220707_2.png) [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Post date:** [August 21, 2026, 1:52pm UTC](https://discourse.julialang.org/t/ann-manopt-jl/24906/57 "2026-08-21T13:52:13Z")

</div>

# 🏔 [Manopt.jl](https://juliaregistries.github.io/General/packages/redirect_to_repo/Manopt) 0.6.4

While this new version is hopefully non-breaking, internally it introduces a major refactor of a very early not-so-clever design decision that has now been resolved:

Instead of the `AbstractManifoldObjective{E}` having a parameter to “indicate” whether the components are allocating or inplace – e.g. for gradient computations – now all functions stored work in-place by convention. The constructors still work as before and “wrap” functions accordingly.  
This reduces code complexity and allows in the long run also more flexibility and maybe even more performance.

As minor changes:

- we now use DocumenterCodeBlocks.jl for a nicer code formatting in the docs
- we have a new DocumenterLandingPage.jl start page, that (I feel) looks fancy
- Started a [Developer Guide](https://manoptjl.org/stable/base/) section in the focussing on general concepts and design ideas
- overall carefully checked and revised how results are printed on REPL – and hopefully fixed a few small bugs and typos along the way

[Previous page](https://discourse.julialang.org/t/ann-manopt-jl/24906.md?page=2)
