-
Notifications
You must be signed in to change notification settings - Fork 269
BUG: _VarArray
can't handle MatrixVar
#1044
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
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
885865a
Refactor _VarArray initialization and type checks
Zeroto521 9451cc6
Refactor _VarArray to support MatrixVariable input
Zeroto521 7ee3a6f
Add test for indicator constraint with matrix binary var
Zeroto521 2cde7a6
Update CHANGELOG.md
Zeroto521 50bb995
Declare ptr variable in create_ptr function
Zeroto521 d72f951
Refactor create_ptr to remove redundant size argument
Zeroto521 110679f
Refactor _VarArray initialization logic
Zeroto521 f181cf4
Update CHANGELOG
Zeroto521 0346c52
Update test for addConsIndicator with activeone flag
Zeroto521 68f2e44
ENH: flatten list
Zeroto521 5580e12
BUG: use `np.ravel` avoid to run out of vars range
Zeroto521 8fc900c
Merge branch 'master' into fix/1043
Joao-Dionisio d52eb54
test binvar with (1, 1, 1) matrix
Zeroto521 8424c6d
test binvar with (2, 3) matrix
Zeroto521 710a836
test binvar with (2, 1) list of lists
Zeroto521 3b64e79
correct index
Zeroto521 2be1117
Add TypeError test for addConsIndicator with binvar
Zeroto521 7277e55
Merge branch 'master' into fix/1043
Joao-Dionisio 09e3a0f
Only requiring a 1D array
Zeroto521 c749183
TST: raise an error while get not 1D array
Zeroto521 cba76c2
MAINT: Update error message
Zeroto521 44de7b7
TST: update error type
Zeroto521 1fd24a9
Update CHANGELOG.md
Zeroto521 1a3d2e1
Fix _VarArray initialization for empty input
Zeroto521 e17f68b
Remove _VarArray changing from changelog
Zeroto521 d280764
TST: update the comparing method
Zeroto521 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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.
Uh oh!
There was an error while loading. Please reload this page.