Python: specifying "decide" in user propagator #7433
Replies: 3 comments
-
You are the first one to try out the decide callback from Python. It isn't fully implemented as you can see. |
Beta Was this translation helpful? Give feedback.
-
Thanks Nikolaj for your input. I understand then that we should already be able to implement it when implementing the propagator in C, and we should wait for the finished implementation in Python? Thanks for all the hard work! |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Hello,
we are trying to track "decide" events in a user propagator using the Python API. We have succeeded in defining "fixed" and "final" functions. However, we get an error when defining a "decide" funcion:
This makes an assertion faied, which we can fix if we add in
__init__
in our custom propagator the code:However, after doing this, we still get an error, apparently coming from
user_prop_decide
in z3.py, where variablet_ref
is undefined:Moreover, could you please specify (or point us to the documentation) what are the parameters expected in "decide"?
Beta Was this translation helpful? Give feedback.
All reactions