Figure 2.17 (file ampIEx2.3-2.txt) gives the AMPL code for the arbitrage problem.The model is general in the sense that it can be used to maximize the final holdings
y of any currency, named outCurrency, starting with an initial amount I of another
currency, named inCurrency. Additionally, any number of currencies, n, can be involved in the arbitrage process.
The exchange rates are defined as