# Visualization of nonlinear optimization algorithms for teaching

**URL:** <https://discourse.julialang.org/t/visualization-of-nonlinear-optimization-algorithms-for-teaching/37945>\
**Category:** Optimization (Mathematical)\
**Tags:** plotting\
**Created:** [April 21, 2020, 5:52am UTC](https://discourse.julialang.org/t/visualization-of-nonlinear-optimization-algorithms-for-teaching/37945 "2020-04-21T05:52:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leclere](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leclere/32/3644_2.png) [@leclere](https://discourse.julialang.org/u/leclere)\
**Post date:** [April 21, 2020, 5:52am UTC](https://discourse.julialang.org/t/visualization-of-nonlinear-optimization-algorithms-for-teaching/37945/1 "2020-04-21T05:52:53Z")

</div>

I am looking for example code / notebooks that help visualize algorithm iterations for teaching purposes. I am looking for standard nonlinear optimization stuff (like plotting contour lines of nonlinear function in R^2, iterates of gradient descent…). Do you have any pointers ?

---

<div class="post-metadata">

**Author:** ![tomerarnon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomerarnon/32/3170_2.png) [@tomerarnon](https://discourse.julialang.org/u/tomerarnon)\
**Post date:** [April 21, 2020, 6:23am UTC](https://discourse.julialang.org/t/visualization-of-nonlinear-optimization-algorithms-for-teaching/37945/2 "2020-04-21T06:23:14Z")

</div>

Check these out:

[https://github.com/sisl/algforopt-notebooks](https://github.com/sisl/algforopt-notebooks)  
[https://github.com/sisl/aa222-notebook](https://github.com/sisl/aa222-notebook)

The first is code directly associated with the textbook Algorithms for Optimization by Prof. Mykel Kochenderfer and Dr. Tim Wheeler, and the second is supplemental material for the course taught using said textbook.

---

<div class="post-metadata">

**Author:** ![leclere](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leclere/32/3644_2.png) [@leclere](https://discourse.julialang.org/u/leclere)\
**Post date:** [April 21, 2020, 6:54am UTC](https://discourse.julialang.org/t/visualization-of-nonlinear-optimization-algorithms-for-teaching/37945/3 "2020-04-21T06:54:26Z")

</div>

Thanks for the pointer, it seems great ressource !

However it seems to be for julia 0.4 and rely on a specific / private package, so I’m still open for other ressources.

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [April 21, 2020, 8:10am UTC](https://discourse.julialang.org/t/visualization-of-nonlinear-optimization-algorithms-for-teaching/37945/4 "2020-04-21T08:10:51Z")

</div>

> **[GitHub - algorithmsbooks/algforopt-notebooks: Jupyter notebooks associated...](https://github.com/algorithmsbooks/algforopt-notebooks)**
>
> Jupyter notebooks associated with the Algorithms for Optimization textbook - GitHub - algorithmsbooks/algforopt-notebooks: Jupyter notebooks associated with the Algorithms for Optimization textbook

says “All notebooks have Julia 1.0.1 kernels”
