Stats Master VCL
|
If not nil then the optimization method uses it for logging each optimization step.
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");
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(); }
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
|
What do you think about this topic? Send feedback!
|