Retrieving SystemPerformance object from custom Optimizer
Author: DenisPolezhaka
Creation Date: 9/8/2020 5:24 AM
profile picture

DenisPolezhaka

#1
Hello.

We create a library that processes the results of the optimizer's work

In the process, the optimizer finds several best variants. We get the results of its work by intercepting the call to the RunCompleted method.

But this method only receives the OptimizationResultList table. How do we access the SystemPerformance results? We do not want to store the results of all tests - this will take up unnecessary space and create unnecessary load.

It seems to us the simplest solution is to launch a strategy with the required parameters at the end. But how to do this from the optimizer? Perhaps you can suggest another more logical way.
profile picture

Eugene

#2
Hi Denis,

As you already know, you can examine the Results of an optimization run in the NextRun method. To me it seems that caching the results of all runs for lookup of the SystemPerformance results might be the straightforward way. If it's not acceptable for some reason, here's how you can launch an instance of the strategy (e.g. from RunCompleted) to get the SystemPerformance object:

How to manually calculate SystemPerformance performance object
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).