Skip to content

Multiple Constraint Knapsack Solver using Genetic Algorithm

Notifications You must be signed in to change notification settings

RobinHood3082/knapsack-ga

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

knapsack-ga

Multiple Constraint Knapsack Solver using Genetic Algorithm

This is an application of Genetic Algorithm to solve 0-1 Knapsack Problems with multiple contraints.

This can be a decision making tool, that can decide the (approximately) most optimal choice among a set of choices, each with different contraints and each constraints having a limit.

Practically, this can be used in business where each decision might have some constraints or resource limits to execute, and the most optimal decision is required.

Instructions

Put your input in the input.txt file.

Compile with g++ -std=c++17 -O2 main.cpp

Then run the compiled executable. For windows: a.exe <in >out For Linux/macOS: a.out <in >out

About

Multiple Constraint Knapsack Solver using Genetic Algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages