-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Hi!
I'm not sure if my approach is correct, but I'm trying to do a diverse sampling of optimized networks using the following:
bo.maximize_nodes()
bo.maximize_strong_constants()
for bn in bo.diverse_boolean_networks():
print(bn)
However, this fails with:
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[7], line 31
29 diverse = bonesis.DiverseBooleanNetworksView(bo)
30 print(diverse.standalone())
---> 31 for bn in diverse:
32 print(bn)
File ~/miniconda/envs/celloracle_env/lib/python3.8/site-packages/bonesis/views.py:173, in BonesisView.__next__(self)
171 self._progressbar.close()
172 elif self.mode == "optN":
--> 173 while not self.cur_model.optimality_proven:
174 self.cur_model = next(self._iterator)
175 self._progress_tick()
AttributeError: 'MPBooleanNetwork' object has no attribute 'optimality_proven'
Is this is a bug, or is the combination of diverse sampling and optimization currently unsupported?
I am also trying to run the ASP program returned by bonesis.DiverseBooleanNetworksView(bo).standalone(), and it is indeed returning something, but I haven't yet validated the results thoroughly.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels