Suppose I have a linear equation/inequality like
$$xA+yB \leq C,$$
with $x,y \in \mathbb{Z}^{+}_{\neq 0}$ and $A,B,C \in \{x | x = 0.01\mu, \forall \mu \in \mathbb{Z}^+_{\neq0}\}$. I want to find all the closest (positive integer) pairs $(x,y)$ such that:
$$\delta \leq xA+yB \leq C, \delta\in\mathbb{R}.$$
How can this be done in Mathematica? I want to find the closest positive integer solution to the line. I can do this visually, and just circle pairs, but it would be nice to have an automatic method to generate such pairs.
As $x,y$ are clearly "quantities" of things, and $A,B,C$ are "monetary values" an example of a linear equation (with a $\delta = 76.92$) might be something like this:
$$76.92 \leq 4.54x + 7.31y \leq 81.92$$
It would be nice if this could be generalized for more variables too, that is, like this:
$$\delta \leq x_0A_0+x_1A_1+\dots +x_nA_n \leq C, \delta \in \mathbb{R}$$
With $x_i\in \mathbb{Z}^+_{\neq 0}$ and $A_i\in \{x | x = 0.01\mu, \forall \mu \in \mathbb{Z}^+_{\neq0}\}$ as before.
FrobeniusSolve[]
andKnapsackSolve[]
? $\endgroup$