Hey folks,

I am trying to make use of the gradient of the function and

then minimize using fminunc in an unconstrained problem.

I have done as specified by the help file (incorporating

optimset and all that) but an error is being generated. If i

don't pass the gradient it find the minimum using a line

search instead of trust region method. I list the error

message below. Any help is appreciated.

??? In an assignment A(:) = B, the number of elements in A

and B

must be the same.

Error in ==> fminunc at 204

[f,GRAD(:)] = feval(funfcn{3},x,varargin{:});

1. using color gradients with opacity gradients

2. How to pass the Hessian information to the 'fminunc'?

Hi there,

I met a problem that I want to pass Hessian information to the 'fminunc'. I use:

options = optimset('Hessian', 'on');

and form the Hessian information as a matrix which costs lots of memory. May I ask how to form a Hessian as a function and pass this function to the fminunc please?

Thanks!

3. using value from previous iteration-fminunc

4. Using fminsearch fminunc numerical optimization

5. fminunc eroor (Error using ==> roots at 28...)

7. Using fminsearch fminunc numerical opt

8. optimization using both fminsearch and fminunc

9. HDA matrix for linear transform using fminunc

10. using fminunc

11. Pattern Gradient (not color gradient)

12. turning off gradient menu border and toolbar gradient

13. gradient - no way to move around gradient

14. Gradient (shadow) Over Gradient Body BG (how??)

15. Pattern Gradient (not color gradient)

1 post • Page:**1** of **1**