Formulation (Core)
C0 = 50000; ! Initial amount of cash
G = 0.005; ! Transaction cost rate
V = 0.15; ! Diversification limit
obj = max SUM(T=4: c[T]);
BAL[T,I] WHERE (Tɜ) AND (Iɟ):
H[I,T] = H[I+1,T-1] + B[I,T] - S[I,T] ;
BAL[T,I] WHERE (Tɜ) AND (I=7) :
BAL[T,I] WHERE (T=4) AND (Iɟ) :
var h{i in I, t in T} >=0;
var b{i in I, t in T} >=0;
var d{i in I, t in T} >=0;
param C0:= 50000; # Initial amount of cash
param G = 0.005; # Transaction cost rate
param V = 0.15; # Diversification limit
maximize obj: sum {t inT: t=4} c[t];
subject to bal{t in T: t< 4,i in I: i ɟ}:
h[i,t] =h[i+1, t-1]+ b[i,t] - d[i,t];
subject to bal {t in T: t< 4,i in I: i = 7}:
subject to bal{t in T: t=4,i in I: iɟ}: