Rational{Int64} variables in JuMP?

Technically Float64s are rational numbers, too :wink:

In case you are looking for “nice” rational numbers (with small denominators etc), you can try solving using floating point to get solution, from which you learn which constraints bind, then just solve the resulting simplified linear system using rationals.

3 Likes