Demonstration of the gradient descent optimization algorithm with a fixed step size.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
This example was developed for use in teaching optimization in graduate engineering courses. This example demonstrates how the gradient descent method can be used to solve a simple unconstrained optimization problem. Taking large step sizes can lead to algorithm instability, but small step sizes result in low computational efficiency. A corresponding video can be found here:
https://youtu.be/qLpOWteWmjs
Cite As
James Allison (2026). Simplified Gradient Descent Optimization (https://www.mathworks.com/matlabcentral/fileexchange/35535-simplified-gradient-descent-optimization), MATLAB Central File Exchange. Retrieved .
General Information
- Version 1.0.0.1 (2.13 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
