I have the following problem:
A reward function $R(i)$ defined as
$$ R(i) > R(j) \iff i > j $$
and a cost function $C(i)$
$$ C(i) > C(j) \iff i > j $$
Both functions are defined on positive integers.
I cannot change the sequence $C(i)$ for $i \in 0,\ldots,n$ but I can choose any arbitrary reward function $R$. The only constraints is the increasing monotonicity.
Then I have to find the $i$ value that maximizes $R$, while minimizing $C$.
Or more formally the largest value of i that provided "bounded" increase in both cost and rewards. For example, if C and R are defined for $i \in 0,\ldots,5$ in this way
$$ R(i) = [0,1,2,3,4,5] $$
and $$ C(i) = [10,12,15,44,48]$$
then the best $i$ would be 2, as the increase in cost does not compensate the increase in reward.
Which tool I may use in this case?