Aitso Tutorials

You can find the data used in the following exercise in the folder "$Aitso\Samples\Data", where "$Aitso" is the folder in which the Aitso installed. for example, "C:\Program Files\Aitso\Aitso".

You can also download the sample data from SampleData under the "DOWNLOADS" tab.

Tutorial 1- Solve the TSP problem.

TSP is a typical NP-hard combinatorial optimization problem. It involves all aspects of combinatorial optimization and has served as a benchmark problem to test the performance of the algorithms.

The data used for this exercise can be found in the folder "$Aitso\Samples\Data\TSPData" .


Tutorial 2- Design the environmental monitoring network..

The environmental monitoring networks, composed by several monitoring stations, are used to capture the environment pollution or quality information on the air, water and soil of a specific area. The objective of the optimization of an environmental monitoring network is to get an optimal number and spatial layout of the monitoring stations. It is critical to environmental monitoring and assessment, since it can help achieve an optimal configuration of the monitoring stations with obtaining the pollution information accurately under a minimum number of monitoring stations and least cost.


For Programmers

You can see the Sample code, or download the SOURCE CODE to learn how to develop an operator plugin or an anpplication plugin.

How to develop an immune operator plugin

The easiest way to create an immune operator plugin is to download the example templates and then modify them to what you want. Nevertheless, you can also build an immune operator plugin as described in the following steps:

1. Start Visual Studio, click File, select New, and click Project. The New Project dialog box opens.

2. Under Project Types, expand the Windows node, and click “Class Library”.

3. Specify the project name, and click OK.

4. Reference the following assemblies in your Visual Studio project.
  • AI.Core.dll, this assembly can be found in the directory where Aitso installed.
  • CSA.Lib.dll, this assembly can be found in “$Aitso\SOTools\ClonalSelection”, where the path” $Aitso” is the directory where Aitso installed.
5. Create a new class, and inherit the interface “CSA.Lib.ICSOperator”.

6. Implement all the method, properties of the interface, and then build the project.

7. Copy the dll file, which generated by the new project, to the folder “$Aitso\SOTools\ClonalSelection\Operators”, then it can be used in Aitso.

How to develop an application plugin

The easiest way to create an application plugin is to download the example templates and then modify them to what you want. Nevertheless, you can also build an application plugin as described in the following steps:

1. Start Visual Studio, click File, select New, and click Project. The New Project dialog box opens.

2. Under Project Types, expand the Windows node, and click “Class Library”.

3. Specify the project name, and click OK.

4. Reference the following assemblies in your Visual Studio project.
  • AI.Core.dll, this assembly can be found in the directory where Aitso installed.
  • CSA.Lib.dll, this assembly can be found in “$Aitso\SOTools\ClonalSelection”, where the path” $Aitso” is the directory where Aitso installed.
5. Create a new class, and inherit the interface “CSA.Lib. ICSOptimizationProblem”, Implement all the method, properties of the interface, and create three UserControls to design the “EncodeUI”, “ObjectFuntionUI” and “OutputConfigUI” user interfaces.

6. Create a new class, and inherit the abstract class “CSA.Lib. CSAntibody”, override the abstract method, properties of the interface, and then build the project.

7. Copy the dll file, which generated by the new project, to the folder “$Aitso\SOTools\ClonalSelection\ Problems”, then it can be used in Aitso.

Last edited Aug 2, 2014 at 8:26 AM by coderxiang, version 22

Comments

No comments yet.