iamaya2 / MatHH

A Matlab-based Hyper-Heuristic framework
MIT License
6 stars 1 forks source link

Add memory to the KP domain #56

Open iamaya2 opened 11 months ago

iamaya2 commented 11 months ago
iamaya2 commented 11 months ago
  • [ ] Define way to incorporate historical data within the feature calculation of the instance

Constants

Alternatives

iamaya2 commented 11 months ago
  • Add a memory property to the instance that stores the previous set of feature values. This makes the instance more complex and would have to be manually updated within the getFeatureVector method, so that it automatically updates previous values. Susceptible to having out-of-sync data since values will be moved to memory each time getFeatureVector is called, which may not happen once per solution step. Requires one extra feature per memory step but it will be straightforward to implement (simply access the corresponding location in the memory property.

Selected this one for implementation

iamaya2 commented 9 months ago
  • Add a memory property to the instance that stores the previous set of feature values. This makes the instance more complex and would have to be manually updated within the getFeatureVector method, so that it automatically updates previous values. Susceptible to having out-of-sync data since values will be moved to memory each time getFeatureVector is called, which may not happen once per solution step. Requires one extra feature per memory step but it will be straightforward to implement (simply access the corresponding location in the memory property.

Selected this one for implementation

Implemented memory storage capability. Pending: Relate it to feature IDs