# Latest

**URL:** https://discourse.julialang.org/latest.md?page=411

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

**Page:** 412

---

## [NonLinear Optimization fails with JuMP (infeasible?)](https://discourse.julialang.org/t/nonlinear-optimization-fails-with-jump-infeasible/114190)

<div class="topic-metadata">

**Author:** [@nouha941](https://discourse.julialang.org/u/nouha941)\
**Replies:** 11\
**Last updated:** [May 14, 2024, 8:16am UTC](https://discourse.julialang.org/t/nonlinear-optimization-fails-with-jump-infeasible/114190 "2024-05-14T08:16:22Z")

</div>

Hello everyone, I’m currently focused on minimizing the specific consumption of a desalination unit. I’ve formulated an equation that incorporates the various hydraulic and pressure parameters of the system under investi…

---

## [Error: Some registries failed to update](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 15\
**Last updated:** [May 14, 2024, 4:03am UTC](https://discourse.julialang.org/t/error-some-registries-failed-to-update/114192 "2024-05-14T04:03:26Z")

</div>

Help! Why? ┌ Error: Some registries failed to update: │ — C:\\Users\\name\\.julia\\registries\\General.toml — failed to download from https://pkg.julialang.org/registry/23338594-aafe-5451-b93e-139f81909106/e8d546e7403e5b…

---

## [Oscar and Matlab both call nrows](https://discourse.julialang.org/t/oscar-and-matlab-both-call-nrows/114157)

<div class="topic-metadata">

**Author:** [@ilovemath](https://discourse.julialang.org/u/ilovemath)\
**Replies:** 9\
**Last updated:** [May 14, 2024, 3:42am UTC](https://discourse.julialang.org/t/oscar-and-matlab-both-call-nrows/114157 "2024-05-14T03:42:46Z")

</div>

Hi there, So, I am calling both Oscar and Matlab packages. Both call nrows in their subroutines under the hood in their often typical function calls. I was able to write the code so that I would not get the warning sa…

---

## [Modelling events in a time-series with random interval between (heart beats) with Turing.jl](https://discourse.julialang.org/t/modelling-events-in-a-time-series-with-random-interval-between-heart-beats-with-turing-jl/112653)

<div class="topic-metadata">

**Author:** [@JohsEnevoldsen](https://discourse.julialang.org/u/JohsEnevoldsen)\
**Replies:** 14\
**Last updated:** [May 13, 2024, 9:38pm UTC](https://discourse.julialang.org/t/modelling-events-in-a-time-series-with-random-interval-between-heart-beats-with-turing-jl/112653 "2024-05-13T21:38:59Z")

</div>

(Edit: here is copy-paste-able code for the problematic model: heartbeat\_question\_code.jl · GitHub) I’m trying to learn Turing.jl, and after a few simple models, I wanted to fit a more complex model, that I could not fi…

---

## [\[ANN\] Announcing ArguMend.jl – for more helpful MethodErrors](https://discourse.julialang.org/t/ann-announcing-argumend-jl-for-more-helpful-methoderrors/113878)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 8\
**Last updated:** [May 13, 2024, 7:45pm UTC](https://discourse.julialang.org/t/ann-announcing-argumend-jl-for-more-helpful-methoderrors/113878 "2024-05-13T19:45:05Z")

</div>

Announcing ArguMend.jl ArguMend\[1\] is a small macro that injects a function with logic to help autocorrect mistyped keyword arguments. @argumend function f(a, b; niterations=10, kw2=2) a + b - niterations + …

---

## ["Please submit a bug report" - How to proceed?](https://discourse.julialang.org/t/please-submit-a-bug-report-how-to-proceed/114175)

<div class="topic-metadata">

**Author:** [@MHaensel](https://discourse.julialang.org/u/MHaensel)\
**Replies:** 8\
**Last updated:** [May 13, 2024, 6:02pm UTC](https://discourse.julialang.org/t/please-submit-a-bug-report-how-to-proceed/114175 "2024-05-13T18:02:12Z")

</div>

Hi everyone, I was working on a project, during which eventually Julia crashed and asked me to “Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Tha…

---

## [What "yerror" expects in Plots.jl?](https://discourse.julialang.org/t/what-yerror-expects-in-plots-jl/114207)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [May 13, 2024, 6:39pm UTC](https://discourse.julialang.org/t/what-yerror-expects-in-plots-jl/114207 "2024-05-13T18:39:51Z")

</div>

Is it the value of sd/sqrt(n\_samples) ?

---

## [Confidence Intervals for Sobol Global Sensitivity Analysis](https://discourse.julialang.org/t/confidence-intervals-for-sobol-global-sensitivity-analysis/113671)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 3\
**Last updated:** [May 13, 2024, 6:32pm UTC](https://discourse.julialang.org/t/confidence-intervals-for-sobol-global-sensitivity-analysis/113671 "2024-05-13T18:32:20Z")

</div>

I was running the example for Sobol sensitivity analysis, which was mentioned in the tutorial (Sobol Method · GlobalSensitivity.jl) and I observed that when I specified the nboot argument to calculate the confidence inte…

---

## [Butterworth Filter compared to Butter in Matlab](https://discourse.julialang.org/t/butterworth-filter-compared-to-butter-in-matlab/114201)

<div class="topic-metadata">

**Author:** [@ahrensma](https://discourse.julialang.org/u/ahrensma)\
**Replies:** 2\
**Last updated:** [May 13, 2024, 5:51pm UTC](https://discourse.julialang.org/t/butterworth-filter-compared-to-butter-in-matlab/114201 "2024-05-13T17:51:04Z")

</div>

Hello, I am not yet fully familiar with Julia and am currently struggling with the DSP / Butterworth filter. My original Matlab-Code is x = linspace(0, 10, 100); y1 = sin(x); \[b,a\] = butter(3,0.1,'high') y2 = filter(b,…

---

## [Analyzing 2nd-order Sobol Indices](https://discourse.julialang.org/t/analyzing-2nd-order-sobol-indices/113664)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 2\
**Last updated:** [May 13, 2024, 5:14pm UTC](https://discourse.julialang.org/t/analyzing-2nd-order-sobol-indices/113664 "2024-05-13T17:14:58Z")

</div>

I have a model with 130 parameters and measure 18 outputs. I ran the Sobol analysis for the 2nd-order indices because there is a significant difference between the total indices and 1st-order, so I guess there are higher…

---

## [What do allocations (triggering GC) depend on?](https://discourse.julialang.org/t/what-do-allocations-triggering-gc-depend-on/114202)

<div class="topic-metadata">

**Author:** [@Thomas008](https://discourse.julialang.org/u/Thomas008)\
**Replies:** 1\
**Last updated:** [May 13, 2024, 4:28pm UTC](https://discourse.julialang.org/t/what-do-allocations-triggering-gc-depend-on/114202 "2024-05-13T16:28:18Z")

</div>

I want to compile code with help of StaticCompiler. So I need to avoid GC allocations. I want to understand when GC allocations occur. In the following code 3 GC allocations happen: using StaticTools mutable struct D …

---

## [Help wanted: benchmarking multi-threaded CPU performance](https://discourse.julialang.org/t/help-wanted-benchmarking-multi-threaded-cpu-performance/113952)

<div class="topic-metadata">

**Author:** [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Replies:** 20\
**Last updated:** [May 13, 2024, 2:53pm UTC](https://discourse.julialang.org/t/help-wanted-benchmarking-multi-threaded-cpu-performance/113952 "2024-05-13T14:53:24Z")

</div>

Putting this in Offtopic as it’s not directly a Julia question: I recently asked on here about a fairly straightforward number crunching problem and - invariably - got some great solutions to it, the fastest of which bea…

---

## [High Performance Software Foundation](https://discourse.julialang.org/t/high-performance-software-foundation/106190)

<div class="topic-metadata">

**Author:** [@johnh](https://discourse.julialang.org/u/johnh)\
**Replies:** 2\
**Last updated:** [May 13, 2024, 2:19pm UTC](https://discourse.julialang.org/t/high-performance-software-foundation/106190 "2024-05-13T14:19:42Z")

</div>

Perhaps Julia should get involved here? Linux Foundation Announces Intent to Form the High Performance Software Foundation HPSF (hpsfoundation.github.io)

---

## [\>64 HW threads under windows](https://discourse.julialang.org/t/64-hw-threads-under-windows/114124)

<div class="topic-metadata">

**Author:** [@Chris\_Green](https://discourse.julialang.org/u/Chris_Green)\
**Replies:** 8\
**Last updated:** [May 13, 2024, 1:48pm UTC](https://discourse.julialang.org/t/64-hw-threads-under-windows/114124 "2024-05-13T13:48:22Z")

</div>

I haven’t checked in a while but has Julia fixed the problem with only using 1/2 or 1/4 of the available cpu threads on high-end (either \>64 HW threads or multi-socket) windows systems? To be clear the issue isn’t with …

---

## [Compulsive typing of \`end\`?](https://discourse.julialang.org/t/compulsive-typing-of-end/114196)

<div class="topic-metadata">

**Author:** [@cdawg](https://discourse.julialang.org/u/cdawg)\
**Replies:** 1\
**Last updated:** [May 13, 2024, 1:27pm UTC](https://discourse.julialang.org/t/compulsive-typing-of-end/114196 "2024-05-13T13:27:13Z")

</div>

Has anyone else found themselves typing “end” after finishing an idea while writing in their native language? :rofl:

---

## [Code style: helper function used exclusively by one parent function](https://discourse.julialang.org/t/code-style-helper-function-used-exclusively-by-one-parent-function/114193)

<div class="topic-metadata">

**Author:** [@greatpet](https://discourse.julialang.org/u/greatpet)\
**Replies:** 2\
**Last updated:** [May 13, 2024, 1:26pm UTC](https://discourse.julialang.org/t/code-style-helper-function-used-exclusively-by-one-parent-function/114193 "2024-05-13T13:26:30Z")

</div>

Nested functions are not encouraged due to potential performance impacts of captured variables, so I usually define helper functions as standalone functions, which unfortunately makes the code less modular / structured. …

---

## [How to set xticks dependent on Observable?](https://discourse.julialang.org/t/how-to-set-xticks-dependent-on-observable/113740)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 4\
**Last updated:** [May 13, 2024, 12:58pm UTC](https://discourse.julialang.org/t/how-to-set-xticks-dependent-on-observable/113740 "2024-05-13T12:58:50Z")

</div>

I have an Observable figure dependent on the vector called sortvalues. It perfectly updates except the xticks: when i put: axleft.xticks = sortvalues it shows an error: It is disallowed to set xticks, an Observabl…

---

## [Weird behavior of for loop+copy syntax](https://discourse.julialang.org/t/weird-behavior-of-for-loop-copy-syntax/114185)

<div class="topic-metadata">

**Author:** [@ttx002000](https://discourse.julialang.org/u/ttx002000)\
**Replies:** 3\
**Last updated:** [May 13, 2024, 10:56am UTC](https://discourse.julialang.org/t/weird-behavior-of-for-loop-copy-syntax/114185 "2024-05-13T10:56:32Z")

</div>

Dear All Here is a minimum working example: function test\_func() A=\[zeros(Float64,2) for \_ in 1:2\] B=copy(A) for ja in 1:2, jb in 1:2 (B\[ja\]\[jb\],A\[ja\]\[jb\])=(1.0,2.0) end print(B) print(…

---

## [ForwardDiff.hessian! with StaticArrays, unexpected allocations and performance](https://discourse.julialang.org/t/forwarddiff-hessian-with-staticarrays-unexpected-allocations-and-performance/114082)

<div class="topic-metadata">

**Author:** [@DNF](https://discourse.julialang.org/u/DNF)\
**Replies:** 4\
**Last updated:** [May 13, 2024, 9:59am UTC](https://discourse.julialang.org/t/forwarddiff-hessian-with-staticarrays-unexpected-allocations-and-performance/114082 "2024-05-13T09:59:23Z")

</div>

I am struggling with allocations and performance when calculating Hessians with ForwardDiff.jl. Here’s an MWE using a clean REPL with Julia 1.10.3 julia\> using DiffResults, ForwardDiff, StaticArrays, BenchmarkTools jul…

---

## [Extracting neumann boundary in Gridap - discrepancy](https://discourse.julialang.org/t/extracting-neumann-boundary-in-gridap-discrepancy/114179)

<div class="topic-metadata">

**Author:** [@DnBgk](https://discourse.julialang.org/u/DnBgk)\
**Replies:** 0\
**Last updated:** [May 12, 2024, 10:12pm UTC](https://discourse.julialang.org/t/extracting-neumann-boundary-in-gridap-discrepancy/114179 "2024-05-12T22:12:54Z")

</div>

So I want to model the Neumann-to-Dirichlet map in a Poisson like equation. If I can give it my neumann boundary right away is there an implemented method that also extracts the neumann boundary values? If no. I’m wond…

---

## [Stack Overflow in Type Inference with Julia 1.10.3 - Seeking Solutions](https://discourse.julialang.org/t/stack-overflow-in-type-inference-with-julia-1-10-3-seeking-solutions/114107)

<div class="topic-metadata">

**Author:** [@Abdenour\_Yasser\_BRAH](https://discourse.julialang.org/u/Abdenour_Yasser_BRAH)\
**Replies:** 2\
**Last updated:** [May 13, 2024, 9:33am UTC](https://discourse.julialang.org/t/stack-overflow-in-type-inference-with-julia-1-10-3-seeking-solutions/114107 "2024-05-13T09:33:22Z")

</div>

Hello, I’m currently experiencing a problem with Julia version 1.10.3 on Linux (x86\_64). I have encountered an internal error related to stack overflow during type inference. The error message suggests that it might be …

---

## [Sound use of multiple dispatch?](https://discourse.julialang.org/t/sound-use-of-multiple-dispatch/114093)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 18\
**Last updated:** [May 13, 2024, 8:04am UTC](https://discourse.julialang.org/t/sound-use-of-multiple-dispatch/114093 "2024-05-13T08:04:20Z")

</div>

Is the code below a sound use of multiple dispatch? Are there cleaner or more sound ways to the same? using StaticArrays const Point1D = SVector{1,Float64} const Point2D = SVector{2,Float64} " Generates a one-dimensi…

---

## [Flux opt\_state question](https://discourse.julialang.org/t/flux-opt-state-question/114155)

<div class="topic-metadata">

**Author:** [@Daptine](https://discourse.julialang.org/u/Daptine)\
**Replies:** 2\
**Last updated:** [May 13, 2024, 2:53am UTC](https://discourse.julialang.org/t/flux-opt-state-question/114155 "2024-05-13T02:53:32Z")

</div>

According to the document, # Initialise the optimiser for this model: opt\_state = Flux.setup(rule, model) for data in train\_set # Unpack this element (for supervised training): input, label = data # Calculate th…

---

## [Zygote differentiation very slow](https://discourse.julialang.org/t/zygote-differentiation-very-slow/112751)

<div class="topic-metadata">

**Author:** [@KapilKhanal](https://discourse.julialang.org/u/KapilKhanal)\
**Replies:** 13\
**Last updated:** [May 12, 2024, 11:39pm UTC](https://discourse.julialang.org/t/zygote-differentiation-very-slow/112751 "2024-05-12T23:39:39Z")

</div>

I have an inner function I apply like this (a simple replicable example pasted here) . The input are chosen to be (5,5) but they are usually much larger. I did not do benchmark as this is not even close to acceptable. It…

---

## [Semidefinite constraints, fp roundoff errors, and normalization](https://discourse.julialang.org/t/semidefinite-constraints-fp-roundoff-errors-and-normalization/114092)

<div class="topic-metadata">

**Author:** [@Johan-Gronqvist](https://discourse.julialang.org/u/Johan-Gronqvist)\
**Replies:** 2\
**Last updated:** [May 12, 2024, 10:03pm UTC](https://discourse.julialang.org/t/semidefinite-constraints-fp-roundoff-errors-and-normalization/114092 "2024-05-12T22:03:14Z")

</div>

I am using JuMP with semidefinite constraints, and when my matrix elements become large, roundoff errors also become large, in absolute terms. JuMP warns when the matrix has absolute asymmetries in the range 1e-10 to 1e…

---

## [Incorporating structural information into Neural ODE as a Differential Equation System](https://discourse.julialang.org/t/incorporating-structural-information-into-neural-ode-as-a-differential-equation-system/113968)

<div class="topic-metadata">

**Author:** [@CurioMath](https://discourse.julialang.org/u/CurioMath)\
**Replies:** 0\
**Last updated:** [May 7, 2024, 7:48pm UTC](https://discourse.julialang.org/t/incorporating-structural-information-into-neural-ode-as-a-differential-equation-system/113968 "2024-05-07T19:48:21Z")

</div>

Can I know if we can feed the known physics information about a system, as a Differential Equation System into Neural network architecture within NeuralODE in DiffEqFlux.jl? I have referred documentation examples, but f…

---

## [\[ANN\] Oxygen.jl 1.5.x Recap (v1.5.0 - v1.5.8)](https://discourse.julialang.org/t/ann-oxygen-jl-1-5-x-recap-v1-5-0-v1-5-8/114177)

<div class="topic-metadata">

**Author:** [@ndortega](https://discourse.julialang.org/u/ndortega)\
**Replies:** 0\
**Last updated:** [May 12, 2024, 9:28pm UTC](https://discourse.julialang.org/t/ann-oxygen-jl-1-5-x-recap-v1-5-0-v1-5-8/114177 "2024-05-12T21:28:55Z")

</div>

Hello everyone, It’s been a couple of months since my last update on Oxygen.jl, and I wanted to take the chance to go over all the cool updates to the framework. This might be a somewhat longer post so I’ll list the hi…

---

## [Linear/Poly Fit on a set of data](https://discourse.julialang.org/t/linear-poly-fit-on-a-set-of-data/114168)

<div class="topic-metadata">

**Author:** [@S\_Han](https://discourse.julialang.org/u/S_Han)\
**Replies:** 4\
**Last updated:** [May 12, 2024, 8:52pm UTC](https://discourse.julialang.org/t/linear-poly-fit-on-a-set-of-data/114168 "2024-05-12T20:52:29Z")

</div>

HI I’m trying to fit a curve on this dataset. im using CurveFit.curve\_fit() to find a linear/poly fit to this dataset. However, when I am using Polynomial, fit = CurveFit.curve\_fit(Polynomial,gamma\_k\[1:21\],tau\_opt\[1…

---

## [Development Process for Working with Genie and Javascript REST API](https://discourse.julialang.org/t/development-process-for-working-with-genie-and-javascript-rest-api/41336)

<div class="topic-metadata">

**Author:** [@whenning](https://discourse.julialang.org/u/whenning)\
**Replies:** 15\
**Last updated:** [July 26, 2020, 7:07pm UTC](https://discourse.julialang.org/t/development-process-for-working-with-genie-and-javascript-rest-api/41336 "2020-07-26T19:07:48Z")

</div>

Describe the Goal I am attempting to call my local Genie web server using a REST API in javascript. Is this an appropriate development process? The server works great when I call something like http://127.0.0.1:8000/ d…

---

## [How to get evaluation number in optimization using NLopt](https://discourse.julialang.org/t/how-to-get-evaluation-number-in-optimization-using-nlopt/114020)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 7\
**Last updated:** [May 8, 2024, 10:40pm UTC](https://discourse.julialang.org/t/how-to-get-evaluation-number-in-optimization-using-nlopt/114020 "2024-05-08T22:40:05Z")

</div>

Hi, I am using Nlopt to do the optimization. in this case i have defined a function for optimization. inside this function the optimizer reads another functions to calculate the objective and gradients. I also want to ge…

[Previous page](https://discourse.julialang.org/latest.md?page=410)

[Next page](https://discourse.julialang.org/latest.md?page=412)
