[英]What if I set the constraint weight to zero in OptaPlanner?
If I set the weight of a constraint to zero, does that mean that this constraint does not take effect?如果我将约束的权重设置为零,是否意味着该约束不会生效? look like below:如下所示:
@ConstraintWeight("Speaker conflict")
private HardMediumSoftScore speakerConflict = HardMediumSoftScore.ofHard(0);
Functionally: yes, the constraint has no score impact so is effectively ignored.功能上:是的,约束没有分数影响,因此被有效地忽略。
Implementation wise:实施明智:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.