# \#optim

**URL:** https://discourse.julialang.org/tag/optim/112.md?page=5

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

**Page:** 6

---

## [Optim returns slightly different result in unit testing environment](https://discourse.julialang.org/t/optim-returns-slightly-different-result-in-unit-testing-environment/14460)

<div class="topic-metadata">

**Author:** [@tk3369](https://discourse.julialang.org/u/tk3369)\
**Replies:** 6\
**Last updated:** [September 3, 2018, 6:15am UTC](https://discourse.julialang.org/t/optim-returns-slightly-different-result-in-unit-testing-environment/14460 "2018-09-03T06:15:36Z")

</div>

I’ve been scratching my head in the past few hours with no answer. I hope someone has a clue. I added some unit test cases for the BoxCoxTrans.jl package (unregistered) but the test fails only in the unit testing enviro…

---

## [Parameter estimation DifferentialEquations.jl with Optim.jl](https://discourse.julialang.org/t/parameter-estimation-differentialequations-jl-with-optim-jl/11145)

<div class="topic-metadata">

**Author:** [@moesphere](https://discourse.julialang.org/u/moesphere)\
**Replies:** 2\
**Last updated:** [August 23, 2018, 2:27pm UTC](https://discourse.julialang.org/t/parameter-estimation-differentialequations-jl-with-optim-jl/11145 "2018-08-23T14:27:59Z")

</div>

Hello, I get a dimension mismatch while broadcasting when trying to estimate parameters with objects from the DifferentialEquations.jl package using the Optim.jl package. I have tried different numbers of data points. I…

---

## [Optim.optimize() uses excessive memory with autodiff?](https://discourse.julialang.org/t/optim-optimize-uses-excessive-memory-with-autodiff/11872)

<div class="topic-metadata">

**Author:** [@tyleransom](https://discourse.julialang.org/u/tyleransom)\
**Replies:** 11\
**Last updated:** [June 22, 2018, 3:17pm UTC](https://discourse.julialang.org/t/optim-optimize-uses-excessive-memory-with-autodiff/11872 "2018-06-22T15:17:01Z")

</div>

I’m using Optim.optimize() to estimate a likelihood-type model. Having read that autodiff is a great feature, I have implemented it. I have three questions that I’m hoping someone can shed more light on. For reference, …

---

## [Accumulated memory usage in optimize() Optim package](https://discourse.julialang.org/t/accumulated-memory-usage-in-optimize-optim-package/5706)

<div class="topic-metadata">

**Author:** [@WenlongGong](https://discourse.julialang.org/u/WenlongGong)\
**Replies:** 1\
**Last updated:** [June 21, 2018, 9:06pm UTC](https://discourse.julialang.org/t/accumulated-memory-usage-in-optimize-optim-package/5706 "2018-06-21T21:06:43Z")

</div>

I use the optimize() function with default method like below, to estimate some parameters. optimize(nloglikT,g\_tol = 1e-8, init, iterations=500, store\_trace=true, show\_trace=true, show\_every=1) It consumed accumulating…

---

## [Optim L-BFGS() - Can I save internal state?](https://discourse.julialang.org/t/optim-l-bfgs-can-i-save-internal-state/8583)

<div class="topic-metadata">

**Author:** [@egcjm](https://discourse.julialang.org/u/egcjm)\
**Replies:** 1\
**Last updated:** [January 25, 2018, 11:32am UTC](https://discourse.julialang.org/t/optim-l-bfgs-can-i-save-internal-state/8583 "2018-01-25T11:32:52Z")

</div>

Oftentimes, L-BFGS has not converged when it stops after a few hours of crunching away because I specified too few iterations… I then would like to continue without having to restart from scratch, i.e. without L-BFGS reb…

---

## [optim arguments: higher dimensional arrays and gradient specification](https://discourse.julialang.org/t/optim-arguments-higher-dimensional-arrays-and-gradient-specification/8500)

<div class="topic-metadata">

**Author:** [@egcjm](https://discourse.julialang.org/u/egcjm)\
**Replies:** 10\
**Last updated:** [January 26, 2018, 2:31pm UTC](https://discourse.julialang.org/t/optim-arguments-higher-dimensional-arrays-and-gradient-specification/8500 "2018-01-26T14:31:30Z")

</div>

Two questions regarding optim,jl: Gradient specification for higher dimensional arrays. Optim.jl documentation states that “for zeroth and first order methods, it is also possible to pass in matrices, or even higher d…

---

## [NLopt stopval and termination criteria](https://discourse.julialang.org/t/nlopt-stopval-and-termination-criteria/7333)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 3\
**Last updated:** [November 30, 2017, 3:24pm UTC](https://discourse.julialang.org/t/nlopt-stopval-and-termination-criteria/7333 "2017-11-30T15:24:39Z")

</div>

Hi, I am solving optimization problems like find max x1 in \[a1,b1\] : f(x1,x2,x3...)\<=0 plus I know that at initial point f(a1,a2,a3...)\<=0. Sometimes my model f (based on experimental data) isn’t sensitive to x1 (like …

---

## [Variable and Equation scaling in JuMP](https://discourse.julialang.org/t/variable-and-equation-scaling-in-jump/5700)

<div class="topic-metadata">

**Author:** [@Sharabh\_Shukla](https://discourse.julialang.org/u/Sharabh_Shukla)\
**Replies:** 3\
**Last updated:** [November 11, 2017, 2:45am UTC](https://discourse.julialang.org/t/variable-and-equation-scaling-in-jump/5700 "2017-11-11T02:45:25Z")

</div>

HI everybody, I am writing a SOCP(Second Order Conic Program) in Julia, moving from GAMS. I was wondering how to get variable scaling in JuMP, I need it since in my model some of the variables and equations are badly sc…

---

## [Does the cost of function call matter in Julia?](https://discourse.julialang.org/t/does-the-cost-of-function-call-matter-in-julia/6990)

<div class="topic-metadata">

**Author:** [@111](https://discourse.julialang.org/u/111)\
**Replies:** 9\
**Last updated:** [November 10, 2017, 12:05pm UTC](https://discourse.julialang.org/t/does-the-cost-of-function-call-matter-in-julia/6990 "2017-11-10T12:05:24Z")

</div>

I’ve written a long function, and according to https://docs.julialang.org/en/latest/manual/performance-tips/, I rewrote it with some functions to avoid the global variables. The performance is nicer now. My questions are…

---

## [Using optim.jl ( optimization ) - like fminsearch in matlab](https://discourse.julialang.org/t/using-optim-jl-optimization-like-fminsearch-in-matlab/6709)

<div class="topic-metadata">

**Author:** [@leaoshark](https://discourse.julialang.org/u/leaoshark)\
**Replies:** 48\
**Last updated:** [November 2, 2017, 8:48pm UTC](https://discourse.julialang.org/t/using-optim-jl-optimization-like-fminsearch-in-matlab/6709 "2017-11-02T20:48:24Z")

</div>

Hello … it is possible to use optim to solve this ? R = \[0.5 1 2 3\] # so for each R I have one S S = \[1 2 3 4 \] SS(R) = quadgk(a-\> R\*(a^2) \* x\[1\] + R\*\*a\* x\[2\] ,0,Inf) for which x\[1\] and x\[2\] i have SS = S ???…

---

## [NLopt simplex methods in log scale](https://discourse.julialang.org/t/nlopt-simplex-methods-in-log-scale/6452)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 5\
**Last updated:** [October 27, 2017, 8:24pm UTC](https://discourse.julialang.org/t/nlopt-simplex-methods-in-log-scale/6452 "2017-10-27T20:24:31Z")

</div>

Hi, It is often useful to move to log scale while searching for parameters in a wide range (1e-9, 1e9). In my case I am estimating parameters of ODE system in a range (1e-9, 1e9) using derivative-free optimization algor…

---

## [Parameters optimization profiles](https://discourse.julialang.org/t/parameters-optimization-profiles/6141)

<div class="topic-metadata">

**Author:** [@ivborissov](https://discourse.julialang.org/u/ivborissov)\
**Replies:** 3\
**Last updated:** [October 6, 2017, 10:53am UTC](https://discourse.julialang.org/t/parameters-optimization-profiles/6141 "2017-10-06T10:53:27Z")

</div>

Hi, has anyone solved the following optimization problem: I am estimating ODE parameters (using NLopt) like param1,param2,param3 and I want to create “profiles” of each parameter. It means estimate param2 and param3 for …

---

## [Optim: What optimiser is best if your gradient computation is slow?](https://discourse.julialang.org/t/optim-what-optimiser-is-best-if-your-gradient-computation-is-slow/5487)

<div class="topic-metadata">

**Author:** [@vgdev](https://discourse.julialang.org/u/vgdev)\
**Replies:** 13\
**Last updated:** [August 22, 2017, 7:24pm UTC](https://discourse.julialang.org/t/optim-what-optimiser-is-best-if-your-gradient-computation-is-slow/5487 "2017-08-22T19:24:40Z")

</div>

I have a objective function that is a result of N stochastic simulations, i.e. some function f with the sample mean of my simulations as input. I am using the ForwarDiff package to produce the gradient of my objective fu…

---

## [Error when enabeling automatic differentiation in Optim](https://discourse.julialang.org/t/error-when-enabeling-automatic-differentiation-in-optim/5410)

<div class="topic-metadata">

**Author:** [@vgdev](https://discourse.julialang.org/u/vgdev)\
**Replies:** 4\
**Last updated:** [August 16, 2017, 7:29pm UTC](https://discourse.julialang.org/t/error-when-enabeling-automatic-differentiation-in-optim/5410 "2017-08-16T19:29:31Z")

</div>

I try to enable forward automatic differentiation to the Rosenbrock example in the documentation (link). When setting the OnceDifferentiable object I get an error: od = OnceDifferentiable(f, initial\_x; autodiff = :forwa…

---

## [Parallel newton-raphson optim](https://discourse.julialang.org/t/parallel-newton-raphson-optim/5226)

<div class="topic-metadata">

**Author:** [@grandemundo82](https://discourse.julialang.org/u/grandemundo82)\
**Replies:** 14\
**Last updated:** [August 7, 2017, 5:48pm UTC](https://discourse.julialang.org/t/parallel-newton-raphson-optim/5226 "2017-08-07T17:48:08Z")

</div>

Anyone has implemented newton-raphson (BFGS or L-BFGS) in parallel in Julia? The flow is super simple but somehow I don’t see how to do it with Optim. It is as follows given x of dimension N. Use N+1 processors, one pro…

---

## [Optim.jl v0.9.0 is out!](https://discourse.julialang.org/t/optim-jl-v0-9-0-is-out/4066)

<div class="topic-metadata">

**Author:** [@pkofod](https://discourse.julialang.org/u/pkofod)\
**Replies:** 16\
**Last updated:** [June 28, 2017, 12:05pm UTC](https://discourse.julialang.org/t/optim-jl-v0-9-0-is-out/4066 "2017-06-28T12:05:37Z")

</div>

I’m very happy to announce that Optim.jl v0.9.0 is out, although only for Julia v0.6. So if you only use official releases, you’ll have to wait a bit to try it out. Once again, thanks to Asbjørn Nilsen Riseth (@anriseth …

[Previous page](https://discourse.julialang.org/tag/optim/112.md?match_all_tags=true&page=4&tags%5B%5D=optim)
