Skip to content

Fix key vector quadratic and add tests#184

Merged
joaquimg merged 14 commits into
jg/newdofrom
ar/newdo2
Aug 19, 2025
Merged

Fix key vector quadratic and add tests#184
joaquimg merged 14 commits into
jg/newdofrom
ar/newdo2

Conversation

@andrewrosemberg
Copy link
Copy Markdown
Collaborator

No description provided.

@andrewrosemberg andrewrosemberg self-assigned this Aug 18, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 18, 2025

Codecov Report

❌ Patch coverage is 79.31034% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.54%. Comparing base (4a0358b) to head (06412ad).
⚠️ Report is 3 commits behind head on jg/newdo.

Files with missing lines Patch % Lines
src/MOI_wrapper.jl 76.00% 6 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           jg/newdo     #184      +/-   ##
============================================
+ Coverage     90.09%   95.54%   +5.45%     
============================================
  Files             5        5              
  Lines          1474     1437      -37     
============================================
+ Hits           1328     1373      +45     
+ Misses          146       64      -82     

☔ View full report in Codecov by Sentry.
📢 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.

Comment thread test/jump_tests.jl Outdated
Comment thread test/jump_tests.jl
Comment thread test/jump_tests.jl Outdated
Comment thread test/jump_tests.jl
Comment on lines +1501 to +1520
@test_throws MOI.UnsupportedConstraint @constraint(
model,
con,
[p * p, x * (x - 1), p] in MOI.PositiveSemidefiniteConeTriangle(2)
)
@test_throws MOI.UnsupportedConstraint @constraint(
model,
con,
[x * x, (x - 1), p] in MOI.PositiveSemidefiniteConeTriangle(2)
)
@test_throws MOI.UnsupportedConstraint @constraint(
model,
con,
[p, (x - 1), x * x] in MOI.PositiveSemidefiniteConeTriangle(2)
)
@test_throws MOI.UnsupportedConstraint @constraint(
model,
con,
[x, p * (x - 1), x * x] in MOI.PositiveSemidefiniteConeTriangle(2)
)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@joaquimg joaquimg merged commit 25f9a33 into jg/newdo Aug 19, 2025
7 of 8 checks passed
@joaquimg joaquimg deleted the ar/newdo2 branch August 19, 2025 00:11
joaquimg added a commit that referenced this pull request Aug 19, 2025
* temp

* fix and format

* remove func

* Adds support for VectorQuadraticFunction (#179)

* add ParametricVectorQuadraticFunction

* use at_variable and remove unecessary calls

* start addressing variable coefficients

* update tests

* fix bugs

* fix bug

* update add constraint

* update test

* update jump test

* fix test

* rm update

* update add_constraint

* attemp replace

* update functions

* update

* update

* working first set

* update tol

* update tol

* finish

* change tests names

* Apply suggestions from code review

---------

Co-authored-by: Joaquim <joaquimdgarcia@gmail.com>

* format

* fix NLP block

* continue fix NLP block

* Fix TODOs New API (#182)

* fix VariablePrimalStart

* add get VariablePrimalStart

* fix "is_valid"

* fix ambiguity

* format

---------

Co-authored-by: joaquimg <joaquimdgarcia@gmail.com>

* Ar/newdo (#183)

* fix VariablePrimalStart

* add get VariablePrimalStart

* fix "is_valid"

* fix ambiguity

* format

* add more vector tests

---------

Co-authored-by: Andrew <arosemberg3@gatech.edu>

* add tests and vec fucntionfix

* format

* Fix key vector quadratic and add tests (#184)

* fix key vector quadratic

* add new tests and fix affine cache

* format

* test constraint name set and get

* add no parameter problem

* fix test name

* fix comment

* force has_parameter and !_is_vector_affine

* update coverage

* remove useless function

* update tests coverage

* format and rm useless functions

* improve tests to force coverage improvement

* fix typo

* Improve coverage (#187)

* update tests and coverage

* update tests

* update tests

* add copy to test

* fix typo

* format

* fix typo

* Improve coverage 2.0 (#188)

* improve coverage 2.0

* format

* fix typo

* bump version

---------

Co-authored-by: Andrew Rosemberg <andrewrosemberg@gmail.com>
Co-authored-by: Andrew <arosemberg3@gatech.edu>
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.

2 participants