--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at http://groups.google.com/group/ampl.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/6GjLcxoKmVA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ampl+uns...@googlegroups.com.
To post to this group, send email to am...@googlegroups.com.
Visit this group at https://groups.google.com/group/ampl.
FKtf3.mod
set room;
set specialty;
set day;
set scenario;
param O > 0;
param S > 0;
param T > 0;
param Eps > 0;
param h > 0;
param a {i in 1..O} > 0;
param k {s in 1..S, t in 1..T} >= 0;
param c1 {t in 1..T, z in 1..T} >= 0;
param c2 >= 0;
param c3 >= 0;
param Lamda >= 0;
param Omega2 >= 0;
param e {s in 1..S, t in 1..T, eps in 1..Eps} >= 0;
param g {s in 1..S, t in 1..T, eps in 1..Eps} >= 0;
param Pi {eps in 1 ..Eps} >= 0, <= 1;
var X {i in 1..O, s in 1..S, t in 1..T} >= 0, integer;
var U {s in 1..S, t in 1..T} >= 0;
var Y {s in 1..S, t in 1..T, z in 1..T} >= 0;
var Rho {s in 1..S, t in 1..T, eps in 1..Eps} >= 0;
var Iota {s in 1..S, t in 1..T, eps in 1..Eps} >= 0;
var FC >= 0;
var SC >= 0;
var d {eps in 1 ..Eps};
var Teta {eps in 1..Eps} >= 0;
var f2 {s in 1..S, t in 1..T, eps in 1..Eps};
var Gama {s in 1..S, t in 1..T, eps in 1..Eps} >= 0;
minimize P_tradeoff:
FC + SC + Lamda * sum {eps in 1..Eps} Pi[eps] * (d[eps] + 2 * Teta[eps]) + Omega2 * sum {s in 1..S} sum {t in 1..T} sum {eps in 1..Eps} Pi[eps] * (f2[s,t,eps] + 2 * Gama[s,t,eps]);
subject to Eq4_01:
FC = sum {t in 1..T} sum {z in 1..T} (c1[t,z] * sum {s in 1..S} Y[s,t,z]);
subject to Eq4_02:
SC = sum {s in 1..S} sum {t in 1..T} sum {eps in 1..Eps} Pi[eps] * (c2 * Rho[s,t,eps] + c3 * Iota[s,t,eps]);
subject to Eq4_03 {eps in 1..Eps}:
d[eps] = sum {s in 1..S} sum {t in 1..T} (c2 * Rho[s,t,eps] + c3 * Iota[s,t,eps]) - sum {s in 1..S} sum {t in 1..T} sum {eps1 in 1..Eps} Pi[eps1] * (c2 * Rho[s,t,eps1] + c3 * Iota[s,t,eps1]);
subject to Eq4_04 {s in 1..S, t in 1..T, eps in 1..Eps}:
f2[s,t,eps] = e[s,t,eps] - h * sum {i in 1..O} X[i,s,t] + g[s,t,eps] - U[s,t] + sum {z in 1..T} Y[s,z,t] - sum {z in 1..T} Y[s,t,z] + Rho[s,t,eps] - Iota[s,t,eps];
subject to Eq4_2 {i in 1..O, t in 1..T}:
sum {s in 1..S} X[i,s,t] = a[i];
subject to Eq4_3 {t in 1..T}:
sum {s in 1..S} U[s,t] <= h;
subject to Eq4_4 {s in 1..S, t in 1..T}:
sum {i in 1..O} X[i,s,t] <= k[s,t];
subject to Eq4_5 {s in 1..S, t in 1..T, eps in 1..Eps}:
U[s,t] <= g[s,t,eps];
subject to Eq4_6 {s in 1..S, t in 1..T, eps in 1..Eps}:
sum {z in 1..T} Y[s,t,z] <= e[s,t,eps];
subject to Eq4_7 {s in 1..S, t in 1..T, eps in 1..Eps}:
Rho[s,t,eps] <= e[s,t,eps];
subject to Eq4_8 {s in 1..S, t in 1..T, eps in 1..Eps}:
Iota[s,t,eps] <= h;
subject to Eq4_15 {s in 1..S, t in 1..T, eps in 1..Eps}:
h * sum {i in 1..O} X[i,s,t] >= g[s,t,eps] - U[s,t] + sum {z in 1..T} Y[s,z,t];
subject to Eq4_16 {s in 1..S, t in 1..T, eps in 1..Eps}:
e[s,t,eps] = h * sum {i in 1..O} X[i,s,t] - g[s,t,eps] + U[s,t] - sum {z in 1..T} Y[s,z,t] + sum {z in 1..T} Y[s,t,z] + Rho[s,t,eps] - Iota[s,t,eps];
subject to Eq4_18 {eps in 1..Eps}:
d[eps] + Teta[eps] >= 0;
subject to Eq4_20 {s in 1..S, t in 1..T, eps in 1..Eps}:
f2[s,t,eps] + Gama[s,t,eps] >= 0;
FKtf3.dat
data;
param O = 2;
param S = 6;
param T = 5;
param Eps = 4;
set room:= 1 2;
set specialty:= 1 2 3 4 5 6;
set day:= 1 2 3 4 5;
set scenario:= 1 2 3 4;
param h = 8;
param
a:=
1 1
2 8;
param k:
1 2 3 4 5:=
1 2 3 3 3 2
2 2 2 2 3 2
3 3 3 2 2 2
4 3 2 2 3 2
5 2 2 3 3 3
6 3 2 2 3 2;
param
Pi:=
1 0.75
2 0.10
3 0.075
4 0.075;
param c1:
1 2 3 4 5:=
1 350 50 100 150 200
2 300 350 50 100 150
3 250 300 350 50 100
4 200 250 300 350 50
5 150 200 250 300 350
;
param
c2 = 80;
param
c3 = 40;
param
Lamda = 0.1;
param
Omega2 = 100;
param e:
1 2 3 4:=
1 1 7.03 8.33 3.13 10.93
1 2 5.88 7.18 1.98 9.78
1 3 9.49 10.79 5.59 13.39
1 4 5.93 7.23 2.03 9.83
1 5 7.40 8.70 3.50 11.30
2 1 16.01 16.68 14.00 18.02
2 2 13.68 14.35 11.67 15.69
2 3 14.33 15.00 12.32 16.34
2 4 13.44 14.11 11.43 15.45
2 5 13.32 13.99 11.31 15.33
3 1 12.50 12.93 11.21 14.22
3 2 13.42 13.85 12.13 15.14
3 3 12.92 13.35 11.63 14.64
3 4 12.43 12.86 11.14 14.15
3 5 12.42 12.85 11.13 14.14
4 1 13.80 14.77 10.89 17.68
4 2 16.12 17.09 13.21 20.00
4 3 14.58 15.55 11.67 18.46
4 4 13.88 14.85 10.97 17.76
4 5 14.87 15.84 11.96 18.75
5 1 13.82 14.35 12.23 15.94
5 2 13.09 13.62 11.50 15.21
5 3 16.29 16.82 14.70 18.41
5 4 12.55 13.08 10.96 14.67
5 5 12.79 13.32 11.20 14.91
6 1 14.58 15.56 11.64 18.50
6 2 15.30 16.28 12.36 19.22
6 3 15.00 15.98 12.06 18.92
6 4 12.85 13.83 9.91 16.77
6 5 13.30 14.28 10.36 17.22
;
param g:
1 2 3 4:=
1 1 3.91 5.21 0.00 7.81
1 2 3.27 4.57 0.00 7.17
1 3 5.27 6.57 1.37 9.17
1 4 3.30 4.60 0.00 7.20
1 5 4.11 5.41 0.21 8.01
2 1 5.34 6.01 3.33 7.35
2 2 4.56 5.23 2.55 6.57
2 3 4.78 5.45 2.77 6.79
2 4 4.48 5.15 2.47 6.49
2 5 4.44 5.11 2.43 6.45
3 1 3.12 3.55 1.83 4.41
3 2 3.36 3.79 2.07 4.65
3 3 3.23 3.66 1.94 4.52
3 4 3.11 3.54 1.82 4.40
3 5 3.11 3.54 1.82 4.40
4 1 3.45 4.42 0.54 6.36
4 2 4.03 5.00 1.12 6.94
4 3 3.65 4.62 0.74 6.56
4 4 3.47 4.44 0.56 6.38
4 5 3.72 4.69 0.81 6.63
5 1 3.45 3.98 1.86 5.04
5 2 3.27 3.80 1.68 4.86
5 3 4.07 4.60 2.48 5.66
5 4 3.14 3.67 1.55 4.73
5 5 2.91 3.44 1.32 4.50
6 1 3.65 4.63 0.71 6.59
6 2 3.83 4.81 0.89 6.77
6 3 3.75 4.73 0.81 6.69
6 4 3.21 4.19 0.27 6.15
6 5 3.32 4.30 0.38 6.26
;
--
You received this message because you are subscribed to a topic in the Google Groups "AMPL Modeling Language" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ampl/6GjLcxoKmVA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ampl+uns...@googlegroups.com.