Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.11 KB

README.md

File metadata and controls

44 lines (30 loc) · 1.11 KB

Swiftenv installation is highly recommended in order to reduce friction

when installed run the following command to install the latest supported Swift Compiler

cd Swift-NSGA
swiftenv install

With this done you can now compile Swift code. Run swift build -c release. You should see the following:

Compile Swift Module 'SwiftPCG' (1 sources)
Compile Swift Module 'NSGA' (20 sources)
Compile CWaterEvaluator constraints.c
Compile CWaterEvaluator evaluator.c
Compile CWaterEvaluator mh_misc.c
Compile CWaterEvaluator misc.c
Compile CWaterEvaluator objectives.c
Linking CWaterEvaluator
Linking .build/release/NSGA

When complete your output program is available in .build/release/ titled NSGA and will have file permissions set up for you.

To execute run a command of the following form:

./.build/release/NSGA $(pwd) seed nGenerations popSize

eg.

./.build/release/NSGA $(pwd) 1BADF00D 99 100

This will read datafiles from ./datafiles/ and write output result files to ./results

Notes

  • Population size must be a multiple of 4 (NSGA limitation)