-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Help NeededModeling/Usage problemModeling/Usage problemSolver: Linear SolverRelated to all Linear Solver (GLOP, BOP, CBC etc...)Related to all Linear Solver (GLOP, BOP, CBC etc...)
Milestone
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Help NeededModeling/Usage problemModeling/Usage problemSolver: Linear SolverRelated to all Linear Solver (GLOP, BOP, CBC etc...)Related to all Linear Solver (GLOP, BOP, CBC etc...)