What is the explanation of the 2 arguments in the function gosolnp {Rsolnp}
: n.restarts & n.sim?
From the package writeup:
n.restarts: The number of solver restarts required
n.sim: The number of random parameters to generate for every restart of the solver. Note that there will always be significant rejections if inequality bounds are present. Also, this choice should also be motivated by the width of the upper and lower bounds
From my understanding then, if I set n.restarts=5
and n.sim=10
, then for each n.restart
it will generate n.sim
starting points. Let's say I have no inequality constraints (so all random starting points are permissible), then I would have effectively rerun solnp $5 \times 10 = 50$ times.
Is that correct? Why then would I have these 2 arguments in the function and not just 1 where I could directly specify 50 reruns? This makes me think my understanding is flawed.