1
$\begingroup$

I know how to solve a set of linear equalities with Gauss-Jordan elimination, but this gives me all real solutions. Is there a way to constrain all variables to the non-negative integers, i.e., $x \in \mathbb N$?

1 Answers 1

1

This is called integer programming. This is a huge complex field, with some of the common approaches being branch and bound and cutting plane methods. See the wiki links for more information.