Number of integer variables in Model #4341
Unanswered
joziering
asked this question in
Linear Solver questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello all,
I am implementing an optimization problem in Java using Google OR Tools.
As part of the evaluation, I would like to access the number of constraints and binary variables in the model. MPSolver has methods "numConstraints()" and "numVariables()".
"numVariables()" seems to return the total number of variables (i.e., continuous and integer). However, I would like to obtain the number of integer variables only. Is there any way to do this?
Thanks in advance!
Best,
Jo
Beta Was this translation helpful? Give feedback.
All reactions