Repository navigation
Conversation
* Add MOF support for function generators * MOI bump * Cover the remaining MOF serialization paths The MOF round trip was only tested with a `ScalarAffineFunction` generator over a range iterator, leaving the quadratic and nonlinear function types, the explicit iterator encoding (tuples, symbols and unevenly spaced integers) and the two error branches uncovered.
The template is encoded as an ordinary ScalarNonlinearFunction and written with MOF.moi_to_object and read with MOF.function_to_moi, instead of extending and calling the internal _convert_nonlinear_to_mof and _parse_scalar_nonlinear_function.
A template may index a vector of arbitrary variables instead of a ContiguousArrayOfVariables, for instance when the variable indices of the model are not contiguous.
A vector of values avoids writing a tuple of an arbitrary type, whose JSON method a trimmed binary may not contain.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #53 +/- ##
==========================================
+ Coverage 97.89% 98.08% +0.19%
==========================================
Files 11 12 +1
Lines 1851 1934 +83
==========================================
+ Hits 1812 1897 +85
+ Misses 39 37 -2 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.