Hi All,I recommend this (not just because of [1], but because it allows certain heuristics (SA for example) to temporary break the hard constraint to "tunnel through those hard constraints").
I have a PlanningEntity that has several planning variables, say A and B. Now, if A is O then B can be X or Y and when A is P then B can be Y or Z.
I see two routes:
- create a solution property that generates X, Y and Z as alternatives for B and rely on the score rules to dismiss improper values, depending on the value of A
[1] Entity property is supported in 5.5 currently. (see documentation warning at the start of that section).
- create an entity property that only generates the possible values for B (i.e. X,Y for A=O and Y,Z for A=P)
What is the best route?
(Alternatively I do not use the constructionHeuristic and just start of my solution with a randomly (but correct) generated solution)
Regards,
Willem
_______________________________________________ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users