-
Notifications
You must be signed in to change notification settings - Fork 17
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
Question:How to constrain two-dimensional arrays? #85
Comments
Looks like you have two random variables here, but 'vc_bond_en' is always '0'. Variables 'a*n' are multidimensional arrays - please use just int as it is extremely difficult to debug. |
But I want to constrain the array sum, isn't there a way to do that? |
Constraints works on random variables - you defined random variables only "total_phynum" and "vc_bond_en". |
I tried to add a random two-dimensional array (a1_en) to the constraint, but the domain of the add_rand function can only be a one-dimensional list?
|
Please have a look into documentation how to deal with such costraints: |
@hardy-hq was your problem resolved? |
hello!I want to implement a constraint as follows,but it can't find a suitable solution
this is my py code using crv,but “ Could not resolve constraints!” error is reported after execution.
Is there another way to write this to implement sv constraints?Thank you very much
The text was updated successfully, but these errors were encountered: