PyPSA / PyPSA/linopy

Support constant values in objective

Open
#236 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

data-model enhancement model formulation
Dominant language
Python
Stars
257
Forks
87
Avg merge
1d 3h
Merged PRs (30d)
29

Description

  1. if the problem need to convert multi-objectives to singe-objective, it's necessary to make normalization involving some constant variables.
    It's not conveniet to construct objective containing constant, such as x+1
    Here is a trick to add constant
    constant_1=m.add_variables(lower=1, upper=1,name="constant_1")
  2. class Variable only have sum function, other operations are also needed, such as std

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue points to the Variable class and the multi-objective normalization path. Read those entry points first to determine how constant objectives and Variable operations are represented; done should support direct constant terms in objectives and define and test the requested additional operations, including std.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.