_nnz,A_val,A_row,A_col,K_nnz,K_val,K_row,K_col)
0180 
0181   <span class="keyword">if</span> (nA==0 &amp;&amp; nK==0)
0182     error(<span class="string">'Input: neither linear nor bilinear matrices in this constraint.'</span>);
0183   <span class="keyword">end</span>
0184 
0185   <span class="keyword">if</span> (nK==0)
0186     maxOrder = 1;
0187     Ak.midx = zeros(maxOrder,nA);
0188     Ak.midx(1,:) = A_idx(1:nA);
0189   <span class="keyword">else</span>
0190     maxOrder = 2;
0191     Ak.midx = zeros(ma