Versions Compared

Key

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

...

JSON Viewer
{
"minimize": {
"sum": [
{
"product": [
100,
{
"distance_between": [
"customer_loc",
"vG"
]
}
]
},
{
"product": [
200,
{
"hpa_score": [
"vG"
]
}
]
}
]
}
}


New Optimization Model


AttributeRequiredContentValuesDescription
goalYStringminimize, maximizeThe goal of the optimization
operationYStringattribute*, sum, min, maxThe operation which will be a part of the objective function
operandsYList of operand

The operand on which the operation is to be performed.

The operand can be an attribute or result of a function 


operand object

AttributeRequiredContentValuesDescription
functionYStringdistance_between, latency_between, attributeFunction to be performed on the parameters
weightNdecimaldefault: 1.0Weight of the operand
paramsYdict

parameters on which the function will be applied.

The parameters will change for each function.


Examples


Scenario: 

objective function - distance_between(demand, location) + distance_between(demand, location)

JSON Viewer
{
   "goal": "minimize",
   "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"      
         } 
      }
   ]
}

...

JSON Viewer
{
   "goal": "minimize",
   "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"      
         } 
      }
   ]
}

...