-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Names for Data/Storage/StorageState #330
Comments
We can rename EmptyStorage to FormulationStorage. |
It would be nice if we could remove |
We need this kind of structure to keep the intermediate data which is needed only during the run of the algorithm |
If you look at column generation, the structure is useless. We use it because we didn't think carefuly about the code design. |
I agree that in column generation is not that useful. However, for example, in the tree search algorithm we need to store the tree somewhere. |
Todo (cc @rrsadykov) : Edit : move the list of tasks to do in top comment. |
Review
PublicColuna.jl/src/Algorithm/storage.jl Lines 329 to 359 in d6ef181
Coluna.jl/src/Algorithm/storage.jl Lines 22 to 28 in d6ef181
When you create a record vector with Dev
|
I don't understand how you can restore the state of an empty storage ? The state should be empty ? Maybe we should rename
AbstractStorageState
toAbstractDataState
because it's the state of theAbstractData
?Originally posted by @guimarqu in #323
waiting to get some ideas.
EDIT (2021/03/01), 2nd EDIT (2021/03/18):
Todo:
StorageState
becomesRecord
Storage
becomes(Storage)Unit
restore_from_record!
StorageContainer
becomesStorageUnitWrapper
ColunaBase
StorageDict
intoModel
, then deleteAbstractData
(new method in model interface)StorageDict
becomesStorage
Decisions to make :
NOT_USED
(becauseNOT_USED
andREAD_ONLY
are the same) (@rrsadykov)Improve dev Exp :
RecordsVector
->Vector{Record}
StorageDict
? ->Storage
UnitTypePair = Pair{DataType, DataType}
? -> removed because now bijection between UnitType & RecordTypeUnitsUsageDict = Dict{Tuple{AbstractModel, UnitTypePair}, UnitAccessMode}
? ->UnitsUsage
Conversations to resolve :
Variables to rename :
Needs documentation (or remove)
initialize_storage_units
collect_units_to_restore!
(why a UnitsUsageDict as first arg ?)store_records(reform)
store_records(reform, record_vector)
getstorageunit(model, storage_unit_type)
record_type
The text was updated successfully, but these errors were encountered: