-
Notifications
You must be signed in to change notification settings - Fork 269
SCIP 10 #1009
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
Draft
Joao-Dionisio
wants to merge
18
commits into
master
Choose a base branch
from
SCIP10
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
SCIP 10 #1009
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
6a4140b
Add printStatisticsJson
Joao-Dionisio 3c50d40
Implied integer stuff
Joao-Dionisio 45933b9
Add extra event types
Joao-Dionisio af1645d
minor fixes in relax.pxi
Joao-Dionisio a310db6
start of iisfinder plugin
Joao-Dionisio 2fe7680
compilation, left iis for later
Joao-Dionisio a29aa5c
fix issues with exact scip. still no support
Joao-Dionisio 15afb8e
Merge remote-tracking branch 'origin/master' into SCIP10
Joao-Dionisio 6c126f7
fixed some tests
Joao-Dionisio b841b95
fix minor typos
Joao-Dionisio 79c88a1
changelog so I don't forget
Joao-Dionisio 703fd34
variable type tests
Joao-Dionisio f352c30
fix test_pricer bug
Joao-Dionisio 97434b5
Merge branch 'master' into SCIP10
Joao-Dionisio 81395b2
typo
Joao-Dionisio ae60d7e
IISfinder progress
Joao-Dionisio be3022e
Start of support for exact scip
Joao-Dionisio dc08654
Fix reader write (#1015)
DominikKamp 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
##@file iisfinder.pxi | ||
#@brief Base class of the IIS finder Plugin | ||
cdef class IISfinder: | ||
cdef public Model model | ||
cdef public str name | ||
|
||
def iisfinderfree(self): | ||
'''calls destructor and frees memory of iis finder''' | ||
pass | ||
|
||
def iisfinderexec(self): | ||
'''calls execution method of iis finder''' | ||
raise NotImplementedError("iisfinderexec() is a fundamental callback and should be implemented in the derived class") | ||
|
||
|
||
cdef SCIP_RETCODE PyiisfinderCopy (SCIP* scip, SCIP_IISFINDER* iisfinder) noexcept with gil: | ||
return SCIP_OKAY | ||
|
||
cdef SCIP_RETCODE PyiisfinderFree (SCIP* scip, SCIP_IISFINDER* iisfinder) noexcept with gil: | ||
cdef SCIP_IISFINDERDATA* iisfinderdata | ||
iisfinderdata = SCIPiisfinderGetData(iisfinder) | ||
PyIIS = <IISfinder>iisfinderdata | ||
PyIIS.iisfinderfree() | ||
Py_DECREF(PyIIS) | ||
return SCIP_OKAY | ||
|
||
cdef SCIP_RETCODE PyiisfinderExec (SCIP_IIS* iis, SCIP_IISFINDER* iisfinder, SCIP_Real timelim, SCIP_Longint nodelim, SCIP_Bool removebounds, SCIP_Bool silent, SCIP_RESULT* result) noexcept with gil: | ||
cdef SCIP_IISFINDERDATA* iisfinderdata | ||
iisfinderdata = SCIPiisfinderGetData(iisfinder) | ||
PyIIS = <IISfinder>iisfinderdata | ||
result_dict = PyIIS.iisfinderexec() | ||
assert isinstance(result_dict, dict), "iisfinderexec() must return a dictionary." | ||
#TODO | ||
assert False | ||
# lowerbound[0] = result_dict.get("lowerbound", <SCIP_Real>lowerbound[0]) | ||
# result[0] = result_dict.get("result", <SCIP_RESULT>result[0]) | ||
# return SCIP_OKAY |
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
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
Oops, something went wrong.
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.