Knapsack Solver is a Java application that solves the Knapsack Problem using a Genetic Algorithm. The application allows the user to define the parameters of the problem and the algorithm, and then run the algorithm to solve the problem. The application also allows the user to save the results of the algorithm to a file.
To get a local copy up and running follow these simple steps.
- Java SDK 21
- Maven
- JavaFX
- Clone the repo
git clone https://github.com/luigi-dv/knapsack-solver cd knapsack-solver - Install Maven dependencies
mvn install
- Build the project
mvn compile
- Run the project
mvn clean package
Alternatively, you can run the application directly from the MainApplication class. Navigate to the root of the project and execute the following command:
java --module-path /path/to/javafx-sdk-21.0.2/lib --add-modules javafx.controls,javafx.fxml src/main/java/com/bsc36/project11cs/application/MainApplication.javaThis project is licensed under the MIT License - see the LICENSE.md file for details