How can i use simulated annealing algorithm in matlab toolbox

조회 수: 2 (최근 30일)
Ka Wa
Ka Wa 2013년 3월 27일
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개)

카테고리

Help CenterFile Exchange에서 Simulated Annealing에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by