Commit Graph
26 Commits
Author SHA1 Message Date
NormannandAndreas a16490523d fixed optimize test
fixed first our values for optimize test
2024-10-06 15:20:37 +02:00
NormannandAndreas fb59c9dd14 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 27bab20606 Update test_class_ems.py 2024-10-06 14:35:11 +02:00
NormannandAndreas a80d4c1901 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 dd3363b714 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 fb1aa06ddd 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 1eed420131 bugfix visualize module
datetime.datetime.now() is incorrectly accessing the datetime class
2024-10-04 16:16:03 +02:00
NormannandAndreas 8595b91692 Update requirements.txt 2024-10-03 10:03:05 +02:00
NormannandAndreas e5bfbe757a Delete modules/class_battery_soc_predictor.py 2024-10-03 10:03:05 +02:00
NormannKandAndreas 8959bd8693 Update class_strompreis.py
initial clean up, translations, os.makedirs improved
2024-10-01 07:16:13 +02:00
NormannKandAndreas 922042ced1 Update class_sommerzeit.py
initial clean up. translations, minor changes
2024-10-01 07:12:58 +02:00
NormannKandAndreas baa22e973d Update class_load_corrector.py
initial clean up. translations, imports cleaned and sorted
2024-10-01 07:12:41 +02:00
NormannKandAndreas c14a94e6f9 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 cf3b610b72 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 89e84b39e5 Update class_inverter.py
initial clean up, comments translated. no code changes
2024-10-01 07:07:31 +02:00
NormannKandAndreas 258267fad4 Update class_heatpump.py
initial clean up. comments translated, parameters pulled top the top
2024-10-01 07:05:55 +02:00
NormannKandAndreas d1ab1d0184 Update class_akku.py
initial cleanup, translations, minimal code changes
2024-10-01 07:04:46 +02:00
NormannKandAndreas 362fb2221b 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 b9b6b16437 Update class_haushaltsgeraet.py
initial clean up, only translations
2024-10-01 06:56:37 +02:00
NormannKanddrbacke 29315427f0 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 c2254dc5ed Update visualize.py
initial clean up, translations
2024-09-30 07:54:19 +02:00
NormannKanddrbacke a2770e8410 Update test.py
degree is a non-UTF-8 code. too risky to have that
2024-09-30 07:53:12 +02:00
NormannKanddrbacke ec996fe410 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 1f01455825 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 5d38a7c982 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 709211784b Update test.py
- removed unused/duplicate imports
- organized parameters
- input values got rounded!
2024-09-20 00:05:08 +02:00