#define CURRS 3 // Kinds of currency other than Francs #define BRKPTS 24 // 15-minute breakpoints 2lp_main() { double pr[BRKPTS][CURRS]; continuous Fp[BRKPTS+1],Fm[BRKPTS+1]; continuous Holdings[BRKPTS+1][CURRS]; continuous Buy[BRKPTS+1][CURRS],Sell[BRKPTS+1][CURRS]; pr = { 2.50, 3.50, 5.50, // Data from Table 2.2 2.495, 3.495, 5.50, 2.495, 3.49, 5.50, 2.50, 3.485, 5.50, 2.50, 3.49, 5.50, 2.495, 3.495, 5.505, 2.495, 3.485, 5.505, 2.50, 3.49, 5.50, 2.50, 3.49, 5.50, 2.495, 3.485, 5.50, 2.495, 3.49, 5.50, 2.50, 3.495, 5.50, 2.50, 3.495, 5.50, 2.505, 3.50, 5.505, 2.505, 3.50, 5.505, 2.50, 3.50, 5.50, 2.50, 3.50, 5.50, 2.495, 3.495, 5.498, 2.495, 3.495, 5.498, 2.50, 3.50, 5.50, 2.50, 3.50, 5.50, 2.505, 3.505, 5.501, 2.50, 3.505, 5.50, 2.50, 3.50, 5.50 }; // Initial and final positions Fp[0] - Fm[0] == 10000000; and(int j=0;j= -2500000; // Absolute bound on debit (1.0/BRKPTS)*sigma(int i=0;i= 0.0; // Reset bounds at 0.0 // Second output max: Fp[BRKPTS] - Fm[BRKPTS]; printf("Without debit, it was %.2f\n",Fp[BRKPTS] - Fm[BRKPTS]); }