You are here: Symbol Reference > StatTools Namespace > Classes > TMtxMultiNonLinReg Class > TMtxMultiNonLinReg Properties > TMtxMultiNonLinReg.Verbose Property
Stats Master VCL
ContentsIndex
PreviousUpNext
TMtxMultiNonLinReg.Verbose Property

If not nil then the optimization method uses it for logging each optimization step.

Pascal
property Verbose: TStrings;

If not nil then the optimization method uses it for logging each optimization step. By default the Verbose property is nil meaning no logging is done.  

 

If assigned, stores Fun, evaluated at each iteration step. Optionally, you can also assign TOptControl object to the Verbose property. This allows the optimization procedure to be interrupted from another thread and optionally also allows logging and iteration count monitoring.

Log to Memo.Lines:

nlr.Verbose := Memo1.Lines; // log each step to Memo1.Lines
Memo1.Lines.Clear;
nlr.Recalc;
  // save log to file
  Memo1.Lines.SaveToFile('c:optim.log');
nlr->Verbose = Memo1.Lines; // log each step to Memo1.Lines
Memo1->Lines->Clear();
nlr->Recalc();
  Memo1->Lines->SaveToFile("c:\optim.log");
Examples on GitHub

Log directly to TStrings:

  tmpLog := TStringList.Create;
  try
      nlr.Verbose := tmpLog; // log each step to Memo1.Lines
      nlr.Recalc;
      // save log to file
      tmpLog.SaveToFile('c:optim.log');
  finally
      tmpLog.Free;
end;
TStringList *log = new TStringList(NULL);
try
{
      nlr->Verbose = log; // log each step to Memo1.Lines
      nlr->Recalc();
      // save log to file
      log->SaveToFile("c:\optim.log");
}
__finally
{
  log->Free();
}
Examples on GitHub
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!