Skip to content

Migrate away from optiwindnet's EW_presolver deprecated heuristic#185

Open
mdealencar wants to merge 1 commit into
NLRWindSystems:developfrom
mdealencar:optiwindnet_new_heuristic
Open

Migrate away from optiwindnet's EW_presolver deprecated heuristic#185
mdealencar wants to merge 1 commit into
NLRWindSystems:developfrom
mdealencar:optiwindnet_new_heuristic

Conversation

@mdealencar

Copy link
Copy Markdown
Contributor

The collection system module wraps optiwindnet's EW_presolver to warm-start the electrical network optimization. This heuristic has been deprecated in optiwindnet v0.2.2 (which shows a warning when EW_presolver is called) and will be removed in v0.3.

This commit updates optiwindnet_wrap.py to use the new implementation, which uses an improved algorithm by default: optiwindnet.heuristics.constructor(). It has the additional advantage of being able to produce solutions with radial topology (non-branching turbine strings).

This commit also updates the dependencies (optiwindnet >= 0.2.2) to avoid version-checking in the code.

The tests show multiple failures, but those also happen with the parent commit. The specific tests:

  • test/ard/system/collection/test_optiwindnet.py - PASSED
  • test/ard/unit/collection/test_optiwindnet.py - PASSED

The collection system module wraps optiwindnet's EW_presolver to warm-start the electrical network optimization. This heuristic has been deprecated in optiwindnet v0.2.2 (which shows a warning when EW_presolver is called) and will be removed in v0.3.

This commit updates optiwindnet_wrap.py to use the new implementation, which uses an improved algorithm by default: optiwindnet.heuristics.constructor(). The old algorithm is still available by using additional arguments.

This commit also updates the dependencies (optiwindnet >= 0.2.2) to avoid version-checking in the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant