Openwind Help

External-Optimisation

Whilst the objective function used in the Cost of Energy Optimiser represents the state of the art for turbine layout optimisation and will only continue to improve with time, there are limits to what can be achieved in terms of implementing a perturbation function on a single node. For this reason, some users choose to drive Openwind’s cost of energy optimisation from an external algorithm, running Openwind on multiple nodes. This section documents this functionality.

To enable external optimisation, the INI file must be edited to change

ExternalOptimiser No

to

ExternalOptimiser Yes

Once this is set, the normal optimisation behavior of Openwind will no longer work until that INI value is switched back to “No”. The following applies to both the energy optimiser as well as the cost of energy optimiser. The term “objective function” is used to refer to the energy capture or the cost of energy test depending on which is being used.

Starting an optimisation will cause Openwind to cycle through its full test and optimising test benchmarks and then it will write the results to a text file and wait for a new layout to be written to the same folder.

The folder used for writing results and reading new layouts is the current folder so if you just loaded a workbook from a folder then that same folder will be used by the optimiser to drop results and look for new turbine positions.

The sequence of actions in detail is as follows:

The structure of tab-delimited text file results.txt is as follows:

The structure of tab-delimited text file positions.txt is as follows:

Each line is another turbine in the same order as in results.txt

Instead of the above, any line can contain the text LOADTURBINE (case insensitive) followed by the path to a file containing a saved turbine type. The path must be contained in quotes.

To exit the optimiser simply write EXIT (case insensitive) on any line. Generally, this will be the one and only line of positions.txt

Turbines must be written in the same order as they are in results.txt. It is possible to miss out some turbines but for each site the first turbine must be included in positions.txt. Turbines can be added and subtracted from layers by writing extra lines with the same site index or by specifying the first line of the next site with a turbine index lower than it was in results.txt. Duplicate indices or failures to include at least one turbine per site layer or irreconcilable inconsistency between turbine index, site index and site turbine index will result in an error and the optimiser exiting.