-
Notifications
You must be signed in to change notification settings - Fork 43
MPS #497
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
MPS #497
Changes from 19 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
3b3dc6d
created an mps readers based on pulp
DLWoodruff 37d04c5
created an mps_module to allow for mps based scenarios
DLWoodruff a222aea
[WIP] added to the format for json files to accompany lp and mps files
DLWoodruff 6fd3bcf
can now read mps using coin mip; here's a little demo
DLWoodruff 04472ad
major corrections by dlw
DLWoodruff af84d03
mps_coin_mip.py executes, but the solutions don't match
DLWoodruff de8a5cc
the mps reader is ready for testing
DLWoodruff 038675e
added a test for the mps_reader
DLWoodruff 43d5d0c
[WIP] getting start on testing for the mps module option in generic c…
DLWoodruff 4c039b1
[WIP] working on testin generic tester and fixing bugs (still need to…
DLWoodruff cd6d759
working on generic tester to get cfg.num_scens taken care of
DLWoodruff 0095e05
there is now a test for mps reader and mps module in generic tester, …
DLWoodruff ed4be65
touch up tests
DLWoodruff 79072bd
added a demonstration and some documentation.
DLWoodruff a8aba60
tests are ready to run?
DLWoodruff ea8ad8c
cleanup
DLWoodruff 93bdd0c
trying to debug the admm_wrapper test
DLWoodruff d16a7d4
Update test_admmWrapper.py
DLWoodruff 6f2c4d1
make the top level of the json file schema symmetric
DLWoodruff 34dde2d
Update doc/src/agnostic.rst
DLWoodruff 63340f7
Update mpisppy/utils/mps_reader.py
DLWoodruff 2cdcc83
Merge branch 'main' into mps
DLWoodruff a551134
change the name of the mps write opion in generic_cylinders
DLWoodruff 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!/bin/bash | ||
# This is mainly to demonstrate what loose agnostic files look like and | ||
# how to use them with agnostic_cylinders.py. | ||
# To do that, we write the files based on a Pyomo model, then | ||
# read them in. | ||
# Note: if you actually have a Pyomo model, you probably don't want to do | ||
# it this way since you would have had to have written most of the | ||
# functions (e.g. scenario_creator) anyway. | ||
# If you are using some other AML, then you migth want to use the second | ||
# command line to read the files you wrote with your AML and | ||
# you can use the first command to write files as an example of the format | ||
# for the json files. | ||
|
||
set -e | ||
|
||
SOLVER=cplex | ||
|
||
# assumes we are in the sizes directory and don't mind polluting it with 6 files | ||
python ../../mpisppy/generic_cylinders.py --module-name sizes_expression --num-scens 3 --default-rho 1 --solver-name ${SOLVER} --max-iterations 0 --scenario-lp-mps-files | ||
|
||
# By specifying the module to be mps_module we will read files for the problem | ||
# from the specified mps-files-directory. | ||
mpiexec -np 3 python -m mpi4py ../../mpisppy/generic_cylinders.py --module-name ../../mpisppy/utils/mps_module --xhatshuffle --lagrangian --default-rho 1 --solver-name ${SOLVER} --max-iterations 10 --mps-files-directory=. |
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.
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.