Hello, I am trying to finish a model of arbitrage calculation for a project. I have written the mathematical modelling and trying to make it work through CPLEX ILOG. You can find both Mathematical Model and inital code I wrote in the attachments. Basically I have to make a working model that start with any currency and leaves the system returning to the same currency and creating an arbitrage value if there is any. At first I though I can solve it as many times as there is currency and take the maximum arbitrage value but that is not efficient at all. To solve this issue I have introduced a dummy currency in the beginning. This dummy currency has 1-1 exchange rate with all the other currencies. It starts via going to any currency and returns to the dummy currency only by the currency it has entered. (To prevent issues such as from dummy currency to GBP, then GBP to JPY and JPY to Dummy creating a non-existen arbitrage value I introduced a boolean that states y[0][i] == y[i][0] for all i ensuring that dummy can enter and leave through a single currency). You can find simple arbitrage calculations starting from a predetermined currecny but I couldn't find too much information about modelling for all possible currencies. (The single model just maximizes inflow-outflow to initial node for any of those who are interested) Whenever I run the code cplex returns me a trivial solutions. Is the problem at my code or at my mathematical model? Thank you for all your help! https://www.dropbox.com/sh/cwm8amp3x3glbgd/AAAF1lN1soYJZS64NaWPemqZa/OR?dl=0
This question is marked "community wiki".
asked
OR-Enthusiast |

Hi, your link is broken. But you could have a look at a similar example at http://docrossrates.eu-gb.mybluemix.net/DOcrossrates.pdf regards
answered
AlexFleischer |