Decision node appears as having imposed policy after editing its domain

Create issue
Issue #208 resolved
Manuel Luque created an issue

If the user has an influence diagram, modifies the domain of a decision variable (for example, adding a state), saves the network, closes it, and opens it again, then the GUI will show the edited decision node as having an imposed policy.

Comments (4)

  1. Manuel Luque reporter

    I think this issue is critical because if the user does not want to have imposed policies on decisions, then the GUI should guarantee that before calling the inference algorithm. Otherwise, the results obtained from the inference may be completely wrong. And a very important note: Remember that "having no imposed on a decision node" is not the same as "having a uniform policy imposed".

  2. Miguel Ángel Artaso Landa

    There has been modified (with the help of Jorge Pérez) in the NodeStateEdit class of the org.openmarkov.core.action the 'Add' and 'Remove' branches of the case statement. The code was assigning uniform potentials also to Decision variables. An 'if' clause has been added for this not to happen.

  3. Log in to comment