DOE Extension Examples

In the package ACT Templates for DesignXplorer, two extension examples show how to generate design point samples. Each of these extensions uses a different programming language, allowing you to see how you can accomplish this objective using IronPython or C#.

Example NameDescription

PythonSampling

Fully implemented in IronPython (no build required), this example is your sandbox. It demonstrates many sampling extension features and is definitely the best example to start with.

PythonSampling is running a simple random exploration of the parametric space, generating the number of points requested by the user.

CSharpSampling

This example demonstrates how an extension can be completely set up when the interface ISamplingMethod is implemented in C#.

Note that the optimization algorithm is also implemented in C#, but one could use only the ISamplingMethod implementation as an adapter to an existing implementation in C# or other languages.

The project is provided for Microsoft Visual Studio 2010.


Release 18.2 - © ANSYS, Inc. All rights reserved.