Skip to content

Instantly share code, notes, and snippets.

View kaarthiksundar's full-sized avatar

Kaarthik Sundar kaarthiksundar

View GitHub Profile
@kaarthiksundar
kaarthiksundar / conicdualfail.jl
Created August 27, 2015 17:04
Conic duals: Primal infeasibilty certificate does not pass farkas test
using MAT, JLD
using Mosek
using MathProgBase
TOL = 1e-6
solver = MosekSolver()
case = load("conicduals.jld")
A = case["A"]
c = case["c"]
b = case["b"]
(lp1
I4
aI4
aI4
aI4
aI4
aI4
aI4
aI4
aI4
#!/usr/bin/env python
# MultiMachine Scheduling Problem
# ToDo: Automate Instance Generation
import sys, pickle, random, math
from collections import Counter
from pulp import LpVariable, LpBinary, lpSum, value, LpProblem, LpMaximize, LpAffineExpression