Simulated Annealing Flow diagram

5 vues (au cours des 30 derniers jours)
Eric
Eric le 17 Déc 2013
This is a part of the question I have to answer. Im not sure to use a for loop or a function. So here goes the question.
For L(m) iterations do: =>(Initial Start situation cost(f(0))=>cellchange=>new situation costs=f(1)

Réponses (1)

Walter Roberson
Walter Roberson le 17 Déc 2013
For example,
R = 7;
N = 11;
L = randi(R, 1, N); %11 values each in the range 1 to 7, just as sample data
for m = 1 : N
for K = 1 : L(m) %done L(m) times for each m
do something here
end
end

Community Treasure Hunt

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

Start Hunting!

Translated by