summaryrefslogtreecommitdiffstats
path: root/examples/placement-models-minizinc/vdns-plus-vfw-use-case/silver.dzn
diff options
context:
space:
mode:
authorramkri123 <ramkri123@gmail.com>2018-02-27 14:52:49 -0800
committerramkri123 <ramkri123@gmail.com>2018-02-27 15:15:21 -0800
commitaa358e298d345da0582ad1ea3b496bb44650a4f1 (patch)
tree3d4bf5484b53f9379ddf1b85f4d56565cbe2794a /examples/placement-models-minizinc/vdns-plus-vfw-use-case/silver.dzn
parentf2541009309551548ed3567adbdc8f2e5b78d185 (diff)
Minizinc Placement Model Ex. for vDNS+vFW use case
Issue-ID: OPTFRA-153 Change-Id: I228e638e4c5bfb2cabd970c571077f3ebaf01ece Signed-off-by: ramkri123 <ramkri123@gmail.com>
Diffstat (limited to 'examples/placement-models-minizinc/vdns-plus-vfw-use-case/silver.dzn')
-rwxr-xr-xexamples/placement-models-minizinc/vdns-plus-vfw-use-case/silver.dzn62
1 files changed, 62 insertions, 0 deletions
diff --git a/examples/placement-models-minizinc/vdns-plus-vfw-use-case/silver.dzn b/examples/placement-models-minizinc/vdns-plus-vfw-use-case/silver.dzn
new file mode 100755
index 0000000..4779a41
--- /dev/null
+++ b/examples/placement-models-minizinc/vdns-plus-vfw-use-case/silver.dzn
@@ -0,0 +1,62 @@
+% enum CUST_TYPES = { STANDARD, SILVER, GOLD };
+% enum ATTRIBUTES = { CORE_DC, DIRECT_CONN, MIN_GUARANTEE, SRIOV };
+% enum METRICS = { AVG_CPU_UTILIZATION, PEAK_CPU_UTILIZATION };
+% enum CLOUD_REGION_CAPACITY = {CPU_CLOUD, MEMORY_CLOUD};
+
+N_CLOUD_REGIONS = 3; % e-dc-1, core-dc-1, core-dc-2
+N_ATTRIBUTES = 4;
+N_UTILIZATION_METRICS = 2;
+N_CAPACITY_METRICS = 2;
+N_VMS = 3;
+C_ALLOC_THRESHOLD = 0.65;
+CUST_ALLOC_THRESHOLD = 0.95;
+AVG_CPU_UTILIZATION_THRESHOLD = 0.7;
+PEAK_CPU_UTILIZATION_THRESHOLD = 0.95;
+
+cust_type = SILVER;
+N_VNFS = 2;
+
+w_metrics = [0.9, 0.1];
+w_attributes = [0.1, 0.9, 0.05, 0.05];
+
+capabilities = [| 0, 1, 1, 1
+ | 1, 0, 1, 1
+ | 1, 1, 0, 1 |];
+
+cpu_utilization = [| 0.05, 0.9
+ | 0.1, 0.5
+ | 0.6, 0.8 |];
+
+c_alloc_capacity = [| 600, 1200
+ | 1200, 2400
+ | 2400, 4800 |];
+
+c_total_capacity = [| 1000, 2000
+ | 2000, 4000
+ | 4000, 8000 |];
+
+c_alloc_capacity_norm = [| 0.6, 0.6
+ | 0.6, 0.6
+ | 0.6, 0.6 |];
+
+cust_alloc_capacity = [| 60, 120
+ | 120, 240
+ | 240, 480 |];
+
+cust_total_capacity = [| 100, 200
+ | 200, 400
+ | 400, 800 |];
+
+cust_alloc_capacity_norm = [| 0.6, 0.6
+ | 0.6, 0.6
+ | 0.6, 0.6 |];
+
+vm_reqs = [| 1, 4
+ | 2, 8
+ | 4, 16 |];
+
+%vm_reqs_sums = [ 14, 56 ];
+
+vm_reqs_sums_norm = [| 0.007, 0.014
+ | 0.0035, 0.007
+ | 0.00175, 0.0035 |];