HS71.emam 741 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* (c) https://github.com/MontiCore/monticore */
// example problem, number 71 from the Hock-Schittkowsky test suite
// W. Hock and K. Schittkowski.
// Test examples for nonlinear programming codes.
// Lecture Notes in Economics and Mathematical Systems, 187, 1981.
// doi: 10.1007/978-3-642-48320-2.

package de.rwth.monticar.optimization;

component HS71{

    ports out Q^{4} xOut,
          out Q yOut;

    implementation Math{
        minimize
            Q(1:5)^{4} x;
        in
            Q y = x(1) * x(4) * (x(1) + x(2) + x(3)) + x(3);
        subject to
            x(1) * x(2) * x(3) * x(4) >= 25;
            x(1) * x(1) + x(2) * x(2) + x(3) * x(3) + x(4) * x(4) == 40;
        end
        xOut = x;
        yOut = y;
    }
}