GithubHelp home page GithubHelp logo

niehaus / bioinspired_multiconstraint_knapsack Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 88 KB

Comparing population algorithms for the Multiple Constraints Knapsack

License: GNU General Public License v3.0

Python 85.11% Shell 14.89%

bioinspired_multiconstraint_knapsack's Introduction

Multiconstraints Knapsack Problem (MCKP)

Grupo

  • Bárbara Boechat
  • Juliana Araújo
  • Tiago Trotta

Dependências

  • Versão do Python: 3.8

Execução

~$ python main.py [Arquivo de instância] [Arquivo de saída] [Número de formigas] [Máximo de iterações] [Alfa] [Beta]

Formato do arquivo de instância

Os arquivos de entrada das instâncias podem ser encontrados em mknap2. Neste trabalho foram utilizadas as instâncias PB*.

Formato do arquivo utiliza 10 colunas sempre que possível, segue um exemplo:

<n := #knapsacks> <m := #objects>
<m weights of objects>
<n knapsack capacities>
<A := mxn matrix of constraints>

<known optimum>

Este é o arquivo WEING1.DAT com comentários, este arquivo não é uma instância, é apenas um exemplo.

2 28 // 2 knapsacks, 28 objects
1898 440 22507 270 14148 3100 4650 30800 615 4975
1160 4225 510 11880 479 440 490 330 110 560
24355 2885 11748 4550 750 3720 1950 10500 // 28 weights
600 600 // 2 knapsack capacities
45 0 85 150 65 95 30 0 170 0
40 25 20 0 0 25 0 0 25 0
165 0 85 0 0 0 0 100 // #1 constr.
30 20 125 5 80 25 35 73 12 15
15 40 5 10 10 12 10 9 0 20
60 40 50 36 49 40 19 150 // #2 constr.

141278 // optimum value

bioinspired_multiconstraint_knapsack's People

Contributors

niehaus avatar mrtrotta2010 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.