-
Notifications
You must be signed in to change notification settings - Fork 5
Added functions to print jacobian matrix in COO to matrix market #92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
50b60fd
to
a159e3e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. A few minor changes are recommended for consistency.
19f2075
to
97bc6ea
Compare
999f661
to
9c13907
Compare
After running
For example
This will generate a matrix of size |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs to be rebased to develop
, otherwise good to merge.
…it's just for creating linear systems.
8cc1610
to
6f13f09
Compare
i've rebased it in the process of doing some checks. that should be sufficient |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving this commit's changes.
* added the ability to print a COO matrix and a jacobian in the matrix market format * documentation * printing residual vector too * fixed recommendations * the new file actually allows you to supply N. It also removes tests, it's just for creating linear systems. * Apply pre-commmit fixes * rebase the branch and address compiler warnings * fix memory leak in the example * add iomanip include for setprecision * Apply pre-commmit fixes --------- Co-authored-by: shakedregev <shakedregev@users.noreply.github.com> Co-authored-by: superwhiskers <whiskerdev@protonmail.com> Co-authored-by: superwhiskers <superwhiskers@users.noreply.github.com>
Description
This is a new feature that enables exporting
ScaleMicrogrid
examples of arbitrary size for testing.Proposed changes
The functions work as intended and the rest of the code is intact. This is a broad fix that can work for other Jacobians or COO matrices.
After running
make
, in yourbuild
directory, runFor example
This will generate a linear system with$36N-2$ variables and constraints.
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask. We're here
to help! This is simply a reminder of what we are going to look for before
merging your code.
-Wall -Wpedantic -Wconversion -Wextra
.Further comments
If this is a relatively large or complex change, kick off the discussion by explaining
why you chose the solution you did and what alternatives you considered, etc...