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
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
Torsten
Torsten 2026년 5월 6일 9:34
편집: Torsten 2026년 5월 6일 9:38
Use "fsolve" or "fzero" to solve (11), (19) or (27) for t_1*. Substitute in (9), (17) or (25) to get T*.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

질문:

2026년 5월 6일 6:35

편집:

2026년 5월 6일 9:38

Community Treasure Hunt

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

Start Hunting!

Translated by