title: Can you create an array of unknown values with CVXPY?
body: <p>I am attempting to find an array of optimum values to help with selecting the best runtime for some motors in a factory.</p>
  <p>At the moment I have created a simple version of what I would like to do, and it works for one.</p>
  <pre><code># Create variables
  running_time = cp.Variable(name='running_time')
  max_running_time = 240 # in minutes
  pump_flow_per_minute = 9.6*3600
  required_volume = 2073600 # in litres
  
  # Find the optimal solution
  objective = cp.Minimize(running_time)
  
  # Constraints
  runtime_constraint = running_time &lt;= max_running_time
  volume_contraint = pump_flow_per_minute * running_time &gt;= required_volume
  
  constraints = [runtime_constraint, volume_contraint]
  prob = cp.Problem(objective, constraints)
  prob.solve()
  print(&quot;The optimal solution is:&quot;, prob.value)
  </code></pre>
  <p>The issue I am having is translating this to multiple areas, where I would like to look at an array of <code>max_running_times</code> which could equate to a 24 hour period, and likewise with the required volumes.</p>
  <p>Is there such a way to complete this trick with the use of CVXPY, I ultimately think the use of one problem is best as in the future adding onto this problem, the solution will directly cause effect on the other times of day selected. Is the solution best solved with the liked of loops?</p>