MxHbm / Management-Science

GitHub for exchanging data and the formulation of the stochastic mathematical model
2 stars 1 forks source link

:art: changed code structure of variables #61

Closed MxHbm closed 5 months ago

MxHbm commented 5 months ago

Added new code structure for the variables which makes it easier ro read and work with the model:

Key Points:

  1. Nested Classes: Use nested classes to group related decision variables. This keeps the variable definitions organized and separated by their stages and types.
  2. Single Initialization: Instantiate the nested classes in the main class's constructor. This keeps the initialization process clean and centralized.
  3. Access: Access the variables through the nested class instances, which maintains clarity regarding the variable types.
  4. This approach preserves the different types of decision variables while providing a more structured and organized way to manage them.