Gradient Descent (Solving Quadratic Equations with Two Variables)

버전 1.0.0.0 (1.53 KB) 작성자: Soumitra Sitole
The algorithm shows the Steepest Descent Method or Gradient Descent Method
다운로드 수: 1.2K
업데이트 날짜: 2017/3/12

라이선스 보기

The code highlights the Gradient Descent method. The algorithm works with any quadratic function (Degree 2) with two variables (X and Y). Refer comments for all the important steps in the code to understand the method. In order to implement the algorithm for higher order polynomial equations (more than degree 2); the optimal step length needs to be calculated using fmincon or fminbnd after every step which involves using function handles making the algorithm complex. However, one can easily assume the step size and arrive at the minimum or optimum answer at the cost of more computations. So, to implement the code for higher order polynomials, instead of computing step length at each iteration, one can assume h (step length) as a constant. Let me know if you are interested in the code for higher order polynomials with 2 variables.
- Thank you

인용 양식

Soumitra Sitole (2024). Gradient Descent (Solving Quadratic Equations with Two Variables) (https://www.mathworks.com/matlabcentral/fileexchange/62010-gradient-descent-solving-quadratic-equations-with-two-variables), MATLAB Central File Exchange. 검색됨 .

MATLAB 릴리스 호환 정보
개발 환경: R2016b
모든 릴리스와 호환
플랫폼 호환성
Windows macOS Linux
카테고리
Help CenterMATLAB Answers에서 Polynomials에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
버전 게시됨 릴리스 정보
1.0.0.0