How can i use simulated annealing algorithm in matlab toolbox
2 views (last 30 days)
Show older comments
Hello, i have a problem in calling my function in fsolve or simulannealbnd. My function looks like this:
function Fun=MyFun(q,k)
h = 1;
A = [-1 -3;2 -5];
Ad = [1.66 -0.697;0.93 -0.330];
Q = [q(1) q(3);q(2) q(4)];
H = Ad*h*Q;
[V,D]=eig(H);
Dw = diag(lambertw(k,diag(D)));
F = V*Dw/V*expm(V*Dw/V+A)-Ad;
Fun=[F(1);F(2);F(3);F(4)];
How can i use these function toolbox to solve my problem above. For instance, k=0. Thanks for you help.
0 Comments
Answers (0)
See Also
Categories
Find more on Simulated Annealing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!