Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Just adding a penalty to the objective works. Another alternative is to consider a two-dimensional lexicographic objective (total constraint violation, actual objective), so that reducing constraint violations is always preferable, and the actual objective is only compared between solutions that are equally good in terms of constraint violations.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: