Skip to content

[OptApp] Introducing AlgorithmDataManager to store and retrieve data. - #14676

Open
talhah-ansari wants to merge 2 commits into
masterfrom
optimization/algorithm_data_manager
Open

[OptApp] Introducing AlgorithmDataManager to store and retrieve data.#14676
talhah-ansari wants to merge 2 commits into
masterfrom
optimization/algorithm_data_manager

Conversation

@talhah-ansari

Copy link
Copy Markdown
Contributor

📝 Description

This PR introduces a new AlgorithmDataManager utility class to centralize and standardize the management of algorithm data within the optimization algorithms. The affected algorithms have been refactored to use this new class for storing and retrieving data.

🆕 Changelog

  • Added new AlgorithmDataManager class in algorithm_data_manager.py to encapsulate logic for storing and retrieving algorithm-related data.
  • Refactored AlgorithmGradientProjection, AlgorithmRelaxedGradientProjection, AlgorithmMomentumRelaxedGradientProjection, and AlgorithmNesterovAccelaratedGradient to use AlgorithmDataManager for all algorithm data interactions, replacing previous direct usage of ComponentDataView and BufferedDict.
  • Updated algorithm constructors to initialize the list of control names and store them in the unbuffered data, ensuring consistent access to control-related information.

@talhah-ansari talhah-ansari self-assigned this Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant