Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Objective function object

AttributeRequiredContentValuesDescription
operationNString

sum, min, max

The operation which will be a part of the objective function
operandsN

List of operand object


The operand on which the operation is to be performed.

The operand can be an attribute or result of a function 

operand object

AttributeRequiredContentValuesDescription
weightNdecimaldefault: 1.0Weight of the operand
objective_functionNObjective function object

functionNString

distance_between,

latency_between, attribute

Function to be performed on the parameters
fucntion_paramsNdict

parameters on which the function will be applied.

The parameters will change for each function.

...

JSON Viewer
{
   "goal": "minimize",
   "objective_function": {
      "operation": "sum",
      "operands": [
         {
            "function": "distance_between",
            "weight": 1.0,
            "params": {
               "demand": "vG",
               "location": "customer_loc"      
            } 
         },
         {
 	        "function": "distance_between",
            "weight": 1.0,
            "params": {
               "demand": "vFW",
               "location": "customer_loc"      
            } 
         }
      ]
   }
}


Scenario: 

objective function - latency(demand) + latency(demand)

...

JSON Viewer
{
   "goal": "minimize",
   "objective_function": {
   "operation": "sum",
   "operands": [
      {
         "function": "attribute",
         "weight": 1.0,
         "params": {
            "demand": "urllc_core",
            "attribute": "latency"      
         } 
      },
      {
         "function": "attribute",
         "weight": 1.0,
         "params": {
            "demand": "urllc_ran",
            "attribute": "latency"      
         } 
      }
   ]
 }
}


Scenario: 

_bw = [100, 200, 300]

...