Hi OscaR group,We are currently preparing a paper, where we plan to use and discuss OscaR, and maybe make some translation towards its constructs.Maybe I have not been able to find the documentation, if you have links it is also welcome.For this I have a question with respect to the implementation for conjunction:
- How is a conjunction implemented "behind the scenes", e.g. when finding a solution? Fx I know we can rectify it to a CPBoolVar, e.g. add(a.isLeEq(2) && a.isDiff(0)),
- is this the same to say that: add(a.isLeEq(2)); add(a.isDiff(0));.
- Is there any difference between these two way of expressing the constraints, or are they the same when searching for a solution? or is one faster?
--Cheers,Miran
---
You received this message because you are subscribed to the Google Groups "OscaR" group.
To unsubscribe from this group and stop receiving emails from it, send an email to oscar-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to a topic in the Google Groups "OscaR" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/oscar-user/Bpe4NBqeDV8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to oscar-user+...@googlegroups.com.
Hi Pierre,Thanks! Yes, I agree they are semantically equal :-)Aah okay, thats intersting then with the rectification, meaning they are not the same when used, with respect to speed, even semantically equal. As mentioned, I am looking at translation rules, which I need to approach in a “general way”, which means maybe sometimes making it a bit “worse” than manual implementation in some cases. Thats why i though of using this way and compare, and also argue for optimised translation rules (like the difference you described here)Also it becomes close to when translating disjunction, where there is no way around rectification as far as i see, e.g. add(a.isLeEq(3) || a.isDiff(0)). These can of course not be added separate, and the CPBoolVar is the only one providing this support, i think, or?
To unsubscribe from this group and all its topics, send an email to oscar-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and all its topics, send an email to oscar-user+...@googlegroups.com.