public boolean run() {
		if (_engineParam != null) {
			if (!_outputDir.isDirectory()) {
				if (!_outputDir.mkdirs()) {
					throw new IllegalArgumentException(
						"Can't create output directory " + _outputDir
					);
				}
			}

			println("Starting evolution:");
			println("* Output dir:           " + _outputDir);
			println("* Generation count:     " + _generations);
			println("* Generation image gap: " + _imageGeneration);
			println("Engine parameters:");
			println("");
			println(_engineParam);
			println("");

			evolve(
				_engineParam,
				_image,
				_outputDir,
				_generations,
				_imageGeneration
			);
		}

		return _engineParam != null;
	}
Command line version of the Evolving images example.
jenetics.example/src/main/java/io/jenetics/example/image/EvolvingImagesCmd.java