potassco / clingo

🤔 A grounder and solver for logic programs.
https://potassco.org/clingo
MIT License
601 stars 79 forks source link

Add function to get priorities of costs #406

Closed rkaminsk closed 1 year ago

rkaminsk commented 1 year ago

This PR adds a function to obtain the priorities of a models costs to the C and Python API.

tgamblin commented 1 year ago

Thanks @rkaminsk! This worked great for me and has been very helpful for debugging optimizations with lots of criteria.