how to find optimum solution to the variable
이전 댓글 표시
i want to know the step for find the optimum value of t1,T by using this algorithm댓글 수: 2
Chuguang Pan
2026년 5월 6일 7:16
편집: Walter Roberson
2026년 5월 6일 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
답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Solver Outputs and Iterative Display에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!