User Tools

Site Tools



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

Link to this comparison view

solver:counting_the_number_of_discrete_variables [2009/01/23 00:12] (current)
support created
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;
IMPRESSUM / LEGAL NOTICEPRIVACY POLICY solver/counting_the_number_of_discrete_variables.txt ยท Last modified: 2009/01/23 00:12 by support