title: Initializing variables in gekko using the array model function
body: <p>Defining an array of Gekko variables does not allow any arguments to initialize the variables. For example, I am unable to make an array of integer variables using the m.Array function.</p>
  
  <p>I can make an array of variables using this syntax: m.Array(m.Var, (42, 42)). However, I don't know how to make this array an array of integer variables because the m.Var passed in to the m.Array function does not take any arguments.</p>
  
  <ul>
  <li><p>I have a single variable as an integer variable:
  <em>my_var_is_an_integer_var = m.Var(0, lb=0, ub=1, integer=True)</em></p></li>
  <li><p>I have an array of variables that are <strong>not</strong> integer variables:
  <em>my_array_vars_are_not_integer_vars = m.Array(m.Var, (42, 42))</em></p></li>
  <li>I want an array of integer variables: <em>my_array_vars_are_integer_vars = m.Array(m.Var(0, lb=0, ub=1, integer=True), (42,42))</em>  <strong>(Throws error)</strong></li>
  </ul>
  
  <p>HOW DO I INITIALIZE THE VARIABLES IN THE ARRAY TO BE INTEGER VARIABLES???</p>
  
  <p>Error when trying to initialize array as integer variables:</p>
  
  <pre><code>Traceback (most recent call last):
    File "integer_array.py", line 7, in &lt;module&gt;
      my_array_vars_are_not_integer_vars = m.Array(m.Var(0, lb=0, ub=1, 
  integer=True), (42,42))
    File "C:\Users\wills\Anaconda3\lib\site-packages\gekko\gekko.py", line 
   1831, in Array
      i[...] = f(**args)
  TypeError: 'GKVariable' object is not callable
  </code></pre>