lava-optimization icon indicating copy to clipboard operation
lava-optimization copied to clipboard

Add feature to log solution iterate over different iterations

Open ashishrao7 opened this issue 4 years ago • 3 comments

The current solver only returns the solution at at the last iteration. The solver needs to be enhanced by adding support for solution iterate logging in order to able to analyze cost evolution and solution convergence. Currently can be done by using a Process that behaves like an output probe. However this may not be the best way to realize this feature given that probes are being planned in future lava releases

ashishrao7 avatar Dec 01 '21 11:12 ashishrao7

Be sure to keep this modular as in the case of the online constraint checker in the CSP solver. For mere probing (for debugging), we can use the Monitor going forward. For anything else that you need to run aside from diagnostic purposes you need to keep in mind that this will eventually run on neuro cores, so you should avoid reading out network state too often as in the case of the CSP offline validator.

awintel avatar Dec 01 '21 21:12 awintel

Indeed, the complete design of the QP solver already includes the online validator which includes monitoring of the objective function. The online validator is shared by most solvers so it will be part of the generic processes of the optimization library. Having the ability to monitor process variables already solve this issue by just monitoring the right component of the online validator.

GaboFGuerra avatar Jan 07 '22 09:01 GaboFGuerra

Duplicate of #26

GaboFGuerra avatar Jan 07 '22 13:01 GaboFGuerra

@ashishrao7 should we keep this open? or we have it as a subtask of merging the QP into the generic solver?

GaboFGuerra avatar Jan 12 '23 18:01 GaboFGuerra

This issue is indeed still open. We don't have monitors enabled yet. Cannot close this issue now.

ashishrao7 avatar Jan 16 '23 16:01 ashishrao7

Done.

tim-shea avatar Jan 19 '24 19:01 tim-shea