Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
962f526
Ajout test_thermal_reserve_hausse
leosonvico Oct 14, 2024
6ebebe0
New test for reserves_heuristique
leosonvico Oct 15, 2024
72b56a6
Nouveau test_thermal_reserve_hausse
leosonvico Oct 15, 2024
d2a1f89
ajout fonction changemetn heuristique et réserves
leosonvico Oct 21, 2024
25c1455
Ajout heuristic pour contenir les nouvelles
leosonvico Oct 22, 2024
fdb2ab1
Heuristiques version opti sans vrai cout spillages
leosonvico Oct 22, 2024
ac2f3b5
Création heuristic.py avec plusieurs heuristiques possibles
leosonvico Oct 23, 2024
e75336d
creation du cas deux clusters
leosonvico Oct 23, 2024
0210801
ajout d'un nouveau test avec valeur BP
leosonvico Oct 29, 2024
b0c6f8b
ajout thermique éteint sans changement heuristiques
leosonvico Nov 4, 2024
7b53437
Changement equation eteint et ajout spill reserve
leosonvico Nov 6, 2024
f1c9844
changement equation eteint reserves
leosonvico Nov 7, 2024
b493974
ajout problème plexos et reecriture sortie heuristiques
leosonvico Nov 12, 2024
aa262bd
Changement heuristique optimisations
leosonvico Nov 13, 2024
f2844b3
reecriture heuristiques et ajout 1cluster
leosonvico Nov 27, 2024
0947b42
Ajout data 2cluster3res et restructuration des heuristiques
leosonvico Dec 6, 2024
91828d4
ajout code pour tests BP
leosonvico Jan 16, 2025
6743c93
nouveau_push
leosonvico Jan 22, 2025
5e283bb
changement_structure_tests_bp
leosonvico Feb 3, 2025
00f9cc9
Dernier ajout stage
leosonvico Mar 12, 2025
baa447e
commit avant nettoyage
leosonvico Mar 14, 2025
ed613c7
nettoyage code
leosonvico Mar 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Changement equation eteint et ajout spill reserve
  • Loading branch information
leosonvico authored and Juliette-Gerbaux committed Mar 14, 2025
commit 7b53437f84afc2f8fa05813b54bc4437842c6b9a
328 changes: 164 additions & 164 deletions result_accurate_step1.csv

Large diffs are not rendered by default.

336 changes: 168 additions & 168 deletions result_accurate_step2.csv

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,30 @@ study:
- name: tertiary2_reserve_down_not_supplied_cost
type: constant
value: 1000
- name: primary_reserve_up_oversupplied_cost
type: constant
value: 0
- name: primary_reserve_down_oversupplied_cost
type: constant
value: 0
- name: secondary_reserve_up_oversupplied_cost
type: constant
value: 0
- name: secondary_reserve_down_oversupplied_cost
type: constant
value: 0
- name: tertiary1_reserve_up_oversupplied_cost
type: constant
value: 0
- name: tertiary1_reserve_down_oversupplied_cost
type: constant
value: 0
- name: tertiary2_reserve_up_oversupplied_cost
type: constant
value: 0
- name: tertiary2_reserve_down_oversupplied_cost
type: constant
value: 0

components:
- id: D
Expand Down Expand Up @@ -107,6 +131,18 @@ study:
- name: nb_units_max
type: timeseries
timeseries: nb_units_max-ts
- name: nb_units_max_invisible
type: timeseries
timeseries: nb_units_max-ts
- name: nb_units_off_invisible
type: timeseries
timeseries: nb_units_max-ts
- name: nb_units_off_min
type: constant
value: 0
- name: nb_units_off_max
type: timeseries
timeseries: nb_units_max-ts
- name: max_failure
type: constant
value: 0
Expand Down Expand Up @@ -155,25 +191,37 @@ study:
- name: participation_max_tertiary2_reserve_down
type: constant
value: 27
- name : cost_participation_primary_reserve_up
- name : cost_participation_primary_reserve_up_on
type : constant
value : 0
- name : cost_participation_primary_reserve_up_off
type : constant
value : 0
- name : cost_participation_primary_reserve_down
type : constant
value : 0
- name : cost_participation_secondary_reserve_up
- name : cost_participation_secondary_reserve_up_on
type : constant
value : 0
- name : cost_participation_secondary_reserve_up_off
type : constant
value : 0
- name : cost_participation_secondary_reserve_down
type : constant
value : 0
- name : cost_participation_tertiary1_reserve_up
- name : cost_participation_tertiary1_reserve_up_on
type : constant
value : 0
- name : cost_participation_tertiary1_reserve_up_off
type : constant
value : 0
- name : cost_participation_tertiary1_reserve_down
type : constant
value : 0
- name : cost_participation_tertiary2_reserve_up
- name : cost_participation_tertiary2_reserve_up_on
type : constant
value : 0
- name : cost_participation_tertiary2_reserve_up_off
type : constant
value : 0
- name : cost_participation_tertiary2_reserve_down
Expand Down
58 changes: 46 additions & 12 deletions tests/functional/libs/heuristic_arrondi.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,17 @@ def arrondi_opti_sans_start_up(
cost : float,
startup_cost : float,
fixed_cost : float,
cost_participation_primary_reserve_up : float,
cost_participation_primary_reserve_up_on : float,
cost_participation_primary_reserve_up_off : float,
cost_participation_primary_reserve_down : float,
cost_participation_secondary_reserve_up : float,
cost_participation_secondary_reserve_up_on : float,
cost_participation_secondary_reserve_up_off : float,
cost_participation_secondary_reserve_down : float,
cost_participation_tertiary1_reserve_up : float,
cost_participation_tertiary1_reserve_up_on : float,
cost_participation_tertiary1_reserve_up_off : float,
cost_participation_tertiary1_reserve_down : float,
cost_participation_tertiary2_reserve_up : float,
cost_participation_tertiary2_reserve_up_on : float,
cost_participation_tertiary2_reserve_up_off : float,
cost_participation_tertiary2_reserve_down : float,
spillage_cost : float,
ens_cost : float,
Expand Down Expand Up @@ -241,13 +245,17 @@ def nouvelle_arrondi(
cost : float,
startup_cost : float,
fixed_cost : float,
cost_participation_primary_reserve_up : float,
cost_participation_primary_reserve_up_on : float,
cost_participation_primary_reserve_up_off : float,
cost_participation_primary_reserve_down : float,
cost_participation_secondary_reserve_up : float,
cost_participation_secondary_reserve_up_on : float,
cost_participation_secondary_reserve_up_off : float,
cost_participation_secondary_reserve_down : float,
cost_participation_tertiary1_reserve_up : float,
cost_participation_tertiary1_reserve_up_on : float,
cost_participation_tertiary1_reserve_up_off : float,
cost_participation_tertiary1_reserve_down : float,
cost_participation_tertiary2_reserve_up : float,
cost_participation_tertiary2_reserve_up_on : float,
cost_participation_tertiary2_reserve_up_off : float,
cost_participation_tertiary2_reserve_down : float,
spillage_cost : float,
ens_cost : float,
Expand Down Expand Up @@ -313,13 +321,17 @@ def old_arrondi(
cost : Optional[float] = 0,
startup_cost : Optional[float] = 0,
fixed_cost : Optional[float] = 0,
cost_participation_primary_reserve_up : Optional[float] = 0,
cost_participation_primary_reserve_up_on : Optional[float] = 0,
cost_participation_primary_reserve_up_off : Optional[float] = 0,
cost_participation_primary_reserve_down : Optional[float] = 0,
cost_participation_secondary_reserve_up : Optional[float] = 0,
cost_participation_secondary_reserve_up_on : Optional[float] = 0,
cost_participation_secondary_reserve_up_off : Optional[float] = 0,
cost_participation_secondary_reserve_down : Optional[float] = 0,
cost_participation_tertiary1_reserve_up : Optional[float] = 0,
cost_participation_tertiary1_reserve_up_on : Optional[float] = 0,
cost_participation_tertiary1_reserve_up_off : Optional[float] = 0,
cost_participation_tertiary1_reserve_down : Optional[float] = 0,
cost_participation_tertiary2_reserve_up : Optional[float] = 0,
cost_participation_tertiary2_reserve_up_on : Optional[float] = 0,
cost_participation_tertiary2_reserve_up_off : Optional[float] = 0,
cost_participation_tertiary2_reserve_down : Optional[float] = 0,
spillage_cost : Optional[float] = 0,
ens_cost : Optional[float] = 0,
Expand All @@ -335,3 +347,25 @@ def old_arrondi(

nbr_on = ceil(round(nbr_on_float,12))
return(nbr_on)

def old_arrondi_eteint_off(
nbr_on_float : float,
nbr_units_max : float,
nbr_off_float : float,
) -> int:

nbr_on = ceil(round(nbr_on_float,12))
nbr_off = ceil(round(nbr_off_float,12))

if nbr_off + nbr_on > nbr_units_max:
nbr_off -= 1

return(nbr_off)

def old_arrondi_eteint_on(
nbr_on_float : float,
nbr_units_max : float,
) -> int:

nbr_on = ceil(round(nbr_on_float,12))
return(nbr_on)
26 changes: 26 additions & 0 deletions tests/functional/libs/heuristique.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,29 @@ def heuristique_mix(
arrondi_final[t] = arrondi_opti_avec_start_up(*[s[t] for s in variable],*[p[t] for p in params])
return arrondi_final

def old_heuristique_eteint_off(
horaire : List[str],
variable: List[List[str]],
params: Optional[List[List[str]]] = None,
) -> List[str]:

arrondi_final = [ old_arrondi_eteint_off(*[s[t] for s in variable],*[p[t] for p in params]) for t in horaire]
return arrondi_final

def old_heuristique_eteint_on(
horaire : List[str],
variable: List[List[str]],
params: Optional[List[List[str]]] = None,
) -> List[str]:

arrondi_final = [ old_arrondi_eteint_on(*[s[t] for s in variable],*[p[t] for p in params]) for t in horaire]
return arrondi_final

def changement_invisible(
horaire : List[str],
variable: List[List[str]],
params: Optional[List[List[str]]] = None,
) -> List[str]:

a = [ variable[0][t] for t in horaire ]
return([ variable[0][t] for t in horaire ])
Loading