Skip to content

Comments

Apply scaling checks on NMN Design Toolkit tests #180

Open
jarsarasty wants to merge 36 commits intomainfrom
scaling_test
Open

Apply scaling checks on NMN Design Toolkit tests #180
jarsarasty wants to merge 36 commits intomainfrom
scaling_test

Conversation

@jarsarasty
Copy link
Collaborator

@jarsarasty jarsarasty commented Oct 10, 2024

As noted in #140, scaling range checks have been added to the NMN Design Tookit tests:

Scaling checks have been included in the following test functions:

  • test_absolute_heat
  • test_asset_is_realized
  • test_ates
  • test_airco
  • test_cold_demand
  • test_wko
  • test_end_scenario_sizing
  • test_gas_boiler
  • test_heat_network_head_loss_LINEARIZED_N_LINES_WEAK_INEQUALITY
  • test_heat_network_head_loss_LINEARIZED_N_LINES_EQUALITY
  • test_heat_loss
  • test_insulation_heatdemand
  • test_multi_commodity_simulator_priorities_el
  • test_network_simulator
  • test_pipe_class_var
  • test_1a
  • test_2a

The currently implemented checks assume that the minimum scaling range values are non-negative.

The `test_runner.py' script can be used to automatically obtain the benchmark scaling range data of new or modified models. These range data values are stored in the test_scaling_data folder.

In cases where the minimum value of the scaling range is greater than the maximum value, the test is skipped because the minimum and maximum values were probably recorded in the wrong order. This situation can occur when different test models are created and run in the same test method (for example, test_end_scenario_sizing_staged).

@jarsarasty jarsarasty changed the title Scaling test Apply scaling checks on NMN Design Toolkit tests Oct 11, 2024
@jarsarasty jarsarasty marked this pull request as ready for review October 11, 2024 11:02
@KobusVanRooyen
Copy link
Collaborator

KobusVanRooyen commented Oct 14, 2024

@jarsarasty Just a reminder to update the CHANGELOG as well

handle skipped tets in test_runner

flake8 style fix

change name test_runner

exclude test for time test

prifiling and test time report

excluding scaling tests

cache goal programming model using CachingQPSol

remove scaling checnks that take too long

passing tests

clean up
@jarsarasty
Copy link
Collaborator Author

Hi @KobusVanRooyen and @FJanssen-TNO ,

Scaling checks have been excluded from some of the tests, as discussion in our last email.

@jarsarasty jarsarasty linked an issue Nov 7, 2024 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add scaling check to every NMN Design Toolkit test

3 participants