Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
**/target/
*.log
results.json
/data/
.idea/
*.iml
*~
Expand Down
37 changes: 27 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,23 +183,40 @@ java -jar examples/target/edaf.jar examples/config/umda-max-ones.yaml

### 3. View Results

Results are displayed in three ways:
- **Console:** Progress bar and final results
- **Log file:** `edaf.log` (detailed execution logs)
- **Results file:** `results.json` (structured JSON output)
Results are displayed in multiple ways:

### 4. Enable Metrics (Optional)
#### Console Output

```bash
java -jar examples/target/edaf.jar --metrics examples/config/fda-max-ones.yaml
```
**Progress Bar:**
- Real-time generation progress with estimated time
- Compact statistics per generation (best, average, std dev)
- Example: `Generations 45% [████████████ ] 45/100 gen (0:00:23 / 0:00:51)`

**Statistics Table:**
- Detailed statistics displayed every 10 generations (and on generation 1)
- Includes: Best, Worst, Average (μ), Std Dev (σ), Median fitness values
- Color-coded with ASCII box-drawing characters for professional formatting
- Independent of Prometheus (always displayed)

**Final Results:**
- Best fitness value displayed at end of execution

For Prometheus metrics:
#### Log Files

- **`edaf.log`**: Detailed execution logs with timestamps
- **`results.json`**: Structured JSON output with best individual and fitness

#### Prometheus Metrics (Optional)

Enable with `--prometheus-port`:
```bash
java -jar examples/target/edaf.jar --prometheus-port 9464 examples/config/cem-sphere.yaml
java -jar examples/target/edaf.jar --prometheus-port 8888 examples/config/umda-max-ones.yaml
```

Then configure Prometheus to scrape metrics from `http://localhost:8888/metrics`.

See [USAGE.md](USAGE.md) for detailed Prometheus setup instructions.

## Operators

The framework provides a variety of operators for selection, crossover, and mutation.
Expand Down
Loading
Loading