Skip to content

Conversation

@MaximSmolskiy
Copy link
Member

Current random search implementation doesn't run.
In Octave:

>> random_search

error: parse error near line 19 of file D:\MATLAB-Octave\algorithms\Searching\random_search.m

  syntax error

>>>     best,=min(feval(ObjFun,candidate));

In MATLAB:

>> random_search
Error: File: random_search.m Line: 19 Column: 10
Incorrect use of '=' operator. To assign a value to a variable, use '='. To compare values
for equality, use '=='.

It has syntax error - redundant comma , in line 19:

best,=min(feval(ObjFun,candidate));

@cozek cozek merged commit a1303e3 into TheAlgorithms:master Aug 27, 2021
@MaximSmolskiy MaximSmolskiy deleted the fix_random_search branch September 4, 2021 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants