Skip to content

Commit

Permalink
Update Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jvail committed Oct 23, 2021
1 parent 85f852d commit 680de13
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ npm install glpk.js
## Code Example

```js
const glpk = require('glpk.js');
const GLPK = require('glpk.js');
const glpk = GLPK();
const options = {
msglev: glpk.GLP_MSG_ALL,
presol: true,
Expand All @@ -20,7 +21,7 @@ const options = {
each: 1
}
};
const res = glpk().solve({
const res = glpk.solve({
name: 'LP',
objective: {
direction: glpk.GLP_MAX,
Expand Down

0 comments on commit 680de13

Please sign in to comment.