% Copyright 2020 ArctosLabs Scandinavia AB % % Licensed under the Apache License, Version 2.0 (the "License"); % you may not use this file except in compliance with the License. % You may obtain a copy of the License at % % http://www.apache.org/licenses/LICENSE-2.0 % % Unless required by applicable law or agreed to in writing, software % distributed under the License is distributed on an "AS IS" BASIS, % WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or % implied. % See the License for the specific language governing permissions and % limitations under the License. % This minizinc model is generated using {{generator_data.file}} % at {{generator_data.time}}. {% import 'macros.j2' as macros -%} %This is the NETWORK RESOURCE MODEL {{ macros.vim_accounts(vim_accounts) }} {{ macros.trp_link_latency(trp_link_latency) }} {{ macros.trp_link_jitter(trp_link_jitter) }} {{ macros.trp_link_price_list(trp_link_price_list) }} {{ macros.vnf_price_list_per_vim(ns_desc) }} % This is the NETWORK BASIC LOAD MODEL (CONSUMED) % NOTE. This is not applicable in OSM Release 7 % This is the SERVICE CONSUMPTION MODEL % These are the variables, i.e. which DC to select for each VNF {{ macros.variables_vnf(ns_desc)}} % These are the set of rules for selecting DCs to VNFs {{ macros.vld_constraints(vld_desc) }} % Calculate the cost for VNFs and cost for transport link and total cost {{ macros.transport_cost(vld_desc) }} {{ macros.used_vim_cost(ns_desc) }} var int: total_cost = used_transport_cost + used_vim_cost; solve minimize total_cost;