October 23rd 2024

Python in the VE: VE Scripts - External Libraries

Python in the VE: VE Scripts - External Libraries

In our latest Python in the VE article series we look at Utilising External Libraries and Genetic Optimisation Using PyGAD. 

External Libraries

What?

How to use non-bound libraries with VE Scripts.

Why?

VE Scripts is shipped with Python standard libraries and Python libraries that are regularly used in the context of tasks in the VE. If other libraries are required it is still possible to use them, however the library will need to be installed on a local version of Python that matches the VE Python version and then configured as a path in VE Scripts.

Check out the full guide here

Genetic Optimisation Using PyGAD

What?

Using PyGAD, a non-bound open source library, to carry out genetic optimisation in the VE.

Why?

Genetic optimisation is an alternative to a parametric uncertainty approach ... rather than simulate all combinations of possible model changes a genetic algorithm runs samples of model changes in a series of ‘generations’ picking the best of each generation to ‘seed’ the choices in the next generation. What is ‘best’ is derived using a test of ‘fitness’.

Check out the full guide here

Download a sample script here:
https://www.iesve.com/support/faq/zip/ve-scripts-tm54-external-libraries.zip

You can view other articles in my VE Python series HERE.