Land Allocation, with simulated annealing
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Eric
el 17 de Dic. de 2013
Comentada: Eric
el 17 de Dic. de 2013
How to go about converting insturctions on a flow chart to matlab?
For example I have a matrix
M=zeros(10);%
k = randperm(100);
M(k(1:57))=1;
M(k(58:86))=2;
M(k(87:100))=3;
M=
and I have a flow chart that says for L(m) iterations do:
=>Initial start situation costs(0)=>cell change
1 comentario
Walter Roberson
el 17 de Dic. de 2013
This should probably have been asked as part of http://www.mathworks.co.uk/matlabcentral/answers/109965-simulated-annealing-flow-diagram
Respuesta aceptada
Walter Roberson
el 17 de Dic. de 2013
"initialize" correspond to assignment.
Doing something for L(m) iterations corresponds to using a "for" loop,
for P = 1 : L(m)
... do the thing here
end
Más respuestas (0)
Ver también
Categorías
Más información sobre Simulated Annealing en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!