Simulated Annealing Flow diagram

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)

Answers (1)

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

Asked:

on 17 Dec 2013

Answered:

on 17 Dec 2013

Community Treasure Hunt

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

Start Hunting!