Registering the Targets to Have in the Report

  1. Reading input arguments for the increment value and the number of iteration
  2. Registering the variables to increment
  3. Registering the targets to have in the report
  4. Implementing the incrementation of the variables
  5. Implementing the reception of the new measures
  6. Implementing the check to finish the iteration loop
  7. Outputting a report file

Now, as the variables, you need to register the targets:

Note: weight is not in the sample, but this is the same value that appears in the definition panel.
private IDictionary<string, string> _targetNames = new Dictionary<string, string>();
private IDictionary<string, double> _targetValues = new Dictionary<string, double>();

//.... it is recommended for cleaner reading to leave the declaration of fields at the top of the file

/// <summary>
///    Called to register a new target as output (optional)
/// </summary>
public void AddTarget(string parameterId, string parameterUserName, double startingValue, double targetValue, double weight)
{
    _targetNames.Add(parameterId, parameterUserName);
    _targetValues.Add(parameterId, startingValue);