Integer Programming

Algorithmia Platform License · Internet Access

Run an Example

{
  "a1": 3,
  "a2": 0,
  "a3": -2,
  "b1": -2,
  "b2": 0,
  "b3": 3,
  "c1": -2,
  "c2": 1,
  "c3": 2
}

Install & Use

Use

curl -X POST -d '[
  ["a1","a2","a3","b1","b2","b3","c1","c2","c3"],
  [1,1,1,2,1,1,2,1,1],
  [-100,-100,-100,-100,-100,-100,-100,-100,-100],
  [100,100,100,100,100,100,100,100,100],
  [
    [1,1,1,0,0,0,0,0,0],
    [0,0,0,1,1,1,0,0,0],
    [0,0,0,0,0,0,1,1,1],
    
    [1,0,0,1,0,0,0,0,0],
    [0,1,0,0,1,0,0,0,0],
    [0,0,1,0,0,1,0,0,0],
    
    [1,0,0,0,0,0,1,0,0],
    [0,1,0,0,0,0,0,1,0],
    [0,0,1,0,0,0,0,0,1],
    
    [0,0,0,1,0,0,1,0,0],
    [0,0,0,0,1,0,0,1,0],
    [0,0,0,0,0,1,0,0,1]
  ],
  ["=","=","=","<=","<=","<=","<=","<=","<=","<=","<=","<="],
  [1,1,1,1,1,1,1,1,1,1,1,5]
]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/JaCoP/IntegerProgramming/0.1.1