To ensure stability and robustness of the code, every test should also have a scaling check of the problem.
This check should be done with absolute values to ensure that it is noted in case the scaling changes due to updates of the code.
In tests/utils_test_scaling.py the methods to do this check are created. An example of an implementation can be found in tests/test_multicommodity_simulator.py test function: test_multi_commodity_simulator_priorities_el.
currently: problem_scaling_check(logs_list, logger) is used, ideally it would be problem_scaling_check(logs_list, logger, 1e5) for instance if 1e5 is the maximum scaling.
To ensure stability and robustness of the code, every test should also have a scaling check of the problem.
This check should be done with absolute values to ensure that it is noted in case the scaling changes due to updates of the code.
In tests/utils_test_scaling.py the methods to do this check are created. An example of an implementation can be found in tests/test_multicommodity_simulator.py test function: test_multi_commodity_simulator_priorities_el.
currently: problem_scaling_check(logs_list, logger) is used, ideally it would be problem_scaling_check(logs_list, logger, 1e5) for instance if 1e5 is the maximum scaling.