Exercise 1.11 (Optimal currency conversion)

Suppose that there are N available currencies, and assume that one unit of currency i can be exchanged for rij units of currency j. (Naturally, we assume that rij > 0.) There also certain regulations that impose a limit ui on the total amount of currency i that can be exchanged on any given day. Suppose that we start with B units of currency 1 and that we would like to maximize the number of units of currency N that we end up with at the end of the day, through a sequence of currency transactions. Provide a linear programming formulation of this problem. Assume that for any sequence i1,,ik of currencies, we have ri1i2ri2i3rik1ikriki1 1, which means that wealth cannot be multiplied by going through a cycle of currencies.

Answers

We model the amount of currencies exchanged from the currency i, i = 1,,N for a currency j, j = 1,,12, by xij. Our goal is to maximize the amount of currency in N

j=1Nr jN xjN

under the condition that current regulations impose a limit ui on the total amount of currency i that can be exchanged on any given day:

j=1Nx ij ui,i = 1,,N,

and that we have a starting amount of B currency i:

j=1Nx 1j B.

Obviously, we cannot exchange more currency from i to other currencies than we changed to i before:

j=1Nr jixji k=1Nx jk,i = 2,,N.

and no currency will be exchanged for currency 1 or from currency N:

xi1 = 0,xNi = 0,i = 1,,N.

PIC

Figure 1: Conversion possibilities for the currencies.

These conditions result in the following linear optimization problem:

maximize j=1NrjN xjN subject to j=1Nxij ui, i = 1,,N j=1Nx1j B j=1Nrjixji k=1Nxjk,i = 2,,N xi1 = 0,xNi = 0, i = 1,,N xij 0, i = 1,,N,j = 1,,N
User profile picture
2022-02-10 13:21
Comments
  • In the third last constraint after the sign greater than equal to there should not be summation (k=1to N) (xik), instead of xjk, because the the currency converted to currency i is more than the currency converted from i to currencey k
    jfatima2023-11-07
  • Why in objective function, we have xjN, instead of xiN and riN?
    jfatima2023-11-07