Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How can I modify database in each iteration using the original one?

조회 수: 1 (최근 30일)
Mira le
Mira le 2019년 11월 18일
마감: MATLAB Answer Bot 2021년 8월 20일
in my code T1 is a data base is already load,
N=10;
for i=1:N
Qt(i).Cost = Evaluation(Qt(i).sequen,SI,D,T1,MST,NS,L);
end
i call the Evaluation function to evaluate each solution (vector) =Qt(i).sequen, Now T1 is the data base I wish to modify, but I want each Qt(i) modify by the original T1 not T1 already modified in the previous step
And the result of Qt save it in file .txt
How can i do that?
  댓글 수: 4
Walter Roberson
Walter Roberson 2019년 11월 18일
You do not modify T1 in the code you show, so it is not clear why you are talking about T1 modified in the previous step.
Mira le
Mira le 2019년 11월 18일
because my code is Iterative, so in each values of " i " ishall call the function "Evaluation" and the T1 have to be the original

답변 (0개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by