...
JSON Viewer |
---|
{ "minimize": { "sum": [ { "product": [ 100, { "distance_between": [ "customer_loc", "vG" ] } ] }, { "product": [ 200, { "hpa_score": [ "vG" ] } ] } ] } } |
New Optimization Model
Attribute | Required | Content | Values | Description |
---|---|---|---|---|
goal | Y | String | minimize, maximize | The goal of the optimization |
operation | Y | String | attribute*, sum, min, max | The operation which will be a part of the objective function |
operands | Y | List 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
Attribute | Required | Content | Values | Description |
---|---|---|---|---|
function | Y | String | distance_between, latency_between, attribute | Function to be performed on the parameters |
weight | N | decimal | default: 1.0 | Weight of the operand |
params | Y | dict | 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" } } ] } |
...