Optimizing functions involving higher dimensions?

조회 수: 1 (최근 30일)
Rohit Gupta
Rohit Gupta 2018년 6월 6일
댓글: Torsten 2018년 6월 6일
I want to find minimum for function in higher dimension. I found minf_lbfgs() in tensorlab but it requires me to give gradient. Are there any tools which give me result without calculating gradient.
x = fminsearch(fun,x0) works only when x is matrix (or less).

답변 (1개)

Torsten
Torsten 2018년 6월 6일
Check out
https://de.mathworks.com/products/optimization.html
Usually, providing the gradient in MATLAB codes from the Optimization Toolbox is optional, but not necessary.
Best wishes
Torsten.
  댓글 수: 2
Rohit Gupta
Rohit Gupta 2018년 6월 6일
It works only till x is a matrix. If I give higher dimension it shows error!
Torsten
Torsten 2018년 6월 6일
Then make the matrix a vector:
x = x(:)
Best wishes
Torsten.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Linear Least Squares에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by