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

Refactor constraint building #1607

Merged
merged 98 commits into from
Sep 25, 2023
Merged

Refactor constraint building #1607

merged 98 commits into from
Sep 25, 2023

Conversation

a-zakir
Copy link
Contributor

@a-zakir a-zakir commented Sep 3, 2023

this follows on from the work on #1234 #1605

@a-zakir a-zakir marked this pull request as ready for review September 5, 2023 15:11
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@a-zakir a-zakir merged commit a9062f8 into develop Sep 25, 2023
@a-zakir a-zakir deleted the fix/untitled branch September 25, 2023 08:45
a-zakir added a commit that referenced this pull request Oct 2, 2023
* start

* add FictitiousLoad

* shortTermStorageLevel

* flowDissociation

* bindingConstraintHour

* ghost

* this is not only about constraint builder

* pay attention to the time step

* specific issue

* bug free

* smooth green?

* M&M

* Max Pumping ok?

* Area Hydro Level (_-_)

* finally

* basic

* tiny

* clean code

* add {PMin,PMax}DispatchableGeneration

* clean code

* ConsistenceNODU ok

* NbUnitsOutageLessThanNbUnitsStop

* NbDispUnitsMinBoundSinceMinUpTime

* MinDownTime

* setup Access Control

* remove comments

* remove comments

* treat major code smells

* treat major code smells 2

* more on major code smells

* update after review

* about objects lifetime

* (does not compile) cut into small pieces

* Revert "(does not compile) cut into small pieces"

This reverts commit 5a047c0.

* aesthetic

* remove comment

* smart move

* **** move

* shallow

* customize error exception

* test new variable construction design

* refactor

* update build for NODU

* clean deprecated code

* update build for NumberStoppingDispatchableUnits

* on NumberStartingDispatchableUnits

* on NumberBreakingDownDispatchableUnits

* new build NTCDirect

* missing file  NTCDirect

* Interco Direct/Indirect Cost

* ShortTermStorageInjection

* ShortTermStorageWithdrawal

* ShortTermStorageLevel

* HydProd

* HydProdDown

* HydProdUp

* Pumping

* HydroLevel

* Overflow

* FinalStorage

* fix

* LayerStorage

* Psitive/Negative UnsuppliedEnergy

* remove old code

* remove code

* fix

* move

* clarity matters thanks to @sylvlecl

* There is no need for repetition

* it makes sense:  Constraint->ConstraintFactory

* update

* remove redundant check

* rename things

* unused

* debug

* fiiiiiiiix

* add explicit keyword

* inspect unique_ptr

* resolve conflicts

* quick fix

* suggestion by @flomnes

Co-authored-by: Florian Omnès <[email protected]>

* add docs

* docs for new constraint classes

* update

* complete new classes documentation

* update

* update

* small changes

* small changes 2

* remove comment

* default value for constraint op

* clean code

* smell code

* smell code

* fix

* pretty

* typo

---------

Co-authored-by: Florian Omnès <[email protected]>
a-zakir added a commit that referenced this pull request Oct 2, 2023
* start

* add FictitiousLoad

* shortTermStorageLevel

* flowDissociation

* bindingConstraintHour

* ghost

* this is not only about constraint builder

* pay attention to the time step

* specific issue

* bug free

* smooth green?

* M&M

* Max Pumping ok?

* Area Hydro Level (_-_)

* finally

* basic

* tiny

* clean code

* add {PMin,PMax}DispatchableGeneration

* clean code

* ConsistenceNODU ok

* NbUnitsOutageLessThanNbUnitsStop

* NbDispUnitsMinBoundSinceMinUpTime

* MinDownTime

* setup Access Control

* remove comments

* remove comments

* treat major code smells

* treat major code smells 2

* more on major code smells

* update after review

* about objects lifetime

* (does not compile) cut into small pieces

* Revert "(does not compile) cut into small pieces"

This reverts commit 5a047c0.

* aesthetic

* remove comment

* smart move

* **** move

* shallow

* customize error exception

* test new variable construction design

* refactor

* update build for NODU

* clean deprecated code

* update build for NumberStoppingDispatchableUnits

* on NumberStartingDispatchableUnits

* on NumberBreakingDownDispatchableUnits

* new build NTCDirect

* missing file  NTCDirect

* Interco Direct/Indirect Cost

* ShortTermStorageInjection

* ShortTermStorageWithdrawal

* ShortTermStorageLevel

* HydProd

* HydProdDown

* HydProdUp

* Pumping

* HydroLevel

* Overflow

* FinalStorage

* fix

* LayerStorage

* Psitive/Negative UnsuppliedEnergy

* remove old code

* remove code

* fix

* move

* clarity matters thanks to @sylvlecl

* There is no need for repetition

* it makes sense:  Constraint->ConstraintFactory

* update

* remove redundant check

* rename things

* unused

* debug

* fiiiiiiiix

* add explicit keyword

* inspect unique_ptr

* resolve conflicts

* quick fix

* suggestion by @flomnes

Co-authored-by: Florian Omnès <[email protected]>

* add docs

* docs for new constraint classes

* update

* complete new classes documentation

* update

* update

* small changes

* small changes 2

* remove comment

* default value for constraint op

* clean code

* smell code

* smell code

* fix

* pretty

* typo

---------

Co-authored-by: Florian Omnès <[email protected]>
@a-zakir a-zakir restored the fix/untitled branch October 4, 2023 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants