How to perform Genetic Algorithm in Statistica?

How to perform Genetic Algorithm in Statistica?

book

Article ID: KB0074309

calendar_today

Updated On:

Products Versions
Spotfire Statistica 12.7 and higher

Description

How to perform Genetic Algorithm in Statistica?

Issue/Introduction

How to perform Genetic Algorithm in Statistica?

Environment

Windows

Resolution

Before performing Genetic Algorithm, there are two essential files need preparing:

1. Spreadsheet that contains all the information necessary to the General Optimization analysis, such as variable types; minimum, maximum and starting values for the continuous variables; and number of unique values for the discrete variables. 

2. An SVB file which contains the formula to be optimized. The SVB file should look like:
 

  Function StatisticaGeneralOptimization(x() As Double) As Double

  StatisticaGeneralOptimization = The customized function

  End Function
 

To perform Genetic Algorithm, follow below steps:

1. Open the GeneralOptimizationSettings.sta (Example) data file

2. Select "General Optimization" from the menu tab "Data Mining | Optimizations"

3. Click the "SVB file" button to locate and load the GeneralOptimizationSetting.svb file. This is an essential SVB file for this analysis, which contains the mathematical function you want to optimize with the data (refer to the explanation above).

4. By clicking on "Optimize" or "Results", customer will be able to see the results of genetic optimization.