-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unable to change the "default" soft constraints #789
Comments
Hi, you can refer to this for how to modify soft constraints: https://dig.cmu.edu/draco2/applications/debug_draco.html#how-to-modify-the-knowledge-base-with-constraints Note that you will need to create a new Draco object to pass in the new soft constraint set, and use it in the debugger. |
I've been writing new constraints directly into the soft.lp, and then updating them in the weights.lp and they have worked fine. The problem is specifically with constraints that came default with Draco (I presume). Because even if I change radically their intended behaviour, for example changing from:
to
I'm still getting the "c_d_overlap_line" weight in a graph specification that looks like this:
It shouldn't happen since this spec doesn't have an "attribute((mark,type),M,point).". Therefore, I'm really confused as to why this is happening. I'm rather sorry about opening an issue about such a petty thing but I'm not being being able to wrap my head around this, |
what happens when you run the tests after the edit? |
Thanks for opening this issue @AMPAlves. That's what it's for so no need to apologize. Did you find the issue? |
Hello, I'm currently unable to change the default soft constraints.
I wanted to change "c_d_overlap_line" so as not to be weighted if I specify a task. Therefore, I changed the original constraint:
to
`
Unfortunately, the debugger continues to act like I have the former, even though I updated everything to have the latter.
The text was updated successfully, but these errors were encountered: