Skip to content

Commit a1303e3

Browse files
authored
Merge pull request #78 from MaximSmolskiy/fix_random_search
Fix random search
2 parents c75bbf1 + 4131e01 commit a1303e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/Searching/random_search.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
ObjFun=@(x) sum(x.^2);
1717
for i=1:numIter
1818
candidate=10*rand(dim,popsize)-5;
19-
best,=min(feval(ObjFun,candidate));
19+
best=min(feval(ObjFun,candidate));
2020
if best <= ftarget
2121
break;
2222
end

0 commit comments

Comments
 (0)