Skip to content

Commit 639c6f0

Browse files
author
Ken Reid
authored
Update README.md
1 parent 9c244d4 commit 639c6f0

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,24 @@
1-
# EvolutionaryRuinAndStochasticRecreate
1+
# EvolutionaryRuinAndStochasticRecreate
2+
An example of Evolutionary Ruin & Stochastic Recreate. Requires a set of libraries, including Apache POI, described in the pom.xml for Maven users. Non maven users should check out the same file for the JARs to download.
3+
4+
Simply put, the following String is the "problem" to be solved:
5+
6+
1-7-3-4-6-7-3-2-1-4-7-6-Charlie-3-2-7-8-9-7-7-7-6-4-3-Tango-7-3-2-Victor-7-3-1-1-7-8-8-8-7-3-2-4-7-6-7-8-9-7-6-4-3-7-6
7+
8+
ERSR will generate a String of the same length (assumed Hard Constraint), and will repeatedly replace characters until
9+
the end time condition/s are met.
10+
11+
In this example there is a single simple Soft Constraint (SC) which considers fitness as similarity to the solution
12+
in terms of number of characters correct thus far. A better example might be to generate random Strings of random
13+
lengths, and have a soft constraint to consider length. This could also be further advanced with unicode consideration.
14+
And of course, less "insider knowledge" for the SC.
15+
16+
This also contains some output using the Apache POI library, fairly useful for examining results from the ERSR.
17+
For more optimised statistical analysis the Output.java file should be modified for outputting CSV files,
18+
for use in R etc.
19+
20+
For anyone who gets the "problem" reference:
21+
22+
<p align="center">
23+
<img src="https://vignette.wikia.nocookie.net/memoryalpha/images/a/a5/Data_pretends_to_leave_bridge.jpg/revision/latest/scale-to-width-down/180?cb=20170216145233&path-prefix=en">
24+
</p>

0 commit comments

Comments
 (0)