and each individiual iteration will contain a set of values used for the optimize-able vars, right?

Perhaps I'm just bad at explaining what I mean.

If i have some code like this in my run() function:

...
var p1 = optimize(1,1,10,1);
var p2 = optimize(1,1,10,1);
var p3 = optimize(1,1,10,1);
...

Any time the objective() function is called, p1, p2 and p3 will contain *some* value that was used in the evaluated iteration (otherwise, how would the objective be evaluated?).

Now my question is, whether I can get (and log) the assigned values of p1, p2 and p3 inside the objective() function, or perhaps there is a better way?