Skip to content

Instantly share code, notes, and snippets.

@Engelberg
Engelberg / grants2.clj
Created March 6, 2014 09:22
Non-linear version of grants problem
(ns mark.loco.grants2
(:use loco.core loco.constraints))
; Use whatever scoring function you want for the various
; applicants, but ultimately, you want to assemble this
; information into a data structure.
(def applicants
[{:name "Alex", :score 5, :grant-request 120}
{:name "David", :score 4, :grant-request 100}
@Engelberg
Engelberg / grants.clj
Created March 5, 2014 23:45
Optimizing allocation with loco
(ns mark.loco.grants
(:use loco.core loco.constraints))
; Use whatever scoring function you want for the various
; applicants, but ultimately, you want to assemble this
; information into a data structure.
(def applicants
[{:name "Alex", :score 5, :grant-request 120}
{:name "David", :score 4, :grant-request 100}