Find number of constraints and variables

  • 16 June 2020
  • 1 reply

Dear mr/ms,

For a school project I have been working in AIMMS. However after solving our problem, we need to validate our model. Our professor said that we had to look at the #variables and the #constraints shown in the progress feed. However, after searching on internet for a few hours we could not find anything that defined these numbers. Are there some basic calculation steps to find the #constraints and the #variables?

I hope to hear from you soon.

Kind regards,

Stan Loog.


Best answer by mohansx 18 June 2020, 01:48

View original

1 reply

Userlevel 5
Badge +5

@Stan Loog , if you press CTRL+P in AIMMS, it will open a Progress Window. You can also access this in the toolbar, Windows → Progress Window. 


This window will contain information about the math model that you are solving. Number of constraints, variables, nonzeroes, gap, best bound, solving time, etc. 


You can also retrieve these numbers using math program suffices. See


If you are solving mpMinCost then mpMinCost.NumberofConstraints will return the number of constraints in that math program. 


Didn't find what you were looking for? Try searching on our documentation pages:

AIMMS Developer & PRO | AIMMS How-To | AIMMS SC Navigator