Skip to content

[very breaking] Fix dual sign of equalities - #235

Open
joaquimg wants to merge 9 commits into
mainfrom
jg/eqdualsign
Open

joaquimg wants to merge 9 commits into
mainfrom
jg/eqdualsign

Conversation

@joaquimg

Copy link
Copy Markdown
Member

Close #70 (with some claude help)

@codecov

codecov Bot commented Aug 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.35%. Comparing base (db25bcc) to head (4226136).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #235      +/-   ##
==========================================
- Coverage   95.39%   95.35%   -0.05%     
==========================================
  Files          17       17              
  Lines         913      905       -8     
==========================================
- Hits          871      863       -8     
  Misses         42       42              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joaquimg joaquimg changed the title Fix dual sign of equalities [very breaking] Fix dual sign of equalities Aug 24, 2026
Comment thread src/attributes.jl Resolved
Comment thread src/attributes.jl Resolved
```

Note that the equality constraints have minus signs that could be flipped for
simplicity. However, for generality, we keep the minus signs so that the models

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I'm a bit surprised that "we keep the minus sign" is stated before and after the PR. Didn't we change the behavior here ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I addressed it in the last commit, looks good to you ?

Comment thread src/attributes.jl Resolved
joaquimg and others added 7 commits November 12, 2026 15:18
Use the same objective-coefficient sign convention for free and constrained variables. Add minimization and maximization regression tests with HiGHS and SCS, including coefficient sign changes, and make test_modify.jl runnable on its own.

Validation: all 46 modification assertions pass; the new regressions fail before the fix. Temporary line markers confirmed both sign paths execute. JuliaFormatter 2.14.10 leaves no unstaged changes.
Update the expected dual equality to the new sign convention. Validation: the full local documentation build, including doctests, passes; JuliaFormatter leaves no unstaged changes.

This branch has not been deployed

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Review sign of dual constraints

2 participants