how to find optimum solution to the variable
Afficher commentaires plus anciens
i want to know the step for find the optimum value of t1,T by using this algorithm2 commentaires
Chuguang Pan
le 6 Mai 2026 à 7:16
Modifié(e) : Walter Roberson
le 6 Mai 2026 à 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
Réponses (0)
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!