-
Notifications
You must be signed in to change notification settings - Fork 0
/
ARGLINC.SIF
111 lines (72 loc) · 2.08 KB
/
ARGLINC.SIF
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
***************************
* SET UP THE INITIAL DATA *
***************************
NAME ARGLINC
* Problem :
* *********
* Variable dimension rank one linear problem, with zero rows and columns
* Source: Problem 34 in
* J.J. More', B.S. Garbow and K.E. Hillstrom,
* "Testing Unconstrained Optimization Software",
* ACM Transactions on Mathematical Software, vol. 7(1), pp. 17-41, 1981.
* See also Buckley#101 (with different N and M)
* SIF input: Ph. Toint, Dec 1989.
* classification SUR2-AN-V-0
* This problem is a linear least squares
* N is the number of free variables
* M is the number of equations ( M.ge.N)
*IE N 10 $-PARAMETER
*IE N 50 $-PARAMETER
*IE N 100 $-PARAMETER
IE N 200 $-PARAMETER
*IE M 20 $-PARAMETER .ge. N
*IE M 100 $-PARAMETER .ge. N
*IE M 200 $-PARAMETER .ge. N
IE M 400 $-PARAMETER .ge. N
* Define useful parameters
IE 1 1
IE 2 2
IA M-1 M -1
IA N-1 N -1
VARIABLES
DO I 1 N
X X(I)
ND
GROUPS
XN G(1)
DO I 2 M-1
RI RI I
RA I-1 RI -1.0
DO J 2 N-1
RI RJ J
R* JI-1 I-1 RJ
ZN G(I) X(J) JI-1
ND
XN G(M)
CONSTANTS
X ARGLINC 'DEFAULT' 1.0
BOUNDS
FR ARGLINC 'DEFAULT'
START POINT
V ARGLINC 'DEFAULT' 1.0
GROUP TYPE
GV L2 GVAR
GROUP USES
XT 'DEFAULT' L2
OBJECT BOUND
* Solution
*LO SOLTN(10) 6.13513513
*LO SOLTN(50) 26.1269035
*LO SOLTN(100) 26.1269
ENDATA
*********************
* SET UP THE GROUPS *
* ROUTINE *
*********************
GROUPS ARGLINC
INDIVIDUALS
T L2
F GVAR * GVAR
G GVAR + GVAR
H 2.0
ENDATA