Home Forums Constrained Optimization

  • This topic has 10 replies, 3 voices, and was last updated 6 years ago by hessinemaaoui.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2817
    hessinemaaoui
    Keymaster

    Hello,

    Anyone can help me to understand how work the constraints in SuanShu library. I don’t understand how this example represents this constraint x>=1

    * A less than constraint for constrained optimization.
    105 */
    106 public static final LessThanConstraints C2 = new GeneralLessThanConstraints(
    107 new AbstractBivariateRealFunction() {
    108 @Override
    109 public double evaluate(double x, double y) {
    110 return 1 – x; // x >= 1
    111 }
    112 });

    If a have the following constraint:

    q1+q2+….+qn<=1

    How I can implement this in the SuanShu library?

    Best regards,

    Oscar

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.