# Optimization on unit sphere?

**URL:** https://discourse.julialang.org/t/optimization-on-unit-sphere/130720
**Category:** Optimization (Mathematical)
**Created:** [July 14, 2025, 4:29pm UTC](https://discourse.julialang.org/t/optimization-on-unit-sphere/130720 "2025-07-14T16:29:34Z")
**Posts on this page:** 1
**Showing post:** 3

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [July 14, 2025, 8:10pm UTC](https://discourse.julialang.org/t/optimization-on-unit-sphere/130720/3 "2025-07-14T20:10:20Z")

</div>

> [@ForceBru](#):
>
> Random question about Differential Evolution: do you happen to know if there’s a variant of DE that keeps all vectors of the population _on the unit sphere_ or on the unit simplex?

A simple trick is to just change variables, to

\min\_{y \in \mathbb{R}^n} f(y / \Vert y \Vert\_2)

---

_[View the full topic](https://discourse.julialang.org/t/optimization-on-unit-sphere/130720)._
