Mathematical optimization – Minimize and variable table.

I use a list of variables to Minimize a particular amount

{Q, val1, Table[Pi, {i, 1, m, 1}}

where I It is the subscript of P. However, in this way I have

{Q, val1, {P1, P2 .. Pm}} 

That does not work (a list of variables is necessary).

Any quick thoughts?
Thank you.