Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement virtual node penalty costs #64

Open
jetuk opened this issue Oct 27, 2023 · 1 comment
Open

Implement virtual node penalty costs #64

jetuk opened this issue Oct 27, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@jetuk
Copy link
Member

jetuk commented Oct 27, 2023

This was output from the last developer's meeting and subsequent discussion. It was felt this would simplify applying licence costs to nodes using those licences.

  • Virtual storage nodes (and some others) have their own penalty costs applied to attached nodes.
  • have an option for a node's cost to be the min (or max, sum, etc) of those affecting it.

Options for defining how a node's costs are aggregated:

{
    "name":  "source1",
    "type":  "input",
    "max_flow": 10.0,
    "cost": {
         "type":  "virtual"
         "agg":  "min"
    }
}

{
    "name":  "source1",
    "type":  "input",
    "max_flow": 10.0,
    "cost_agg": "min",
    "cost": 10.0
}

{
    "name":  "source1",
    "type":  "input",
    "max_flow": 10.0,
    "cost": {
        "value": 10.0,
        "agg": "min",
    }
}
@jetuk jetuk added the enhancement New feature or request label Oct 27, 2023
@jetuk
Copy link
Member Author

jetuk commented Nov 28, 2023

Initial implementation merged in #71

Outstanding actions:

  • Some good documentation especially as its a pretty significant change from v1.
  • The ability to specify separate agg funcs to apply to the virtual costs and to the aggregated virtual cost and the local cost could be useful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant