Community Profile

Contact

for p= 4:4:population dists= total_dist(rand_pair(p-3:p)); [~,idx]=min(dists); best = routes(idx,:); what idx, ~...

2 Answers

0

Asked 2 years ago

Instead of using this routine (ie not using uniform distribution or random function) what else can I change in my code to elim...

Answered 2 years ago

% Travellingsalesman problem % Create random city distribution n=20; x=random('unif',-1,1,n,1); ...

Asked 3 years ago

I want to count no. of objects like men (in a group photograph), coins in a image etc. for ex-- http://blogs.mathworks.com/i...

1 Answers

figure('Name','City Locations','Numbertitle','on'); plot(xy(:,1),xy(:,2),'bo'); ...........

for p = 4:4:population routes = pop(rand_pair(p-3:p),:); dists = total_dist(rand_pair(p-3:p)); [~,id...

function genetic4() xy =[ 6.9409 0.2259 1.7989 5.2270 3.1137 4.5593 ...

loc = [0.3663, 0.9076; 0.7459, 0.8713; 0.4521, 0.8465; 0.7624, 0.7459; 0.7096, 0.7228; 0.0710, 0.7426; 0.4224, 0.7129; 0.5908,...