Commit Graph
26 Commits
Author SHA1 Message Date
NormannandAndreas d8a46eb5d3 fixed optimize test
fixed first our values for optimize test
2024-10-06 15:20:37 +02:00
NormannandAndreas 40341d9aef fixed_seed for single_test_optimization
sets the seed for random to a fixed value to be able to compare results.
Value chosen for obvious reason. Same value is used in the test case.
2024-10-06 15:20:37 +02:00
NormannandAndreas fc0ee64521 Update test_class_ems.py 2024-10-06 14:35:11 +02:00
NormannandAndreas c31a6c457f cleanup class_ems.py
- type hints added
- translated to English
- reduced not needed function calls 

improves optimization time by 50%
2024-10-06 14:35:11 +02:00
NormannandDaniel Molkentin 75d87aa94a test for class_optimize in PR #88
Test meant for class_optimize.
Will only work with PR #88 since the old class has no way to use a fixed random seed.
2024-10-05 23:54:05 +02:00
NormannandAndreas e2bca5aba1 Refactored class_optimize.py
- Optimized Imports: Removed unused imports and organized them.
- Refactored Code: Introduced split_individual function for clarity.
- Improved Efficiency: Enhanced penalty calculation and streamlined loops.
- Updated Evaluation Logic: Better handling of penalties in evaluate.
- Type Hints added
- fixed seed option added for automated tests
- verbose comment added, default False

Notes:
- isfloat is only used in flask_server.py
- start_hour is not used in this class
2024-10-05 08:50:23 +02:00
NormannandAndreas f10b64e7c6 bugfix visualize module
datetime.datetime.now() is incorrectly accessing the datetime class
2024-10-04 16:16:03 +02:00
NormannandAndreas 6b8773a772 Update requirements.txt 2024-10-03 10:03:05 +02:00
NormannandAndreas 8dd2df46a7 Delete modules/class_battery_soc_predictor.py 2024-10-03 10:03:05 +02:00
NormannKandAndreas 9049a06782 Update class_strompreis.py
initial clean up, translations, os.makedirs improved
2024-10-01 07:16:13 +02:00
NormannKandAndreas 5236057508 Update class_sommerzeit.py
initial clean up. translations, minor changes
2024-10-01 07:12:58 +02:00
NormannKandAndreas 2df409695a Update class_load_corrector.py
initial clean up. translations, imports cleaned and sorted
2024-10-01 07:12:41 +02:00
NormannKandAndreas 8075515e8f Update class_load_container.py
initial clean up, unused imports removed, translations, very minor code changes
2024-10-01 07:11:08 +02:00
NormannKandAndreas c2af6cc1b3 Update class_load.py
initial clean up, unused imports removed, translations, minor error handling for file added
2024-10-01 07:10:47 +02:00
NormannKandAndreas 9b439c9228 Update class_inverter.py
initial clean up, comments translated. no code changes
2024-10-01 07:07:31 +02:00
NormannKandAndreas ad24ab68fc Update class_heatpump.py
initial clean up. comments translated, parameters pulled top the top
2024-10-01 07:05:55 +02:00
NormannKandAndreas cbb5807a7b Update class_akku.py
initial cleanup, translations, minimal code changes
2024-10-01 07:04:46 +02:00
NormannKandAndreas 0125dc219b Update class_battery_soc_predictor.py
initial clean up. import sorted and unused removed, comments translated, commented debug functions removed
2024-10-01 07:02:14 +02:00
NormannKandAndreas dfff675ca7 Update class_haushaltsgeraet.py
initial clean up, only translations
2024-10-01 06:56:37 +02:00
NormannKanddrbacke 3cc4ae58b4 Update flask_server.py
first step of cleanup. only formatting and very minor code changes
To Do:
- implement proper config 
- move parameters into config
- remove not needed commented code (idk which is useful)
- logic in has_no_empty_params is unnecessary complicated
2024-09-30 08:16:05 +02:00
NormannKanddrbacke a1ea125553 Update visualize.py
initial clean up, translations
2024-09-30 07:54:19 +02:00
NormannKanddrbacke 06058bc176 Update test.py
degree is a non-UTF-8 code. too risky to have that
2024-09-30 07:53:12 +02:00
NormannKanddrbacke c791f15569 Update server_load_profile.py
- general clean up
- constants pulled to the top
- improved error handeling
2024-09-30 07:46:05 +02:00
NormannKanddrbacke e7f6853f7f restructure and optimization of class_optimize.py
- removed unused functions
- restructure code
-optimized parameters of optimization
2024-09-30 07:37:18 +02:00
NormannKandDaniel Molkentin 8be86cc5e4 Update flask_server.py
- sorted and organized import section according to PEP 8 guidelines
- removed unused "import string"
- translated to english
2024-09-20 00:05:35 +02:00
NormannKandDaniel Molkentin e32a05d3d8 Update test.py
- removed unused/duplicate imports
- organized parameters
- input values got rounded!
2024-09-20 00:05:08 +02:00