ctions, in directory <tt>examples</tt></p><pre class="codeinput"><span class="keyword">function</span> [penm] = ex1_define()
  penm = [];
  penm.probname = <span class="string">'examples/ex1'</span>;
  penm.comment = <span class="string">'Source: user external definition of functions'</span>;

  penm.Nx = 3;
  penm.lbx = zeros(3,1);

  penm.NgNLN = 1;
  penm.NgLIN = 1;
  penm.lbg = [4, 24];
  penm.ubg = [Inf, 24];

  penm.objfun = @ex1_objfun;
  penm.confun = @ex1_confun;
  penm.objgrad = @ex1_objgrad;
  pe