Question about Manopt5

20 views
Skip to first unread message

Magnus Ulfarsson

unread,
Oct 3, 2018, 5:43:28 PM10/3/18
to Manopt
Hello,

I have a code that works fine in Manopt4.0.

When I switched to Manopt5.0 and run the code I get:

>> ex1
                                            f: +1.089000e+05   |grad|: 3.759427e+02
No appropriate method, property, or field 'removefirstifdifferent' for class 'StoreDB'.

Error in trustregions (line 700)
        storedb.removefirstifdifferent(key, key_prop);

Error in S2sharp>Zstep (line 199)
        [Z, xcost, info, options] = trustregions(problem,Z,options); % trustregions(problem,Z,options);

Error in S2sharp (line 125)
       [Z,Jcost(jCD),options]=Zstep(Y,FBM,F,lambda,nl,nc,Z,Mask,q,FDH,FDV,FDHC,FDVC,W,Whalf,tolgradnorm);
       
Error in S2sharp_time_analysis (line 7)
[Xhat_im, SAMm_b, SAMm_2m_b, SRE_b,
Jcost]=S2sharp(Yim,'Xm_im',Xm_im,'lambda',lambda,'CDiter',num_iter,'tolgradnorm',1e-1);

Any help would be appreciated.

Thanks
Magnus

Nicolas Boumal

unread,
Oct 3, 2018, 5:51:32 PM10/3/18
to Manopt
Hello Magnus,

Thanks for your message.

My first guess here is that perhaps there is more than one copy of Manopt on the Matlab path, and that one of those copies is prior to 5.0. Is that possible? You could check by calling 'which trustregions' and 'which StoreDB' at the command line to make sure the versions Matlab uses are in the same folder.

Did you run 'importmanopt' after downloading Manopt 5.0? This is useful because it adds the new manopt to the path, including new folders that have been added since 4.0.

Please let us know if this helps.

Best,
Nicolas

Magnus Ulfarsson

unread,
Oct 3, 2018, 6:16:05 PM10/3/18
to Manopt
Yes, this helps and everything works now. Thanks!

Nicolas Boumal

unread,
Oct 3, 2018, 8:05:20 PM10/3/18
to Manopt
Excellent, thanks for the feedback.
Reply all
Reply to author
Forward
0 new messages