Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: fminunc: how reliable is the minimum?
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Matthijs Breugem

Posts: 1
Registered: 5/27/12
fminunc: how reliable is the minimum?
Posted: May 27, 2012 2:25 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello all,

I wrote a GMM (generalized methods of moments) program with the following objective function ( I show you the most important lines)


u=@(phi) -phi(1,:)*Z0(t,:)'+sum((Rc(t,:)-kron(Rf(t),ones(1,L)))'.*(phi(2:L+1,:)*Z0(t,:)'))+(Rw(t)-Rf(t))'.*(phi(L+2,:)*Z0(t,:)');


h=@(phi) (Rtot(t,:)-kron(Rf(t),ones(1,m))).*kron((1-u(phi))',ones(1,m));

EPSILON=@(phi) kron(Z0(t,:)',ones(m+1,1)).*kron(ones(l,1),[u(phi)' h(phi)]');

W=eye(l*(1+m));
f= @(phi) EPSILON(phi);
g= @(phi) (1/T)*sum(f(phi)')';
Q= @(phi) g(phi)'*W*g(phi);

----->[phi_1,fval]= fminunc(Q,START,options);

QUESTION:
The total number of observations (T) equals to 4300 and it takes a long time to execute this program. Even when the program finishes, it might not give right results as two executions produce differnet results. Nonetheless, the objective function seems quadratic so it should have only 1 minimum.

Is there any way I can make sure that I find a global minimum? Should I resort to genetic algorithm techniques?

Thanks!



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2013. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.