Inter-class constraint between variables from list of random classes #76
Replies: 5 comments 3 replies
-
|
Hello @ShreyanJabade, Best Regards, |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for raising this issue, @ShreyanJabade. I investigated and found an issue with using literal indexes into arrays of classes. Strangely enough, using an equivalent constraint inside a foreach constraint worked. Best Regards, |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the new testcase, @ShreyanJabade. I've investigated, and have been able to reproduce the original problem. However, I'll need to investigate further to solve the core problem. While PyVSC has no intentional limit on the number of nesting levels with class arrays, it appears that currently it is limited to a single level (class containing an array of classes). Again, this is not an intentional limit, and I will correct this issue. Unfortunately, it will take me more time that I have to spend on the issue this evening. Best Regards, |
Beta Was this translation helpful? Give feedback.
-
|
Hi @ShreyanJabade, Best Regards, |
Beta Was this translation helpful? Give feedback.
-
|
Apologies, @ShreyanJabade. I thought I was running your exact testcase. I will double-check to see if I inadvertently made a modification that masked an issue. |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
We are using PyVSC module for constrained randomization in Python. There is a parent class (
Parent()) which has a list of random classes as its instance variables (c1andc2). It is needed to specify a constraint between two variables from two different class instances from the list (sayc1[0].aandc2[0].x). Doing this however givesExprLiteralModel' object has no attribute 'fm'. The code snippet used is attached below:I request you to look into this aspect.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions