thx, chris. I thought I had followed it, but did not look close enough. I wonder whether this is sort of usage buglet, too. See

```
julia> optimize(myfun, [ 0.0, 0.0 ], fill(6.0, 2), fill(100.0, 2), Optim.Options(iterations=20000))
Results of Optimization Algorithm
* Algorithm: Nelder-Mead
* Starting Point: [100.0,100.0]
* Minimizer: [1.9999890189817244,3.0000111941805336]
* Minimum: 2.458924e-10
* Iterations: 58
* Convergence: true
* ā(Ī£(yįµ¢-yĢ)Ā²)/n < 1.0e-08: true
* Reached Maximum Number of Iterations: false
* Objective Calls: 113
```

above happily seems to work but ignores the box constraints. instead, it should do the same thing as the following.

now, omit the Optim.Options, and I get the correct error message:

```
julia> optimize(myfun, [ 0.0, 0.0 ], fill(6.0, 2), fill(100.0, 2))
ERROR: Initial position must be inside the box
```

Moreover, with the Options, it can fail altogether. Are `Optim.Options`

incompatible with `Fminbox`

?

```
julia> optimize(myfun, [ 50.0, 50.0 ], fill(6.0, 2), fill(100.0, 2), Fminbox{NelderMead}(), Optim.Options(iterations=200000))
ERROR: No default objective type for Optim.Fminbox{Optim.NelderMead}() and (myfun, [50.0, 50.0], [6.0, 6.0]).
```