Skip to content

Commit

Permalink
add hint for gurobi binary
Browse files Browse the repository at this point in the history
  • Loading branch information
juliuste committed Jul 24, 2018
1 parent 5a86d77 commit 812208f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,10 @@ const transitMap = async (networkGraph, opt) => {
await solver.generateLP(lpStream)

// run solver
await runGurobi(options.workDir, options.verbose)
await (runGurobi(options.workDir, options.verbose).catch(e => {
console.error('Make sure `gurobi_cl` is in your $PATH')
throw new Error(e)
}))

// read solution file
const solStream = fs.createReadStream(path.resolve(options.workDir, 'solution.sol'))
Expand Down

0 comments on commit 812208f

Please sign in to comment.