You are here: Symbol Reference > MtxVecTools Namespace > Classes > TMtxOptimization Class > public > TMtxOptimization.Verbose Property
MtxVec VCL
ContentsIndex
PreviousUpNext
TMtxOptimization.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.

Log to Memo.Lines:

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

Log directly to TStrings:

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