-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
part 1: introduce constraints data objects
- Loading branch information
Showing
17 changed files
with
154 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
#pragma once | ||
#include "constraint_builder.h" | ||
|
||
struct FinalStockEquivalentData | ||
{ | ||
const int pdt; | ||
const bool AccurateWaterValue; | ||
const bool DirectLevelAccess; | ||
std::vector<int>& NumeroDeContrainteEquivalenceStockFinal; | ||
}; | ||
|
||
class FinalStockEquivalent : private Constraint | ||
{ | ||
public: | ||
using Constraint::Constraint; | ||
void add(int pays); | ||
void add(int pays, FinalStockEquivalentData& data); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
#pragma once | ||
#include "constraint_builder.h" | ||
struct HydroPowerData | ||
{ | ||
const bool presenceHydro; | ||
const int TurbEntreBornes; | ||
const bool presencePompage; | ||
const int NombreDePasDeTempsPourUneOptimisation; | ||
std::vector<int>& NumeroDeContrainteEnergieHydraulique; | ||
const double pumpingRatio; | ||
}; | ||
|
||
class HydroPower : private Constraint | ||
{ | ||
public: | ||
using Constraint::Constraint; | ||
void add(int pays); | ||
void add(int pays, HydroPowerData& data); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 6 additions & 11 deletions
17
src/solver/optimisation/HydroPowerSmoothingUsingVariationSum.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,17 @@ | ||
#pragma once | ||
#include "constraint_builder.h" | ||
|
||
struct MaxHydroPowerData | ||
{ | ||
const bool presenceHydro; | ||
const bool TurbEntreBornes; | ||
const bool PresenceDePompageModulable; | ||
const int NombreDePasDeTempsPourUneOptimisation; | ||
std::vector<int>& NumeroDeContrainteMaxEnergieHydraulique; | ||
}; | ||
class MaxHydroPower : private Constraint | ||
{ | ||
public: | ||
using Constraint::Constraint; | ||
void add(int pays); | ||
void add(int pays, MaxHydroPowerData& data); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
#pragma once | ||
#include "constraint_builder.h" | ||
struct MaxPumpingData | ||
{ | ||
const bool PresenceDePompageModulable; | ||
std::vector<int>& NumeroDeContrainteMaxPompage; | ||
}; | ||
|
||
class MaxPumping : private Constraint | ||
{ | ||
public: | ||
using Constraint::Constraint; | ||
void add(int pays); | ||
void add(int pays, MaxPumpingData& data); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
#pragma once | ||
#include "constraint_builder.h" | ||
|
||
struct MinHydroPowerData | ||
{ | ||
const bool presenceHydro; | ||
const bool TurbEntreBornes; | ||
const bool PresenceDePompageModulable; | ||
const int NombreDePasDeTempsPourUneOptimisation; | ||
std::vector<int>& NumeroDeContrainteMinEnergieHydraulique; | ||
}; | ||
|
||
class MinHydroPower : private Constraint | ||
{ | ||
public: | ||
using Constraint::Constraint; | ||
void add(int pays); | ||
void add(int pays, MinHydroPowerData& data); | ||
}; |
Oops, something went wrong.