In reply to dave_59:
Hi Dave,
I am getting the following error, when i tried your code.
mat.sum(D1) with( D1.sum(D2) with (D2 >=0 ? D2:0) ) < 7;
Randomization constraint has this error, which will cause the randomize function to return 0 and no new rand values will be set:
Unsupported operator ‘sum over upper dimension of multi-dimensional array’ in this constraint expression.
mem_inst.randomize();
|