OF: The objective function, to be minimised. Its first argument needs to be a solution; ...
arguments are also passed.
algo: List of settings. See Details.
...: Other variables to be passed to the objective function and to the neighbourhood function. See Details.
Details
A greedy search works starts at a provided initial solution (called the current solution) and searches a defined neighbourhood for the best possible solution. If this best neighbour is not better than the current solution, the search stops. Otherwise, the best neighbour becomes the current solution, and the search is repeated.
Returns
A list:
xbest: best solution found.
OFvalue: objective function value associated with best solution.
Fmat: a matrix with two columns. Fmat[ ,1L] contains the proposed solution over all iterations; Fmat[ ,2L]
contains the accepted solutions.
xlist: a list
initial.state: the value of .Random.seed when the function was called.
x0: the initial solution
iterations: the number of iterations after which the search stopped
References
Gilli, M., Maringer, D. and Schumann, E. (2019) Numerical Methods and Optimization in Finance. 2nd edition. Elsevier. tools:::Rd_expr_doi("10.1016/C2017-0-01621-X")