File: minlp.zpl

package info (click to toggle)
zimpl 3.7.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 4,772 kB
  • sloc: ansic: 21,719; yacc: 993; lex: 370; sh: 349; makefile: 278
file content (54 lines) | stat: -rw-r--r-- 2,197 bytes parent folder | download | duplicates (2)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# $Id: minlp.zpl,v 1.4 2012/11/23 13:03:43 bzfkocht Exp $
#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#*                                                                           *
#*   File....: minlp.zpl                                                     *
#*   Name....: MINLP test                                                    *
#*   Author..: Thorsten Koch                                                 *
#*   Copyright by Author, All rights reserved                                *
#*                                                                           *
#* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
#*
#* Copyright (C) 2011-2025 by Thorsten Koch <koch@zib.de>
#* 
#* This program is free software; you can redistribute it and/or
#* modify it under the terms of the GNU General Public License
#* as published by the Free Software Foundation; either version 2
#* of the License, or (at your option) any later version.
#* 
#* This program is distributed in the hope that it will be useful,
#* but WITHOUT ANY WARRANTY; without even the implied warranty of
#* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#* GNU General Public License for more details.
#* 
#* You should have received a copy of the GNU General Public License
#* along with this program; if not, write to the Free Software
#* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
#*
set I := { 1 to 9 };

var x[I] binary;
var y binary;
var z binary;
var a;
var b;

subto c1: x[1]^2 == x[1]^1 + x[1]^0;
subto c2: 2 * x[1] * 3 * x[2] * 5 * x[3] <= 77;
subto c3: y * z == y^2 * z^3 * 4;
subto c4: sum <i> in I : i*x[i]^i == 8;
subto c5: (y + 5) * (z + 2) == 3;
subto c6: (4/2 * x[1] + 2/3 * x[2])^2 == 9;
subto c7: log(a) == 5;
subto c8: sqrt(a) == 2;
subto c9: exp(a) == 3;
subto c10: ln(a) <= 7;
subto c11: sin(a) <= 8;
subto c12: cos(a) <= 9;
subto c13: tan(a) >= 2;
subto c14: abs(a) >= 6;
subto c15: sgn(a) == z;
subto c16: pow(a, 2/3) >= 7;
subto c17: sgnpow(a, 12^2) <= 200;
subto c18: 16 * log(sqrt(exp(ln(sin(cos(tan(abs(sgn(pow(sgnpow(a, -2), -3)))))))))) == 99;
subto c19: (2-exp(3*a-5))^2 == b;