Skip to content
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

add methods to set up custom workflows/optimisations #7

Open
fzahle opened this issue Jul 16, 2015 · 0 comments
Open

add methods to set up custom workflows/optimisations #7

fzahle opened this issue Jul 16, 2015 · 0 comments

Comments

@fzahle
Copy link
Member

fzahle commented Jul 16, 2015

based on inputs written in the yaml input file we can allow users to set up optimisations. pierre has set this up in topfarm

https://github.com/DTUWindEnergy/TOPFARM/blob/master/examples/notebook/tutorial2_advanced.ipynb
https://github.com/DTUWindEnergy/TOPFARM/blob/master/src/topfarm/topfarm.py#L106

where he passes a dictionary to the assembly that then adds objective, cons and params:
components{ 'driver': 'PyOpt':dict(method='ALHSO',
hms=10,
hmcr=0.8,
par=0.65,
etc...),

objectives =  {'driver': '0.5 * foundation.foundation_length + 0.5*elnet.elnet_length'}

constraints = {'driver': ['wt_dist.min_dist>0.8', 
                      'elnet.elnet_length<1.1', 
                      'dist_from_borders'
                      ]}

design_variables = {'driver': 'distribute'}

use the Assembly.replace method on the existing assembly and then instrument it with objectives cons and params pretty much like Pierre does it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant