ITADN

Slight change in text causes failure

#48Closedcoder0xff 创建于 2025-10-23
C
coder0xffcommented
On the https://lovasoa.github.io/highs-js/ site, if I paste this file it solves fine. [working.txt](https://github.com/user-attachments/files/23107782/working.txt) It solves fine. However, if I move the location of the last monomials in the objective, "+1.0 Coal_cost" to be the first monomial: <img width="2297" height="314" alt="Image" src="https://github.com/user-attachments/assets/ce3e15c5-b2db-4187-9710-f0176d7505bf" /> [broken.txt](https://github.com/user-attachments/files/23107787/broken.txt) I get this <img width="1128" height="1122" alt="Image" src="https://github.com/user-attachments/assets/4c397585-d1aa-4216-b2d3-613ba1a6cf46" /> I'm trying to figure out how to build with `-sASSERTIONS`, thinking it was this: <img width="2057" height="844" alt="Image" src="https://github.com/user-attachments/assets/646c40cd-0329-4285-ac77-836f634954ab" /> But that made my fork fail testing in GitLab CI, and I couldn't figure out how to download the built files from CI anyway. ``` RuntimeError: Aborted(Assertion failed: native function `Highs_getModelStatus` called with 2 args but expects 1) at l (/home/runner/work/highs-js/highs-js/build/highs.js:24:412) at y (/home/runner/work/highs-js/highs-js/build/highs.js:20:150) at /home/runner/work/highs-js/highs-js/build/highs.js:25:257 at g.solve (/home/runner/work/highs-js/highs-js/build/highs.js:95:406) at test_optimal (/home/runner/work/highs-js/highs-js/tests/test.js:97:22) at test (/home/runner/work/highs-js/highs-js/tests/test.js:430:3) ``` I'm still trying to figure out how to build locally, so I can test in my application with -sASSERTIONS. But, I'd appreciate any help in figuring out how to make the failing input work, because my program is generating the LP text and I don't know how to constrain my program's text generation to order monomials in a way that highs will like. Thanks.
关闭于 2025-10-25 1 条评论