MATLAB - How can I export to a file xopt and fval parameters from a pattern search function at each iteration? -


the function is:

[xopt,fval] = patternsearch(@(x)bi_dop(x,rx,tx,const,dop,phi,t), x0, [],[],[],[],lb,ub,options) 

is there way iterate inside pattern search output not give me final value of xopt.

--------------- output looks like:

iter     f-count          f(x)      meshsize     method     0        1    2.82772e+11            40           1        2    2.33578e+11            40     successful search     2        4    1.32096e+09            40     successful search     3        9    1.01619e+09            80     successful poll     4       15    1.01619e+09            40     refine mesh .....................................................     51      169    5.04328e+07        0.3125     successful search maximum number of iterations exceeded: increase options.maxiterations.  xopt =     1.0e+03 *      1.1812    0.0422    0.0416    0.0056         0         0   fval =     5.0433e+07 

where f(x) equal fval , xopt val output @ end

cheers, alin


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -