-
Notifications
You must be signed in to change notification settings - Fork 9
WISDEM NSGA2 incorporation #158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
cfrontin
wants to merge
25
commits into
WISDEM:develop
Choose a base branch
from
cfrontin:feature/outside_driver
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
0f7d3e2
Merge pull request #147 from WISDEM/develop
jaredthomas68 1d81242
Bump version from 0.1.0-beta0 to 0.1.0-beta1
cfrontin bcc1be4
Merge pull request #151 from WISDEM/develop
jaredthomas68 ea554b5
Merge branch 'develop' of github.com:WISDEM/Ard into develop
cfrontin 9dc8be4
Merge branch 'main' of github.com:WISDEM/Ard into develop
cfrontin 49b12da
Bump version from 0.1.0-beta1 to 0.1.0-beta2
cfrontin 604d9b9
Merge branch 'main' of github.com:WISDEM/Ard into develop
cfrontin d392d16
Merge branch 'develop' of github.com:WISDEM/Ard into develop
cfrontin 6158eb3
Merge branch 'develop' of github.com:WISDEM/Ard into develop
cfrontin c2d2db8
added NSGA2 to optimizer options
cfrontin 0fd2f51
removed zero velocity rows from floris results
cfrontin acfee66
Merge branch 'bugfix/remove_zero_velocity_resource_floris' into featu…
cfrontin 905510c
add example 06
cfrontin e18c236
Merge branch 'develop' of github.com:WISDEM/Ard into feature/outside_…
cfrontin 32ffc44
udpate
cfrontin 8bf7720
adjust pyproject to use dev branch
cfrontin ad4b35e
added gfortran for running on GH action runner
cfrontin 4dd4e9b
undo dev branching
cfrontin 6cd30df
Merge branch 'develop' into feature/outside_driver
cfrontin d537a9f
Merge branch 'develop' into feature/outside_driver
cfrontin 155dcce
black reformat plus added copilot-requested changes for viz utils
cfrontin 4a79674
added forgotten file
cfrontin 6e64e76
add unit testing for nsga2 implementation
cfrontin b85d234
address @jaredthomas68 comments
cfrontin 46ae3b2
add ard yaml
cfrontin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| import numpy as np | ||
|
|
||
|
|
||
| def get_plot_range(values, pct_buffer=5.0): | ||
| """ | ||
| get the min and max values for a plot axis with a buffer applied | ||
|
|
||
| Parameters | ||
| ---------- | ||
| values : np.array | ||
| the array of values in a given dimension | ||
| pct_buffer : float, optional | ||
| percent that should be included as a buffer, by default 5.0 | ||
|
|
||
| Returns | ||
| ------- | ||
| float | ||
| minimum value for the plot range | ||
| float | ||
| maximum value for the plot range | ||
| """ | ||
| min_value = np.min(values) | ||
| max_value = np.max(values) | ||
| dvalues = max_value - min_value | ||
| min_value = min_value - pct_buffer / 100.0 * dvalues | ||
| max_value = max_value + pct_buffer / 100.0 * dvalues | ||
| return min_value, max_value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| modeling_options: | ||
| windIO_plant: !include windio.yaml | ||
| layout: | ||
| type: gridfarm | ||
| N_turbines: 25 | ||
| N_substations: 1 | ||
| spacing_primary: 7.0 | ||
| spacing_secondary: 7.0 | ||
| angle_orientation: 0.0 | ||
| angle_skew: 0.0 | ||
| aero: | ||
| return_turbine_output: True | ||
| floris: | ||
| peak_shaving_fraction: 0.2 | ||
| peak_shaving_TI_threshold: 0.0 | ||
| collection: | ||
| max_turbines_per_string: 8 | ||
| solver_name: highs | ||
| solver_options: | ||
| time_limit: 60 | ||
| mip_gap: 0.02 | ||
| model_options: | ||
| topology: radial # radial, branched | ||
| feeder_route: segmented | ||
| feeder_limit: unlimited | ||
| offshore: false | ||
| floating: false | ||
| costs: | ||
| rated_power: 3400000.0 # W | ||
| num_blades: 3 | ||
| rated_thrust_N: 645645.83964671 | ||
| gust_velocity_m_per_s: 52.5 | ||
| blade_surface_area: 69.7974979 | ||
| tower_mass: 620.4407337521 | ||
| nacelle_mass: 101.98582836439 | ||
| hub_mass: 8.38407517646 | ||
| blade_mass: 14.56341339641 | ||
| foundation_height: 0.0 | ||
| commissioning_cost_kW: 44.0 | ||
| decommissioning_cost_kW: 58.0 | ||
| trench_len_to_substation_km: 50.0 | ||
| distance_to_interconnect_mi: 4.97096954 | ||
| interconnect_voltage_kV: 130.0 | ||
| tcc_per_kW: 1300.00 # (USD/kW) | ||
| opex_per_kW: 44.00 # (USD/kWh) | ||
|
|
||
| system: onshore | ||
|
|
||
| analysis_options: | ||
| driver: | ||
| name: NSGA2 | ||
| options: | ||
| max_gen: 10 | ||
| pop_size: 10 | ||
| run_parallel: False | ||
| design_variables: | ||
| spacing_primary: | ||
| lower: 3.0 | ||
| upper: 12.0 | ||
| scaler: 0.14 | ||
| spacing_secondary: | ||
| lower: 3.0 | ||
| upper: 12.0 | ||
| scaler: 0.14 | ||
| angle_orientation: | ||
| lower: -180.0 | ||
| upper: 180.0 | ||
| scaler: 0.025 | ||
| angle_skew: | ||
| lower: -45.0 | ||
| upper: 45.0 | ||
| scaler: 0.11 | ||
| constraints: | ||
| boundary_distances: | ||
| units: km | ||
| upper: 0.0 | ||
| scaler: 2.0 | ||
| spacing_constraint.turbine_spacing: | ||
| units: km | ||
| lower: 0.552 | ||
| objectives: | ||
| financese.lcoe: | ||
| scaler: 10.0 | ||
| # AEP_farm: | ||
| # scaler: -0.01 | ||
| # units: GW*h | ||
| area_tight: | ||
| units: km**2 | ||
| scaler: 0.1 | ||
| recorder: | ||
| filepath: cases.sql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| name: Ard Example 01 onshore wind plant | ||
| site: | ||
| name: Ard Example 01 offshore wind site | ||
| boundaries: | ||
| polygons: | ||
| - x: [ 1500.0, 3000.0, 3000.0, 1500.0, -1500.0, -3000.0, -3000.0, -1500.0] | ||
| y: [ 3000.0, 1500.0, -1500.0, -3000.0, -3000.0, -1500.0, 1500.0, 3000.0] | ||
| energy_resource: | ||
| name: Ard Example 01 offshore energy resource | ||
| wind_resource: !include ../../data/windIO-plant_wind-resource_wrg-example.yaml | ||
| wind_farm: | ||
| name: Ard Example 01 offshore wind farm | ||
| layouts: | ||
| coordinates: | ||
| x: [ | ||
| -2500.0, -1250.0, 0.0, 1250.0, 2500.0, | ||
| -2500.0, -1250.0, 0.0, 1250.0, 2500.0, | ||
| -2500.0, -1250.0, 0.0, 1250.0, 2500.0, | ||
| -2500.0, -1250.0, 0.0, 1250.0, 2500.0, | ||
| -2500.0, -1250.0, 0.0, 1250.0, 2500.0 | ||
| ] | ||
| y: [ | ||
| -2500.0, -2500.0, -2500.0, -2500.0, -2500.0, | ||
| -1250.0, -1250.0, -1250.0, -1250.0, -1250.0, | ||
| 0.0, 0.0, 0.0, 0.0, 0.0, | ||
| 1250.0, 1250.0, 1250.0, 1250.0, 1250.0, | ||
| 2500.0, 2500.0, 2500.0, 2500.0, 2500.0 | ||
| ] | ||
| turbine: !include ../../data/windIO-plant_turbine_IEA-3.4MW-130m-RWT.yaml | ||
| electrical_substations: | ||
| - electrical_substation: | ||
| coordinates: | ||
| x: [100.0] | ||
| y: [100.0] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.