Main Content

21 results in File Exchange

0-1 Knapsack

Version 1.4.0.0 by Petter

Solves the 0-1 knapsack problem with positive integer weights.

Uses dynamic programming to solve the problem, see for example http://en.wikipedia.org/wiki/Knapsack_problem .

- KNAPSACK Solves the 0-1 knapsack problem for positive integer weights
  • 7.2K (All time)
  • 3 (Last 30 days)
  • 5.0 / 5
  • Community
  • 12 Feb 2009

knapsack_MATLAB

Version 1.0.0 by Tanzid Hasnain

Function to solve 0-1 and integer Knapsack Problem

These functions will help you to solve 0-1 and integer knapsack problem. Some important assumptions:1. Weights, values and resource limit has to be numeric;2. Count of weights and values has to be

  • 149 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 17 Jan 2019

Open Genetic Algorithm Toolbox

Version 1.12.0.0 by Alan de Freitas

This is a toolbox to run a GA on any problem you want to model.

- KNAPSACK_INITIALIZE returns a knapsack problem
- KNAPSACK_INITIALIZE_RANDOM generates a solution for the problem
- Evaluates a solution for the problem
- PRINT the best solution in the population
- Generates a child from certain parents
- KNAPSACK_INITIALIZE returns a real function problem
- KNAPSACK_INITIALIZE returns a real function problem
  • 11.8K (All time)
  • 10 (Last 30 days)
  • 4.5 / 5
  • Community
  • 29 Oct 2012

PSO Variants for TSP/QAP/Knapsack

Version 1.1.0.0 by Zhifei Li

Particle Swarm Optimization for the combination optimization problems

The diversified PSO algorithms are used to resolve three typical NP-hard problems.(1) PSO variants: standard PSO, adaptive PSO, quantum-behaved PSO, PSO-GA, PSO-GSA(2) Problems: TSP, QAP, Knapsack

  • 2K (All time)
  • 3 (Last 30 days)
  • 4.2 / 5
  • Community
  • 6 May 2017

Knapsack problem

Version 1.0.0.0 by Hanan Kavitz

A well known combinatorial problem

The knapsack problem or rucksack problem is a problem in combinatorial optimization: Given a set of items, each with a weight and a value, determine the count of each item to include in a collection

- The knapsack problem
  • 3.7K (All time)
  • 2 (Last 30 days)
  • 3.8 / 5
  • Community
  • 20 Mar 2012

OpenLlop/MOT

Version 1.1.0.0 by Manel Soria

Multi-heuristic Optimization Toolbox

  • 1.4K (All time)
  • 2 (Last 30 days)
  • 4.0 / 5
  • Community
  • 10 Mar 2024

Multi-Knapsack solver

Version 1.3.0.0 by Sebastien PARIS

Multi-Knapsack solver by two stochastic optimizer : CEM & BK algorithms

Multi-Knapsack solver by two stochastic solvers : i) by Cross-Entropy Method and ii) by Botev-Kroese Method for the following problemmax S(X)=(p^{t}X) st. WX <= cPlease run the demo files :

  • 3.6K (All time)
  • 2 (Last 30 days)
  • -- / 5
  • Community
  • 29 Jan 2020

knapsackAlgorithm.m

Version 1.0.0.0 by long

kp dp

- 0-1 Knapsack Problem in Matlab
  • 230 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 7 May 2014

Knapsack problem

Version 1.0.0.0 by Pradeep

solved the knapsack problem using the concept of dynamic programming

  • 1.9K (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 8 Apr 2011

01 Knapsack Solution by Dynamic Programming

Version 1.0.0.0 by Mohamed Atyya

01 Knapsack Solution by Dynamic Programming

01 Knapsack Solution by Dynamic Programming

- Coded by
  • 223 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 25 May 2018

Fractional Knapsack Genetic Algorithm

Version 1.0.0.0 by Catalina Stancu

Fractional Knapsack vs Discrete Knapsack GA

The current algorithm is working for the Discrete Knapsack, how do I change the algorithm so i can choose fractional objects? I have this as an assignment fo school and i can't seem to find a way to

- citirea datelor din fisier
  • 183 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 21 May 2017

knapsack problem

Version 1.0.1 by Mohamed Atyya

this code can solve lage knapsack problem with low hardware capabilities using modified dynamic programming

this code can solve lage knapsack problem with low hardware capabilities using modified dynamic programming

  • 246 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 9 Jan 2019

A simple introduction to genetic algorithm

Version 1.0.1 by Yunfan Qing

Using MATLAB Just-in-time compiler to solve the 0-1 Knapsack Problem with Genetic Algorithms. (Also as a project of a course in SJTU)

In this project, we have given a brief introduction about the traditional methods to solve 0-1 Knapsack Problem, and subsequently introduced a simple example of GA method.It has comprehensive

  • 214 (All time)
  • 1 (Last 30 days)
  • -- / 5
  • Community
  • 23 Oct 2020

Ant Colony Optimization (ACO)

Version 1.0.0.0 by Yarpiz / Mostapha Heris

MATLAB implementation of ACO for Discrete and Combinatorial Optimization Problems

  • 12.5K (All time)
  • 18 (Last 30 days)
  • 4.8 / 5
  • Community
  • 4 Sep 2015

Soccer League Competition (SLC) Algorithm For Discrete Problems

Version 1.0 by Naser Moosavian

This Version of SLC developed for optimization problems with discrete decision variables

  • 331 (All time)
  • 2 (Last 30 days)
  • 5.0 / 5
  • Community
  • 11 Apr 2016

Human Learning Optimization(HLO) algorithm

Version 1.0.0.0 by Ling Wang

A MATLAB code for Human Learning Optimization(HLO) algorithm

, Wei Ye, Minrui Fei, and Panos M. Pardalos. A Human Learning Optimization % Algorithm and Its Application to Multi-dimensional Knapsack Problems. Applied Soft Computing. 2015,34:736-743% 3.Ling Wang

  • 687 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 3 Jan 2018

ISO: An Improved Snake Optimizer

Version 1.1.3.1 by Yunwei Zhu

An improved snake optimizer with multi-strategy enhancement for engineering optimization

exploitation phase.Add1:In these folders, we have added versions that use ISO to solve two classic NP problems. The two NP-hard problems are the traveling salesperson problem(TSP) and the knapsack problem(KP

  • 414 (All time)
  • 12 (Last 30 days)
  • -- / 5
  • Community
  • 30 Apr 2025

Soccer League Competition Algorithm

Version 1.0.0.0 by Naser Moosavian

A Powerful Evolutionary Algorithm for Optimization of Non-convex and Non-linear Problems

  • 613 (All time)
  • 1 (Last 30 days)
  • 5.0 / 5
  • Community
  • 10 Apr 2016

  • 167 (All time)
  • 5 (Last 30 days)
  • 5.0 / 5
  • Community
  • 26 Apr 2025

Quantum Computing: A Practical Perspective

Version 1.2 by Marco Venere

Official Repository of the course "Quantum Computing: A Practical Perspective", offered by NECSTLab @ Politecnico di Milano.

  • 35 (All time)
  • 10 (Last 30 days)
  • -- / 5
  • Community
  • 12 May 2026

ant colony optimization

Version 1.0.0 by sai

Ant Colony Optimization (ACO) is a popular metaheuristic optimization algorithm inspired by the foraging behavior of ants.

  • 178 (All time)
  • 5 (Last 30 days)
  • -- / 5
  • Community
  • 16 Oct 2023