Skip to content

Commit 4131e01

Browse files
committed
Fix random search
1 parent f22da2b commit 4131e01

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)