You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be quite practical to have the option to maintain an "additional information" list where, for example, the user could store the respective solutions.
nda=moarchiving.BiobjectiveNondominatedSortedList()
nda.add(fun2(x), info=x)
nda.add(fun2(xa), info={'x': xa, 'note': 'xa seems to rock'})
nda.add(fun2(xb))
assertnda.infoisNoneorlen(nda) ==len(nda.info)
print(nda.info) # nda has an info property
[[0, 1, 2], {'x': [1, 2, 3], 'note': 'xa seems to rock'}, None]
Methods that need to be modified are
add and _add_at
remove
The list can be created only when an optional info argument is used for the first time to avoid always maintaining an info list of None elements.
The text was updated successfully, but these errors were encountered:
Do you think it could be useful to also have the possibility to add a list of infos together with the list of f values when initializing the object? In 3 dimensions for example, adding points to the archive at initialization is much faster than adding them separately after.
It would be quite practical to have the option to maintain an "additional information" list where, for example, the user could store the respective solutions.
Methods that need to be modified are
add
and_add_at
remove
The list can be created only when an optional
info
argument is used for the first time to avoid always maintaining an infolist
ofNone
elements.The text was updated successfully, but these errors were encountered: