Skip to content

Add scaling check to every NMN Design Toolkit test #140

Description

@FJanssen-TNO

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions