# Capturing values produced during iteration and plotting them against the iteration index [closed]

numTimes = 10;
testList =
ParallelTable[
NMinimize[
{funcVS[x1t, y1t], -0.0535 <= x1t <= -0.0424 && -0.0535 <= y1t <= -0.0284},
{x1t, y1t},
Method -> {"NelderMead", RandomSeed -> k}],
{k, numTimes}]]


Is it possible to capture the values of the variables and the objective function in each iteration? I want to plot them against the number of iterations.

FuncVS is bit complex, so I am not adding it here.

## closed as off-topic by MarcoB, m_goldberg, Henrik Schumacher, José Antonio Díaz Navas, bbgodfreyMay 12 '18 at 18:06

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question cannot be answered without additional information. Questions on problems in code must describe the specific problem and include valid code to reproduce it. Any data used for programming examples should be embedded in the question or code to generate the (fake) data must be included." – MarcoB, m_goldberg, Henrik Schumacher, José Antonio Díaz Navas
If this question can be reworded to fit the rules in the help center, please edit the question.

• – kglr May 3 '18 at 17:32