-
Notifications
You must be signed in to change notification settings - Fork 149
Adds translators between modeling libraries and quadratic program #122
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 10 commits
Commits
Show all changes
68 commits
Select commit
Hold shift + click to select a range
3d1435e
add docplex.mp translator
t-imamichi 29a1036
revise type
t-imamichi 6f61abf
Merge branch 'main' into translator2
t-imamichi a3622f4
revert a comment
t-imamichi 63f1a86
update docstring
t-imamichi 683286b
make _load_model private and qp.load static
t-imamichi 4271523
Merge branch 'main' into translator2
t-imamichi 65aa7ea
add is_installed
t-imamichi 57dbfe7
add is_installed check
t-imamichi 2d1dd9e
Merge branch 'main' into translator2
t-imamichi 3d63fb0
Merge branch 'main' into translator2
t-imamichi d970362
update
t-imamichi 4d3cb38
Merge branch 'main' into translator2
t-imamichi ffc8183
Merge branch 'main' into translator2
t-imamichi 43e147c
(wip) add gurobi translaor and tests
t-imamichi e8036f6
(wip) add gurobi translaor and tests
t-imamichi c95cde9
fix
t-imamichi 2549508
fix lint
t-imamichi 083b2f1
Merge branch 'main' into translator2
t-imamichi dcf6659
add reno
t-imamichi 1950452
add LPFileTranslator
t-imamichi 962c32e
fix reno
t-imamichi 733b87f
fix docstrings
t-imamichi 208723f
update
t-imamichi 6c04ebd
fix a unit test
t-imamichi 8688824
rename qp.save with qp.export
t-imamichi 2b6d7ce
integrate export_as_string with export
t-imamichi 95faeea
simplify
t-imamichi f584b25
update
t-imamichi 42a1953
fix
t-imamichi cac131f
rename model -> source
t-imamichi c19b5a1
simplify
t-imamichi 088b44c
update reno and docstring
t-imamichi 1dc4323
update
t-imamichi dfa1197
fix docstring
t-imamichi b828d2c
fix error message
t-imamichi 3591b39
revert qp.export_as_lp_string and qp.export
t-imamichi 7afe376
revise types
t-imamichi 35a2cb9
Merge branch 'main' into translator2
t-imamichi 3709c9b
revise the design
t-imamichi 6bb3f82
update pylintdict
t-imamichi 498f966
revert to_gurobi -> to_gurobipy
t-imamichi 8bb85e9
revert a file
t-imamichi 1c032e3
revert read and write lp files to qp
t-imamichi b155d33
change order
t-imamichi 7da9930
update docstring
t-imamichi 136c089
simplify
t-imamichi 9b943d9
fix lint
t-imamichi 6a0c961
update reno
t-imamichi 49fd297
update
t-imamichi 52172b9
update import
t-imamichi a1c67ed
update
t-imamichi 7d88230
rename package gurobi to gurobipy
t-imamichi 15e3200
revise error messages and docstrings
t-imamichi 9b973ec
update applications
t-imamichi a68b2f2
use from_docplex_mp and to_docplex_mp
t-imamichi e25e7a9
update tutorials
t-imamichi 5276258
Merge branch 'translator2' of github.com:t-imamichi/qiskit-optimizati…
t-imamichi b139757
update reno
t-imamichi ee9aba3
Merge branch 'main' into translator2
t-imamichi a21d2c5
add october to pylintdict
t-imamichi 89b9f16
revert test_docplex and revise test_feasibility
t-imamichi 66eca8b
fix unused import
t-imamichi 87f477e
Merge branch 'main' into translator2
t-imamichi d36157c
revise deprecation message
t-imamichi 958726a
remove test_docplex
t-imamichi a81b1ad
Revert "remove test_docplex"
t-imamichi cfe0b82
change stacklevel=2 of deprecation warning and surpress deprecation w…
t-imamichi 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,42 @@ | ||
| # This code is part of Qiskit. | ||
| # | ||
| # (C) Copyright IBM 2021. | ||
| # | ||
| # This code is licensed under the Apache License, Version 2.0. You may | ||
| # obtain a copy of this license in the LICENSE.txt file in the root directory | ||
| # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. | ||
| # | ||
| # Any modifications or derivative works of this code must retain this | ||
| # copyright notice, and modified files need to carry a notice indicating | ||
| # that they have been altered from the originals. | ||
|
|
||
| """ | ||
| Optimization model translators (:mod:`qiskit_optimization.translators`) | ||
| =================================================================== | ||
|
|
||
| .. currentmodule:: qiskit_optimization.translators | ||
|
|
||
| Translators between an optimization model and a quadratic program | ||
|
t-imamichi marked this conversation as resolved.
Outdated
|
||
|
|
||
| Base class for translators | ||
| ======================================= | ||
|
|
||
| .. autosummary:: | ||
| :toctree: ../stubs/ | ||
| :nosignatures: | ||
|
|
||
| ModelTranslator | ||
|
t-imamichi marked this conversation as resolved.
Outdated
|
||
|
|
||
| Translators | ||
| ====================== | ||
| .. autosummary:: | ||
| :toctree: ../stubs/ | ||
| :nosignatures: | ||
|
|
||
| DocplexTranslator | ||
|
t-imamichi marked this conversation as resolved.
Outdated
|
||
| """ | ||
|
|
||
| from .model_translator import ModelTranslator | ||
| from .docplex import DocplexMpTranslator | ||
|
|
||
| _all = ["ModelTranslator", "DocplexMpTranslator"] | ||
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.