How to propagate constraints through a layered @vsc.randobj hierarchy?
#267
Unanswered
RasmusGOlsen
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am building a layered data structure where a high-level object needs to control the size of a list buried several layers deep.
The hierarchy is:
The Goal
I want to constrain Packet.size in a randomize_with block and have that value "drill down" through the Container to set the actual length of the list inside the Payload.
The Problem
While randomizing the leaf-level Payload and the Container works fine, randomizing the Packet results in a SolveFailure. It seems like the solver sees the top-level constraint but cannot "connect the dots" to the size in the Container and the size at the bottom of the chain.
Beta Was this translation helpful? Give feedback.
All reactions