Skip to content
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

Getting values ​​of decision variables #13

Open
BedirhanSARIMEHMET opened this issue Jan 1, 2023 · 1 comment
Open

Getting values ​​of decision variables #13

BedirhanSARIMEHMET opened this issue Jan 1, 2023 · 1 comment

Comments

@BedirhanSARIMEHMET
Copy link

Hi,
I can get the Z value, but how can I find out the values ​​of the decision variables?
Yours truly

@vberaudi
Copy link
Member

vberaudi commented Jan 2, 2023

You cannot access directly the dvar values: doopl only "extracts" tupleSet from OPL to Python.
If you look at the examples, such as loving_hearts or mulprod, you will see that they all declare post processing tupleSet structures that are filled via comprehensions on the decision variables values, then from python they are accessed via the get_table method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants