User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
solver:counting_the_number_of_discrete_variables [2020/09/30 19:40]
Atharv Bhosekar removed
— (current)
Line 1: Line 1:
-====== ​ Counting the number of discrete variables ====== 
-Q: //How can I pass the the number of discrete variables shown in the solve summary section to a parameter?//​ 
-Please use the (undocumented) model attribute ''​.numdvar''​. Find below an example for your reference. 
-$call gamslib prodsch 
-$include prodsch 
-parameter numint; 
-numint = prod1.numdvar;​ 
-display numint;