Skip to content

Remove getModelStatus extra arg #44

Open
facundosw wants to merge 3 commits into
lovasoa:mainfrom
CacheFail:fix-getModelStatus-args
Open

Remove getModelStatus extra arg #44
facundosw wants to merge 3 commits into
lovasoa:mainfrom
CacheFail:fix-getModelStatus-args

Conversation

@facundosw
Copy link
Copy Markdown

This PR removes the extra arguments from getModelStatus in the src\post.js file, resolving issue Assertion failed: native function Highs_getModelStatus called with 2 args but expects 1, reported in #42, and adds a test which fails without the changes.

Copy link
Copy Markdown
Owner

@lovasoa lovasoa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather have this be a smaller pull request without a huge model

Comment thread tests/test.js

function test_getModelStatus_args(Module) {
// See https://github.com/lovasoa/highs-js/issues/42
const pb = fs.readFileSync(__dirname + '/large_test_model.lp');
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you use a smaller example here?

@Specy
Copy link
Copy Markdown

Specy commented Jan 24, 2025

@facundosw i just tried the failing example you provided as a test and got error BoETgHPQ.js:2 Error: Unable to solve the problem. HiGHS error RuntimeError: Aborted(). Build with -sASSERTIONS for more info. Were you experiencing this error too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants