title: Examples of apache math optimization
body: <p>I have a simple optimization problem and am looking for java software for that. </p>
  
  <p>The Apache math optimization software looks just like what I want but I cant find documentation to suit my needs (where those needs are to useful to a beginner / non maths professional!)</p>
  
  <p>Does anyone know of a worked, simple, example?</p>
  
  <p>In case it helps, the problem is that I want to find the max r where </p>
  
  <pre><code>r1 = s1 * m1
  
  r2 = s2 * m2
  </code></pre>
  
  <p>and there are some constraints and formula for defining the relationship between the variables. The Excel Solver works fine for this problem. I got LPSolve working great, but this problem requires a multiplication of s and m, so I understand LPSolve cant help as this makes the problem non linear.</p>