title: Constrained optimisation in Matlab
body: <p>I have some function <code>f(x)</code>, where <code>x</code> is a six-element vector. I want to find a minimum of this function using</p>
  <p><code>x = fmincon(fun,x0,A,B)</code></p>
  <p>I have the following constraints:</p>
  <p><code>a*x1&lt;b*x2&lt;c*x3</code> and <code>d*x4&lt;e*x5</code>, where <code>a,b,c,d,e</code> are some numbers.</p>
  <p>My problem is to write <code>A</code> and <code>B</code> parameters of <code>fmincon</code> function correctly.</p>
  <p>Could you help me?</p>
  <h1>Update</h1>
  <p>My problem is that I don't understand how to join inequalities:
  if I want to use only <code>ax1&lt;bx2</code> then <code>A=[a,-b,0,0,0]; B=0</code>, if I want to use <code>bx2&lt;cx3</code>, then <code>A=[0,b,-c,0,0]; B=0</code>. But I could not join these constraints.</p>
  <p>May I use <code>A=[[a,-b,0,0,0],[0;b;-c;0;0]]; B = [0,0];</code>?</p>