|
| 1 | +minsurf_meta = Dict( |
| 2 | + :nvar => 144, |
| 3 | + :variable_nvar => true, |
| 4 | + :ncon => 256, |
| 5 | + :variable_ncon => true, |
| 6 | + :minimize => true, |
| 7 | + :name => "minsurf", |
| 8 | + :has_equalities_only => false, |
| 9 | + :has_inequalities_only => false, |
| 10 | + :has_bounds => false, |
| 11 | + :has_fixed_variables => false, |
| 12 | + :objtype => :other, |
| 13 | + :contype => :linear, |
| 14 | + :best_known_lower_bound => -Inf, |
| 15 | + :best_known_upper_bound => Inf, |
| 16 | + :is_feasible => missing, |
| 17 | + :defined_everywhere => missing, |
| 18 | + :origin => :unknown, |
| 19 | +) |
| 20 | +get_minsurf_nvar(; n::Integer = default_nvar, nx = Int(round(sqrt(max(1, n - 2)))), ny = Int(round(sqrt(max(1, n - 2)))), kwargs...) = (nx + 2)*(ny + 2) |
| 21 | +get_minsurf_ncon(; n::Integer = default_nvar, nx = Int(round(sqrt(max(1, n - 2)))), ny = Int(round(sqrt(max(1, n - 2)))), kwargs...) = (nx + 2)*(ny + 2) + 2*(nx + ny + 4) + ((2*divrem(nx + 1, 4)[1] + divrem(nx + 1, 4)[2] + 1) * (2*divrem(ny + 1, 4)[1] + divrem(ny + 1, 4)[2] + 1)) |
| 22 | +get_minsurf_nlin(; n::Integer = default_nvar, nx = Int(round(sqrt(max(1, n - 2)))), ny = Int(round(sqrt(max(1, n - 2)))), kwargs...) = (nx + 2)*(ny + 2) + 2*(nx + ny + 4) + ((2*divrem(nx + 1, 4)[1] + divrem(nx + 1, 4)[2] + 1) * (2*divrem(ny + 1, 4)[1] + divrem(ny + 1, 4)[2] + 1)) |
| 23 | +get_minsurf_nnln(; n::Integer = default_nvar, kwargs...) = 0 |
| 24 | +get_minsurf_nequ(; n::Integer = default_nvar, nx = Int(round(sqrt(max(1, n - 2)))), ny = Int(round(sqrt(max(1, n - 2)))), kwargs...) = 2*(nx + ny + 4) |
| 25 | +get_minsurf_nineq(; n::Integer = default_nvar, nx = Int(round(sqrt(max(1, n - 2)))), ny = Int(round(sqrt(max(1, n - 2)))), kwargs...) = (nx + 2) * (ny + 2) + ((2*divrem(nx + 1, 4)[1] + divrem(nx + 1, 4)[2] + 1) * (2*divrem(ny + 1, 4)[1] + divrem(ny + 1, 4)[2] + 1)) |
0 commit comments