940.png" alt="$\pmatrix{1&amp; x_1-1&amp; 0\cr x_1&amp; 1&amp; x_2\cr 0&amp;x_2&amp; 1}\succeq 0$"></p>
         <p>To define this example, we can use Matlab's anonymous functions:</p><pre class="codeinput"><span class="keyword">function</span> [penm] = bex1()
  B = sparse([1 -1 0; -1 1 0; 0 0 1]);
  A{1} = sparse([0 1 0; 1 0 0; 0 0 0]);
  A{2} = sparse([0 0 0; 0 0 1; 0 1 0]);

  penm = [];
  penm.probname = <span class="string">'berlin_ex1'</span>;
  penm.comment = <span class="string">'quad objective with