-
Notifications
You must be signed in to change notification settings - Fork 5
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
Diagnosis #56
Diagnosis #56
Conversation
@manleviet I've been taking a look at the pr. There are some issues with the solution you proposed to use. The main is that you add a new Model, which should not be used as it would break compatibility with other plugins. I'm creating a new empty operation so you can implement/adapt the implementation you made. |
@manleviet I'm taking a look to the PR. Could you explain why you need two relationships for the mandatory: <<<<<<< diagnosis
=======
<<<<<<< diagnosis
=======
|
I don't understand why you have to modify the fm-to-pysat transformation |
Ok, It looks like all those changes only seek to store the clauses in a map. This could have been easily solved by adding that in the pysat metamodel class. Also, why not relying on the cnf() class of pysat to access that data? |
@manleviet I'm pushing a new version to your repo, so we can merge when ready. Give me a few days to finish it |
Hello @jagalindo , I'm sorry for not getting back to you sooner. I'm currently on vacation in Vietnam.
This is also why changes were made in fm_to_pysat.py, not in cnf_to_pysat.py, as CNF provides no information about relationships/constraints.
I'm fine with your new version. Please inform me when you are done. |
@manleviet Please verify that I didnt break anything with the changes. Also, please, adhere to the prospector and mypi conventions so we can merge the PR. Regards |
Ok, we need to merge this asap To keep on going with dev changes. I'll merge with the mypi problems and then ask for help to correct them |
Major changes in this pull request are:
The advantage of this approach is that the solver is only created once, and consistency checks don’t have too much overhead. This is particularly useful for complex feature models.
An issue:
Glucose3Diagnosis and Glucose3Conflict implement the following functions: (1) set_configuration, (2) set_test_case. These functions are not mandatory in every case. For example, set_configuration is used when we want to diagnose for an inconsistent configuration. Thus, Glucose3Diagnosis and Glucose3Conflict currently implement Operation, not ErrorDiagnosis or ValidConfiguration. In other words, we cannot use them via the command line with DiscoverMetamodels. Is it possible to have a new operation that allows for optional set_configuration and optional set_test_case?