https://github.com/alessandro624/learningparadiseo
A simple repository with lessons and tutorials from ParadisEO
https://github.com/alessandro624/learningparadiseo
cpp evolutionary-algorithms genetic-algorithm gnuplot make metaheuristic-optimisation mpi openmpi
Last synced: 3 months ago
JSON representation
A simple repository with lessons and tutorials from ParadisEO
- Host: GitHub
- URL: https://github.com/alessandro624/learningparadiseo
- Owner: Alessandro624
- Created: 2025-02-28T09:42:37.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-28T09:46:01.000Z (about 1 year ago)
- Last Synced: 2025-02-28T16:38:07.063Z (about 1 year ago)
- Topics: cpp, evolutionary-algorithms, genetic-algorithm, gnuplot, make, metaheuristic-optimisation, mpi, openmpi
- Language: C++
- Homepage:
- Size: 99.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](README.it.md)
[](README.md)
---
# ParadisEO Compilation Guide
This guide provides detailed instructions on how to compile the Paradiseo 3.0.0 library with support for MPI, Gnuplot, and the MO (Metaheuristic Optimization) module.
## 1. Requirements
Make sure you have the following packages installed before proceeding with the compilation:
- **CMake**
- **GCC**
- **MPI** (OpenMPI) if you want to enable MPI support
- **Gnuplot** (if you want to enable graphical visualization support)
- **Git** (to clone the repository, if needed)
### Install required packages (Ubuntu/Debian)
```sh
sudo apt update
sudo apt install -y cmake make g++ libeigen3-dev libopenmpi-dev doxygen graphviz libgnuplot-iostream-dev git
```
## 2. Installing Paradiseo
If you don't already have the Paradiseo source code, download release 3.0.0 from [ParadisEO](https://github.com/nojhan/paradiseo/releases/tag/v3.0.0)
Place the paradiseo-3.0.0 folder inside the lib directory.
## 3. Troubleshooting MPI and MO
If you want to enable MPI support, download the [mpi](https://github.com/Alessandro624/paradiseo/tree/master/eo/src/mpi) folder and replace it inside the library at ./lib/paradiseo-3.0.0/eo/src
Download the file [eoInit.h](https://github.com/Alessandro624/paradiseo/blob/master/eo/src/eoInit.h) and replace it inside the library at ./lib/paradiseo-3.0.0/eo/src to compile the lessons in moTutorial
## 4. Basic Compilation
For a standard compilation without optional modules:
```sh
mkdir build && cd build
cmake ..
make -j
```
## 5. Compilation with MPI
If you want to enable MPI support, you need to enable the MPI option:
```sh
mkdir build-mpi && cd build-mpi
cmake .. -DMPI=ON
make -j
```
## 6. Compilation with Gnuplot Support
If you want to enable Gnuplot support, use the ENABLE_GNUPLOT flag:
```sh
mkdir build-gnuplot && cd build-gnuplot
cmake .. -DENABLE_GNUPLOT=ON
make -j
```
## 7. Cleaning Compilation Files
If you want to remove compilation files to start over:
```sh
rm -rf build*
```