Skip to content

Commit

Permalink
Tweak MIP detection logic (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mtth authored Jul 21, 2023
1 parent ae1bbd0 commit f111cd6
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "highs-packages",
"version": "0.5.13",
"version": "0.5.14",
"private": true,
"repository": "github:opvious/highs.ts",
"author": "Opvious Engineering <[email protected]>",
Expand Down
2 changes: 1 addition & 1 deletion packages/highs-addon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "highs-addon",
"version": "0.5.13",
"version": "0.5.14",
"repository": "github:opvious/highs.ts",
"description": "Low-level Node.js binding for the HiGHS optimization solver",
"keywords": [
Expand Down
8 changes: 4 additions & 4 deletions packages/highs-solver/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "highs-solver",
"version": "0.5.13",
"version": "0.5.14",
"repository": "github:opvious/highs.ts",
"description": "Node.js binding for the HiGHS optimization solver",
"keywords": [
Expand Down Expand Up @@ -32,9 +32,9 @@
"watch": "tsc -b -w src test"
},
"dependencies": {
"@opvious/stl-errors": "^0.21.8",
"@opvious/stl-telemetry": "^0.21.8",
"@opvious/stl-utils": "^0.21.8",
"@opvious/stl-errors": "^0.21.14",
"@opvious/stl-telemetry": "^0.21.14",
"@opvious/stl-utils": "^0.21.14",
"highs-addon": "workspace:*",
"tail": "^2.2.6",
"tmp-promise": "^3.0.3"
Expand Down
2 changes: 1 addition & 1 deletion packages/highs-solver/src/solver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ export class Solver {
const info = this.delegated('getInfo');
return {
objectiveValue: info.objective_function_value,
relativeGap: info.mip_node_count > 0 ? info.mip_gap : undefined,
relativeGap: info.mip_node_count >= 0 ? info.mip_gap : undefined,
primal: {rows: sol.rowValues, columns: sol.columnValues},
dual: sol.isDualValid
? {rows: sol.rowDualValues, columns: sol.columnDualValues}
Expand Down
34 changes: 17 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f111cd6

Please sign in to comment.