Skip to content

luigi-dv/knapsack-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Knapsack Solver

Knapsack Solver Image

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.

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

  • Java SDK 21
  • Maven
  • JavaFX

Installation (Maven)

  1. Clone the repo
    git clone https://github.com/luigi-dv/knapsack-solver
    cd knapsack-solver
  2. Install Maven dependencies
     mvn install
  3. Build the project
     mvn compile
  4. Run the project
     mvn clean package

Installation (Running the entry class)

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.java

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

Three-Dimensional Knapsack Solution repository, a project built upon the principles of Domain-Driven Design (DDD). This repository hosts a comprehensive solution for solving the three-dimensional knapsack problem.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors