Skip to content
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

$linear_coefficients does not expand var_group #180

Open
edwindj opened this issue Mar 28, 2024 · 0 comments
Open

$linear_coefficients does not expand var_group #180

edwindj opened this issue Mar 28, 2024 · 0 comments

Comments

@edwindj
Copy link
Member

edwindj commented Mar 28, 2024

v <- validator(
  pos := var_group(x),
  pos = pos >= 0,
  lin = x + y == 20
)

v$linear_coefficients()

generates the following:

$A
         variable
validator pos x y
      pos  -1 0 0
      lin   0 1 1

$b
         variable
validator CONSTANT
      pos        0
      lin       20

$operators
  >=   == 
"<=" "==" 

Which is not as intended, var_group should be expanded or at least a warning should be generated.
See also data-cleaning/deductive#3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant