Skip to content

Commit e980de0

Browse files
committed
clean COPS test problems
1 parent 7138b8f commit e980de0

18 files changed

Lines changed: 127 additions & 199 deletions

src/Meta/bearing.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ bearing_meta = Dict(
2020
:notes => raw"""
2121
Given observations of ns stages of a bearing species over n timesteps,
2222
minimize the loss between the observation and the computed law of paraneters : growth, mortality and number of specimens (g,m,x)
23-
23+
""",
24+
:origin_notes => raw"""
2425
This is problem 16 in the COPS (Version 3) collection of
2526
E. Dolan and J. More'
2627
see "Benchmarking Optimization Software with COPS"
@@ -32,9 +33,8 @@ Journal bearing problem
3233
Michael Merritt - Summer 2000
3334
COPS 2.0 - September 2000
3435
COPS 3.0 - November 2002
35-
COPS 3.1 - March 2004
36+
COPS 3.1 - March 2004
3637
""",
37-
:origin_notes => raw"""""",
3838
:reference => raw"""
3939
@techreport{DolanMore2004COPS,
4040
author = {Dolan, Elizabeth D. and Mor{'e}, Jorge J.},

src/Meta/camshape.jl

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,14 @@ camshape_meta = Dict(
2020
:notes => raw"""
2121
Maximize the area of the valve opening for one rotation of a convex cam
2222
with constraints on the curvature and on the radius of the cam
23-
23+
""",
24+
:origin_notes => raw"""
2425
This is problem 3 in the COPS (Version 3) collection of
2526
E. Dolan and J. More
2627
see "Benchmarking Optimization Software with COPS"
2728
Argonne National Labs Technical Report ANL/MCS-246 (2004)
2829
2930
classification LOR2-AN-V-V
30-
""",
31-
:origin_notes => raw"""
32-
Problem :
33-
Maximize the area of the valve opening for one rotation of a convex cam
34-
with constraints on the curvature and on the radius of the cam
35-
This is problem 4 in the COPS (Version 2) collection of
36-
E. Dolan and J. More'
37-
see "Benchmarking Optimization Software with COPS"
38-
Argonne National Labs Technical Report ANL/MCS-246 (2000)
3931
SIF input: Nick Gould, November 2000
4032
classification LOR2-AN-V-V
4133
""",

src/Meta/catmix.jl

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,19 @@ catmix_meta = Dict(
2020
:notes => raw"""
2121
Catalyst Mixing Problem
2222
Collocation formulation
23-
COPS 3.0 - November 2002
24-
COPS 3.1 - March 2004
25-
""",
26-
:origin_notes => raw"""
27-
Problem :
23+
2824
Determine the optimal mixing policy of two catalysts along the
2925
length of a tubular plug flow reactor involving several reactions
26+
""",
27+
:origin_notes => raw"""
3028
This is problem 14 in the COPS (Version 2) collection of
3129
E. Dolan and J. More'
3230
see "Benchmarking Optimization Software with COPS"
3331
Argonne National Labs Technical Report ANL/MCS-246 (2000)
32+
33+
COPS 3.0 - November 2002
34+
COPS 3.1 - March 2004
35+
3436
SIF input: Nick Gould, November 2000
3537
classification OOR2-AN-V-V
3638
""",
@@ -44,7 +46,7 @@ classification OOR2-AN-V-V
4446
doi = {10.2172/834714}
4547
}
4648
""",
47-
:lib => "CUTEst:CATMIX",
49+
:lib => "CUTEst:CATMIX, COPS:14",
4850
)
4951
get_catmix_nvar(; n::Integer = default_nvar, kwargs...) = 23 * n + 2
5052
get_catmix_ncon(; n::Integer = default_nvar, kwargs...) = 20 * n + 2

src/Meta/chain.jl

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,13 @@ Hanging Chain
2222
2323
Find the chain (of uniform density) of length L suspended between two points with minimal
2424
potential energy.
25-
25+
""",
26+
:origin_notes => raw"""
2627
This is problem 4 in the COPS (Version 3) collection of
2728
E. Dolan and J. More'
2829
see "Benchmarking Optimization Software with COPS"
2930
Argonne National Labs Technical Report ANL/MCS-246 (2004)
3031
31-
classification OOR2-AN-V-V
32-
""",
33-
:origin_notes => raw"""
34-
Problem :
35-
Find the chain (of uniform density) of length L suspended between
36-
two points with minimal potential energy
37-
This is problem 3 in the COPS (Version 2) collection of
38-
E. Dolan and J. More'
39-
see "Benchmarking Optimization Software with COPS"
40-
Argonne National Labs Technical Report ANL/MCS-246 (2000)
4132
SIF input: Nick Gould, November 2000
4233
classification OOR2-AN-V-V
4334
""",

src/Meta/channel.jl

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,30 +18,21 @@ channel_meta = Dict(
1818
:origin => :unknown,
1919
:url => "https://bitbucket.org/optrove/sif/src/master/CHANNEL.SIF",
2020
:notes => raw"""
21-
# Flow in a Channel
21+
Flow in a Channel
2222
23-
# Analyze the flow of a fluid during injection into a long vertical channel
24-
25-
# This is problem 7 in the COPS (Version 3) collection of
26-
# E. Dolan and J. More'
27-
# see "Benchmarking Optimization Software with COPS"
28-
# Argonne National Labs Technical Report ANL/MCS-246 (2004)
29-
30-
# classification OOR2-AN-V-V
31-
32-
""",
33-
:origin_notes => raw"""
34-
Problem :
3523
Analyse the flow of a fluid during injection into a long vertical channel,
3624
assuming that the flow is modelled by the boundary-value problem
3725
u'''' = R (u'u'' - u u''') t in [0,1]
3826
u(0) = 0, u(1) = 1, u'(0) = 0 = u'(1)
3927
where u is the potential function, u' is the tangential velocity of
4028
the field, and R is the Reynold's number
41-
This is problem 7 in the COPS (Version 2) collection of
29+
""",
30+
:origin_notes => raw"""
31+
This is problem 7 in the COPS (Version 3) collection of
4232
E. Dolan and J. More'
4333
see "Benchmarking Optimization Software with COPS"
44-
Argonne National Labs Technical Report ANL/MCS-246 (2000)
34+
Argonne National Labs Technical Report ANL/MCS-246 (2004)
35+
4536
SIF input: Nick Gould, November 2000
4637
classification NOR2-AN-V-V
4738
""",

src/Meta/elec.jl

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,13 @@ elec_meta = Dict(
2020
:notes => raw"""
2121
Given np electrons, find the equilibrium state distribution of minimal
2222
Columb potential of the electrons positioned on a conducting sphere
23-
23+
""",
24+
:origin_notes => raw"""
2425
This is problem 2 in the COPS (Version 3) collection of
2526
E. Dolan and J. More'
2627
see "Benchmarking Optimization Software with COPS"
2728
Argonne National Labs Technical Report ANL/MCS-246 (2004)
2829
29-
classification OOR2-AN-V-V
30-
""",
31-
:origin_notes => raw"""
32-
Problem :
33-
Given np electrons, find the equilibrium state distribution of minimal
34-
Columb potential of the electrons positioned on a conducting sphere
35-
This is problem 2 in the COPS (Version 2) collection of
36-
E. Dolan and J. More'
37-
see "Benchmarking Optimization Software with COPS"
38-
Argonne National Labs Technical Report ANL/MCS-246 (2000)
3930
SIF input: Nick Gould, November 2000
4031
classification OOR2-AN-V-V
4132
""",

src/Meta/gasoil.jl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,26 @@ gasoil_meta = Dict(
2020
:notes => raw"""
2121
Catalytic Cracking of Gas Oil Problem
2222
Collocation formulation
23-
""",
24-
:origin_notes => raw"""
25-
Michael Merritt - Summer 2000
26-
COPS 2.0 - September 2000
27-
COPS 3.0 - November 2002
28-
COPS 3.1 - March 2004
29-
---
30-
Problem :
23+
3124
Determine the reaction coefficients for the catalytic cracking of gas oil
3225
and other byproducts. The nonlinear model that describes the process is
3326
y_1' = - (theta_1 + theta_3 ) y_1^2
3427
y_2' = theta_1 y_1^2 + theta_2 y_2
3528
with given initial conditions. The problem is to minimize
3629
sum{i=1,20} || y(tau_i,theta) - z_i||^2
3730
where the z_i are concentration measurements for y at times tau_i (i=1,20)
31+
""",
32+
:origin_notes => raw"""
3833
This is problem 12 in the COPS (Version 2) collection of
3934
E. Dolan and J. More'
4035
see "Benchmarking Optimization Software with COPS"
4136
Argonne National Labs Technical Report ANL/MCS-246 (2000)
37+
38+
Michael Merritt - Summer 2000
39+
COPS 2.0 - September 2000
40+
COPS 3.0 - November 2002
41+
COPS 3.1 - March 2004
42+
4243
SIF input: Nick Gould, November 2000
4344
classification OOR2-AN-V-V
4445
""",
@@ -53,7 +54,7 @@ classification OOR2-AN-V-V
5354
}
5455
""",
5556

56-
:lib => "CUTEst:GASOIL",
57+
:lib => "CUTEst:GASOIL, COPS:12",
5758
)
5859
get_gasoil_nvar(; n::Integer = default_nvar, kwargs...) = 26 * n + 3
5960
get_gasoil_ncon(; n::Integer = default_nvar, kwargs...) = 26 * n + 0

src/Meta/glider.jl

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,21 @@ glider_meta = Dict(
2020
:notes => raw"""
2121
Hang Glider Problem
2222
Trapezoidal formulation
23-
""",
24-
:origin_notes => raw"""
25-
David Bortz - Summer 1998
26-
COPS 2.0 - September 2000
27-
COPS 3.0 - November 2002
28-
COPS 3.1 - March 2004
29-
---
30-
Problem :
23+
3124
Maximize the final horizontal position of a hang glider in the presence
3225
of a thermal updraft.
26+
""",
27+
:origin_notes => raw"""
3328
This is problem 11 in the COPS (Version 2) collection of
3429
E. Dolan and J. More'
3530
see "Benchmarking Optimization Software with COPS"
3631
Argonne National Labs Technical Report ANL/MCS-246 (2000)
32+
33+
David Bortz - Summer 1998
34+
COPS 2.0 - September 2000
35+
COPS 3.0 - November 2002
36+
COPS 3.1 - March 2004
37+
3738
SIF input: Nick Gould, December 2000
3839
classification OOR2-AN-V-V
3940
""",
@@ -48,7 +49,7 @@ classification OOR2-AN-V-V
4849
}
4950
""",
5051

51-
:lib => "CUTEst:GLIDER",
52+
:lib => "CUTEst:GLIDER, COPS:11",
5253
)
5354
get_glider_nvar(; n::Integer = default_nvar, kwargs...) = 5 * n + 6
5455
get_glider_ncon(; n::Integer = default_nvar, kwargs...) = 4 * n + 7

src/Meta/marine.jl

Lines changed: 11 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,23 @@ marine_meta = Dict(
1818
:origin => :unknown,
1919
:url => "https://bitbucket.org/optrove/sif/src/master/MARINE.SIF",
2020
:notes => raw"""
21-
Given observations of ns stages of a marine species over n timesteps,
22-
minimize the loss between the observation and the computed law of paraneters : growth, mortality and number of specimens (g,m,x)
23-
24-
This is problem 6 in the COPS (Version 3) collection of
25-
E. Dolan and J. More'
26-
see "Benchmarking Optimization Software with COPS"
27-
Argonne National Labs Technical Report ANL/MCS-246 (2004)
28-
29-
classification OOR2-AN-V-V
30-
3121
Marine Population Dynamics Problem
3222
Collocation formulation
33-
Alexander S. Bondarenko - Summer 1998
34-
COPS 2.0 - September 2000
35-
COPS 3.0 - November 2002
36-
COPS 3.1 - March 2004
23+
24+
Given observations of ns stages of a marine species over n timesteps,
25+
minimize the loss between the observation and the computed law of paraneters : growth, mortality and number of specimens (g,m,x)
3726
""",
3827
:origin_notes => raw"""
39-
Problem :
40-
Given estimates of the abundance of the population of a marine
41-
spieces at each stage as a function of time, determine specific
42-
growth and mortality rates. Th emodel for the population dynamics
43-
of the n_e -stage population is
44-
y_j' = g_j-1 y_j-1 - (m_j + g_j) y_j (1 <= j <= n_e)
45-
where m_i and g_i are unknown mortality and growth rates at stage i
46-
with g_0 = 0 = g_n_e. This model assumes that the species eventually
47-
dies or grows into the next stage, with the implicit assumption that
48-
the species cannot skip a stage. Initial conditions for the differntial
49-
equation are unknown, since the stage abundance measurements at the
50-
initial time might also be contaminated with experimental error. The
51-
problem is to minimize the error between the observed and computed data,
52-
sum{i=1,nm} || y(tau_i,m,g) - z_i||^2
53-
where the z_i are stage abundance measurements.
54-
This is problem 6 in the COPS (Version 2) collection of
28+
This is problem 6 in the COPS (Version 3) collection of
5529
E. Dolan and J. More'
5630
see "Benchmarking Optimization Software with COPS"
57-
Argonne National Labs Technical Report ANL/MCS-246 (2000)
31+
Argonne National Labs Technical Report ANL/MCS-246 (2004)
32+
33+
Alexander S. Bondarenko - Summer 1998
34+
COPS 2.0 - September 2000
35+
COPS 3.0 - November 2002
36+
COPS 3.1 - March 2004
37+
5838
SIF input: Nick Gould, November 2000
5939
classification OOR2-AN-V-V
6040
""",

src/Meta/methanol.jl

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,9 @@ methanol_meta = Dict(
1818
:origin => :unknown,
1919
:url => "https://bitbucket.org/optrove/sif/src/master/METHANOL.SIF",
2020
:notes => raw"""
21-
Methanol-to-Hydrocarbons Problem
22-
Collocation formulation
23-
Michael Merritt - Summer 2000
24-
COPS 2.0 - September 2000
25-
COPS 3.0 - November 2002
26-
COPS 3.1 - March 2004
27-
""",
28-
:origin_notes => raw"""
29-
Problem :
21+
Methanol-to-Hydrocarbons Problem
22+
Collocation formulation
23+
3024
Determine the reaction coefficients for the conversion of methanol into
3125
various hydrocarbons. The nonlinear model that describes the process is
3226
y_1' = - (2 theta_2 + theta_3 + theta_4 - theta_1 y_2 / d ) y_1
@@ -36,10 +30,18 @@ where d = (theta_2 + theta_5) y_1 + y_2 and the theta_i are positive,
3630
with given initial conditions. The problem is to minimize
3731
sum{i=1,16} || y(tau_i,theta) - z_i||^2
3832
where the z_i are concentration measurements for y at times tau_i (i=1,16)
33+
""",
34+
:origin_notes => raw"""
3935
This is problem 13 in the COPS (Version 2) collection of
4036
E. Dolan and J. More'
4137
see "Benchmarking Optimization Software with COPS"
4238
Argonne National Labs Technical Report ANL/MCS-246 (2000)
39+
40+
Michael Merritt - Summer 2000
41+
COPS 2.0 - September 2000
42+
COPS 3.0 - November 2002
43+
COPS 3.1 - March 2004
44+
4345
SIF input: Nick Gould, November 2000
4446
classification OOR2-AN-V-V
4547
""",
@@ -54,7 +56,7 @@ classification OOR2-AN-V-V
5456
}
5557
""",
5658

57-
:lib => "CUTEst:METHANOL",
59+
:lib => "CUTEst:METHANOL, COPS:13",
5860
)
5961
get_methanol_nvar(; n::Integer = default_nvar, kwargs...) = 30 * n + 5
6062
get_methanol_ncon(; n::Integer = default_nvar, kwargs...) = 30 * n + 0

0 commit comments

Comments
 (0)