Skip to content

Feature/matrix accessor#4

Merged
FBumann merged 7 commits intomasterfrom
feature/matrix-accessor
Nov 25, 2025
Merged

Feature/matrix accessor#4
FBumann merged 7 commits intomasterfrom
feature/matrix-accessor

Conversation

@FBumann
Copy link
Owner

@FBumann FBumann commented Nov 25, 2025

Closes # (if applicable).

Changes proposed in this Pull Request

Checklist

  • Code changes are sufficiently documented; i.e. new functions contain docstrings and further explanations may be given in doc.
  • Unit tests for new features were added (if applicable).
  • A note for the release notes doc/release_notes.rst of the upcoming release is included.
  • I consent to the release of this PR's code under the MIT license.

…rect API export to handle constraints with coordinates
  | Property  | Description                                             |
  |-----------|---------------------------------------------------------|
  | qclabels  | Vector of labels of all quadratic constraints           |
  | qc_sense  | Vector of senses (<=, >=, =)                            |
  | qc_rhs    | Vector of right-hand-side values                        |
  | Qc        | List of sparse Q matrices (one per constraint)          |
  | qc_linear | Sparse matrix of linear coefficients (n_qcons × n_vars) |

  The Q matrices follow the convention x'Qx where:
  - Diagonal terms are doubled (for x²)
  - Off-diagonal terms are symmetric (for xy)
@coderabbitai
Copy link

coderabbitai bot commented Nov 25, 2025

Warning

Rate limit exceeded

@FBumann has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 24 minutes and 32 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 04822a0 and 299d7f8.

📒 Files selected for processing (2)
  • linopy/matrices.py (2 hunks)
  • test/test_quadratic_constraint.py (1 hunks)
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/matrix-accessor

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

…ssor

# Conflicts:
#	test/test_quadratic_constraint.py
@FBumann FBumann merged commit 5b54571 into master Nov 25, 2025
1 check passed
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.

1 participant