Binary Integer Programming

Algorithmia Platform License · Internet Access

Try the API

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

Install & Use

Use

curl -X POST -d '[
["a1","a2","a3","b1","b2","b3","c1","c2","c3"],
[3,1,1,1,3,1,1,1,1],
[
            [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,1]
]' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/JaCoP/BinaryIntegerProgramming/0.1.0
  
Curl Docs →