restriction involving two attributes
Posted:
Fri Feb 08, 2019 7:25 pm
by juanprice
Dear all
Is there any way of telling Ngene something like (departing from the status quo situation): if attrib 1 (attrib 2) goes up then the attrib 2 (attrib 1) should remain unchanged or going down?
Many thanks
Juan
Re: restriction involving two attributes
Posted:
Sat Feb 09, 2019 9:24 am
by Michiel Bliemer
This may be possible with requires ;require or rejections ;reject, you will have to get a little bit creative.
For example:
;reject:
alt1.x1 > sq.x1 and alt1.x2 > sq.x2
Suppose that sq.x1 = 3 and sq.x2 = 2
Then alt1.x1 = 4 (goes up) and alt1.x2 = 1 (goes down) is accepted, since (4 > 3) and (1 > 2) = (true) and (false) = false, hence does not get rejected.
Note that ;reject and :require need the modified Federov algorithm, ;alg = mfederov
You may be able to use if-then constraints in the ;cond command as well, I am not sure, again you may have to be a bit creative.
Michiel
NB: Please put all Ngene related questions in the Ngene forum. This forum is meant for general design questions.