Minizinc Placement Model Ex. for vDNS+vFW use case
[optf/osdf.git] / examples / placement-models-minizinc / vdns-plus-vfw-use-case / normal-silver-less-pref.dzn
diff --git a/examples/placement-models-minizinc/vdns-plus-vfw-use-case/normal-silver-less-pref.dzn b/examples/placement-models-minizinc/vdns-plus-vfw-use-case/normal-silver-less-pref.dzn
new file mode 100755 (executable)
index 0000000..1184ece
--- /dev/null
@@ -0,0 +1,57 @@
+N_CLOUD_REGIONS = 3;  % e-dc-1, core-dc-1, core-dc-2\r
+N_ATTRIBUTES = 4;\r
+N_UTILIZATION_METRICS = 2;\r
+N_CAPACITY_METRICS = 2;\r
+N_VMS = 3;\r
+C_ALLOC_THRESHOLD = 0.65;\r
+CUST_ALLOC_THRESHOLD = 0.95;\r
+AVG_CPU_UTILIZATION_THRESHOLD = 0.7;\r
+PEAK_CPU_UTILIZATION_THRESHOLD = 0.95;\r
+\r
+cust_type = SILVER;\r
+\r
+w_metrics = [0.9, 0.1];\r
+w_attributes = [0, 0.9, 0.05, 0.05];\r
+\r
+%{ CORE_DC, DIRECT_CONN, MIN_GUARANTEE, SRIOV };\r
+capabilities = [| 0, 1, 1, 1\r
+                | 1, 0, 1, 1\r
+                | 1, 1, 0, 1 |];\r
+\r
+cpu_utilization = [| 0.05, 0.9\r
+                   | 0.5, 0.94\r
+                   | 0.5, 0.94 |];\r
+\r
+c_alloc_capacity = [| 600, 1200\r
+                    | 1200, 2400\r
+                    | 2400, 4800 |];\r
+\r
+c_total_capacity = [| 1000, 2000\r
+                    | 2000, 4000\r
+                    | 4000, 8000 |];\r
+\r
+c_alloc_capacity_norm = [| 0.6, 0.6\r
+                         | 0.6, 0.6\r
+                         | 0.6, 0.6 |];\r
+\r
+cust_alloc_capacity = [| 60, 120\r
+                       | 120, 240\r
+                       | 240, 480 |];\r
+\r
+cust_total_capacity = [| 100, 200\r
+                       | 200, 400\r
+                       | 400, 800 |];\r
+\r
+cust_alloc_capacity_norm = [| 0.6, 0.6\r
+                            | 0.6, 0.6\r
+                            | 0.6, 0.6 |];\r
+\r
+vm_reqs = [| 2, 8\r
+           | 4, 16\r
+           | 8, 32 |];\r
+\r
+%vm_reqs_sums = [ 14, 56 ];\r
+\r
+vm_reqs_sums_norm = [| 0.014, 0.028\r
+                     | 0.007, 0.014\r
+                     | 0.0035, 0.007 |];\r