how to find optimum solution to the variable
Show older comments
i want to know the step for find the optimum value of t1,T by using this algorithm2 Comments
Chuguang Pan
on 6 May 2026 at 7:16
Edited: Walter Roberson
on 6 May 2026 at 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
Answers (0)
Categories
Find more on Solver Outputs and Iterative Display 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!