GithubHelp home page GithubHelp logo

aiba / munkres Goto Github PK

View Code? Open in Web Editor NEW

This project forked from timothypratley/munkres

0.0 2.0 0.0 49 KB

Wrapping a solution for the Assignment Problem, Hungarian Method (Munkres) O(N^3)

Java 80.95% Clojure 19.05%

munkres's Introduction

Munkres

The Hungarian method is a combinatorial optimization algorithm that solves the assignment problem O(N^3). This library wraps java code from Algorithms for use from Clojure

Usage

Add this to your project.clj :dependencies

[munkres "0.2.0"]

Require it from your source code

(ns my-ns
  (:require [munkres :as m]))

And call it like so:

(m/minimize-weight [[2 1] [3 4]]
                   [:agent1 :agent2]
                   [:task1 :task2])

Which will result in the assignments:

{:assignments {:agent1 :task2
               :agent2 :task1}
 :weight 4.0}

See the docstrings for minimize-weight for further details.

Building

Install Leiningen then

lein javac && lein jar

Deploying

lein release (or lein deploy clojars if you already have the correct version number set)

munkres's People

Contributors

timothypratley avatar nibe avatar

Watchers

Aaron Iba avatar James Cloos 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.