</span> (~isfield(pen,<span class="string">'q_row'</span>) || ~isfield(pen,<span class="string">'q_col'</span>) || ~isfield(pen,<span class="string">'q_val'</span>))
0055       error(<span class="string">'Input: incomplete quadratic part of the objective.'</span>);
0056     <span class="keyword">end</span>
0057     H = sparse(pen.q_row+1, pen.q_col+1, pen.q_val,Nx,Nx,pen.Q_nzs);
0058     <span class="comment">% only upper triangle, symmetrize</span>
0059     bmidata.H = H + triu(H,1)';
0060   <span class="k