Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am gajjanag on github.
  • I am gajjanag (https://keybase.io/gajjanag) on keybase.
  • I have a public key whose fingerprint is C96A 848E 97C3 CEA2 AB72 5CE4 45F9 6A2D 3C36 FB1B

To claim this, I am signing this object:

@gajjanag
gajjanag / solve_model.jl
Created June 29, 2015 14:53
memory usage failure
# GENERATED BY SCRIPT, DO NOT EDIT!!!
using JuMP
using MathProgBase
using Ipopt
using Distributions
# Uniformly random (over the simplex) discrete probability measure over dims
function rand_measure(dims::Integer...,)
prob_vec = zeros(dims)
return rand_measure!(prob_vec)