title: Java Constraint Programming
body: <p>How do I express a quadratic objective function in Constraint Programming? In Cplex, I write it as follows: </p>
  
  <pre><code>IloLQNumExpr objfn = model.lqNumExpr()
  </code></pre>
  
  <p>but it is not the same in CP.</p>