how to find optimum solution to the variable
Ältere Kommentare anzeigen
i want to know the step for find the optimum value of t1,T by using this algorithm2 Kommentare
Chuguang Pan
am 6 Mai 2026 um 7:16
Bearbeitet: Walter Roberson
am 6 Mai 2026 um 8:46
@ALBERT. You can write code according to the algorithm steps presented in the picture.
% example code structure
if M <= t_d
Delta = ... % calculate Delta
if Delta <= 0
t1_optimal = t_11;
T_optimal = T_1;
else
t1_optimal = t_d;
T_optimal = T_1;
end
else
% calculate Delta_1 and Delta_2
Delta_1 = ...
Delta_2 = ...
if Delta_1 <=0 && Delta_2 >= 0
t1_optimal = t_13;
T_optimal = T_3;
else if Delta_2 < 0
[~,idx] = min([TC2(t_12,T_2),TC3(M,T_3)]);
if idx == 1
t1_optimal = t_12;
T_optimal = T_2;
else
t1_optimal = M;
T_optimal = T_3;
end
else if Delta_1 > 0
t1_optimal = t_d;
T_optimal = T_3;
else
%%%%
end
end
Antworten (0)
Kategorien
Mehr zu Solver Outputs and Iterative Display finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!