... | ... | @@ -2,7 +2,24 @@ |
|
|
|
|
|
---
|
|
|
|
|
|
TODO: Doku im config file Zeilenumbrücke ändern => Zeilenlängen sind für die Darstellung auf der Webseite zu groß, wenn ich das File selbst als Doku nehmen möchte dann muß das hier schick sein
|
|
|
GenIe can be used standalone or programmatically as a java library. For both possibilities, the genetic run is parameterized inside the [config file](https://git.opendfki.de/reuschling/genie/-/blob/main/geneticOptimization.conf). Have a look inside the config file for detailed documentation of all that can be adjusted.
|
|
|
|
|
|
For using GenIe standalone, you have to specify an exec call for the fitness function. This executable will be called for each candidate vector evaluation, receiving the candidate vector values as invocation arguments. The last invocation argument will be the parents metadata as Json string.
|
|
|
|
|
|
GenIe will wait for the process to terminate, looking for a calculation result in its output. This calculation result must follow this example Json structure, and should be somewhere at the end of the processes output:
|
|
|
|
|
|
```json
|
|
|
{
|
|
|
"fitness":0.0,
|
|
|
"metadata":{
|
|
|
"someMetadataKey1":"someMetadataValue",
|
|
|
"someMetadataKeyN":"someMetadataValue"
|
|
|
}
|
|
|
}
|
|
|
```
|
|
|
|
|
|
Specify the path to the fitness function executable inside the [config file](https://git.opendfki.de/reuschling/genie/-/blob/main/geneticOptimization.conf) and start GenIe with `./genIe.sh` or `.\bin\genIe.bat`. Please be aware that starting a whole process for a vector fitness evaluation can lead to much more CPU consumption as using GenIe programatically.
|
|
|
|
|
|
|
|
|
TODO: hier splitten in programmatischen Use (deutlich effizienter bzgl der Laufzeit, so ne 'Runner'-Klasse implementieren, erklären der Metadaten) und mit exec call (was macht der, wie sieht der Rückgabewert aus, VektorMetadaten)
|
|
|
|
... | ... | |