# Latest

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

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

**Page:** 162

---

## [NLOPT constraint violation](https://discourse.julialang.org/t/nlopt-constraint-violation/128851)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 6\
**Last updated:** [May 24, 2025, 9:11pm UTC](https://discourse.julialang.org/t/nlopt-constraint-violation/128851 "2025-05-24T21:11:49Z")

</div>

Hi I am using NLOP for topology optimization. First I did the deterministic topology optimization with constraint on volume, Now I am adding another constraint. As I checked the values for constraint it seems that the d…

---

## [Boundary for Turing parameters](https://discourse.julialang.org/t/boundary-for-turing-parameters/129290)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 5\
**Last updated:** [May 24, 2025, 7:29pm UTC](https://discourse.julialang.org/t/boundary-for-turing-parameters/129290 "2025-05-24T19:29:03Z")

</div>

I set my priors for parameters like this, b ~ Normal(1.5, 1.) s ~ Normal(0.1, 1) q ~ Normal(0.7, 1.0) But I want to set strong limitation for these parameters, such as abs(b)\<10 abs(q)\<1 0\<abs(s)\<1 How …

---

## [Julia based course - Performance Engineering of Software Systems](https://discourse.julialang.org/t/julia-based-course-performance-engineering-of-software-systems/129285)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 7\
**Last updated:** [May 24, 2025, 1:50pm UTC](https://discourse.julialang.org/t/julia-based-course-performance-engineering-of-software-systems/129285 "2025-05-24T13:50:40Z")

</div>

Respected Sir, I liked the course :gem\_stone:(Performance Engineering of Software Systems) :bubbles:. It enhanced my understanding of software performance. I request that you @stevengj with Prof. Charles Leiserson, Juli…

---

## [How to turn off the warn from PowerModels.jl](https://discourse.julialang.org/t/how-to-turn-off-the-warn-from-powermodels-jl/129289)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 2\
**Last updated:** [May 24, 2025, 8:44am UTC](https://discourse.julialang.org/t/how-to-turn-off-the-warn-from-powermodels-jl/129289 "2025-05-24T08:44:33Z")

</div>

julia\> import PowerModels julia\> PowerModels.make\_basic\_network(PowerModels.parse\_file("data/case118.m")); \[warn | PowerModels\]: this code only supports angmin values in -90 deg. to 90 deg., tightening the value on bran…

---

## [Julia vs C++ for computational mechanics - Implicit Material Point Method](https://discourse.julialang.org/t/julia-vs-c-for-computational-mechanics-implicit-material-point-method/129180)

<div class="topic-metadata">

**Author:** [@jowsky](https://discourse.julialang.org/u/jowsky)\
**Replies:** 13\
**Last updated:** [May 24, 2025, 5:20am UTC](https://discourse.julialang.org/t/julia-vs-c-for-computational-mechanics-implicit-material-point-method/129180 "2025-05-24T05:20:30Z")

</div>

TL;DR : Writing an implicit Material Point Method solver. Would it be that much slower in Julia than C++ for a similar time-effort ? Hello, I am PhD student working on simulating creeping snow. I am currently planning …

---

## [Problems porting discretization from MethodOfLines.jl to NeuralPDE.jl](https://discourse.julialang.org/t/problems-porting-discretization-from-methodoflines-jl-to-neuralpde-jl/129288)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 1\
**Last updated:** [May 24, 2025, 12:18am UTC](https://discourse.julialang.org/t/problems-porting-discretization-from-methodoflines-jl-to-neuralpde-jl/129288 "2025-05-24T00:18:01Z")

</div>

Hi All, I’m trying to discretize a PDE with an integral term using NeuralPDE.jl. The problem discretizes fine with MethodOfLines.jl, but I get an error with NeuralPDE. The code is below - any suggestions? using Modelin…

---

## [REPL and (VSC Notebook & linter) are seeing different environments](https://discourse.julialang.org/t/repl-and-vsc-notebook-linter-are-seeing-different-environments/129236)

<div class="topic-metadata">

**Author:** [@Jerry](https://discourse.julialang.org/u/Jerry)\
**Replies:** 1\
**Last updated:** [May 23, 2025, 10:06pm UTC](https://discourse.julialang.org/t/repl-and-vsc-notebook-linter-are-seeing-different-environments/129236 "2025-05-23T22:06:53Z")

</div>

I’ve used Julia with VS Code for some years. A few days ago I started getting linting errors from the VSC extension related to missing Julia packages. I don’t know what (I) changed to make this happen. I’ve learned that…

---

## [Enzyme reverse mode not working](https://discourse.julialang.org/t/enzyme-reverse-mode-not-working/129281)

<div class="topic-metadata">

**Author:** [@miguelborrero](https://discourse.julialang.org/u/miguelborrero)\
**Replies:** 4\
**Last updated:** [May 23, 2025, 7:08pm UTC](https://discourse.julialang.org/t/enzyme-reverse-mode-not-working/129281 "2025-05-23T19:08:52Z")

</div>

Hi there, I am struggling to get Enzyme working on a simplified version of my simulation. Here I give the code I’m running along with the error. My data is stored in an array of Student structs: using Enzyme using Sp…

---

## [Sphere surface and axes artefact in Makie.jl](https://discourse.julialang.org/t/sphere-surface-and-axes-artefact-in-makie-jl/129261)

<div class="topic-metadata">

**Author:** [@leespen1](https://discourse.julialang.org/u/leespen1)\
**Replies:** 4\
**Last updated:** [May 23, 2025, 6:12pm UTC](https://discourse.julialang.org/t/sphere-surface-and-axes-artefact-in-makie-jl/129261 "2025-05-23T18:12:39Z")

</div>

I am trying to plot points on the Bloch sphere using GLMakie, but I get white lines around the lines I use to draw the sphere: Is there anything I can do to fix this? The script I used to generate the plot is below. …

---

## [Flux PINN 1D Burgers](https://discourse.julialang.org/t/flux-pinn-1d-burgers/93262)

<div class="topic-metadata">

**Author:** [@parf](https://discourse.julialang.org/u/parf)\
**Replies:** 11\
**Last updated:** [May 23, 2025, 4:54pm UTC](https://discourse.julialang.org/t/flux-pinn-1d-burgers/93262 "2025-05-23T16:54:32Z")

</div>

Hi! I am trying to construct PINN to solve 1D Burgers equation in Flux.jl without using NeuralPDE.jl. The velocity field u(t,x) is defined by the net\_u(\[t,x\]) and the batch for training consists of N\_u=32 points correspo…

---

## [Better error message for modified structs in Julia \>= 1.12](https://discourse.julialang.org/t/better-error-message-for-modified-structs-in-julia-1-12/129265)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [May 23, 2025, 4:33pm UTC](https://discourse.julialang.org/t/better-error-message-for-modified-structs-in-julia-1-12/129265 "2025-05-23T16:33:08Z")

</div>

In Julia 1.12 it is now possible to edit structs (finally!!), with the objects instantiated using the “old” structs “assigned” to a world age table rather than the last “version” of the type. The issue is when you try t…

---

## [A type error of Turing](https://discourse.julialang.org/t/a-type-error-of-turing/129279)

<div class="topic-metadata">

**Author:** [@Cyan](https://discourse.julialang.org/u/Cyan)\
**Replies:** 3\
**Last updated:** [May 23, 2025, 4:23pm UTC](https://discourse.julialang.org/t/a-type-error-of-turing/129279 "2025-05-23T16:23:27Z")

</div>

I want to use Turing to fit parameters from my costume function like function sersic2d(x, y; I\_e::Float64=1.0, r\_e::Float64=1.0, n::Float64=1.0, x0::Float64=1.0, y0::Float64=1.0) r = sqrt.((x .- x0) .^ 2 .+ (y .- y0…

---

## [\[ANN\] Refreshed JuliaHealth Website!](https://discourse.julialang.org/t/ann-refreshed-juliahealth-website/129080)

<div class="topic-metadata">

**Author:** [@TheCedarPrince](https://discourse.julialang.org/u/TheCedarPrince)\
**Replies:** 2\
**Last updated:** [May 22, 2025, 7:10am UTC](https://discourse.julialang.org/t/ann-refreshed-juliahealth-website/129080 "2025-05-22T07:10:45Z")

</div>

Hi folks! :waving\_hand: Introducing the New JuliaHealth Website! With a tremendous thank you to @Hetarth02 and @Divital, we are excited to announce our refreshed JuliaHealth website! Supported Features As of today i…

---

## [DifferentialEquations.jl: LU factor ( M + dt \* K ) once prior to time-stepping loop](https://discourse.julialang.org/t/differentialequations-jl-lu-factor-m-dt-k-once-prior-to-time-stepping-loop/129255)

<div class="topic-metadata">

**Author:** [@ziolai](https://discourse.julialang.org/u/ziolai)\
**Replies:** 3\
**Last updated:** [May 23, 2025, 11:38am UTC](https://discourse.julialang.org/t/differentialequations-jl-lu-factor-m-dt-k-once-prior-to-time-stepping-loop/129255 "2025-05-23T11:38:18Z")

</div>

Can once trick DifferentialEquations.jl to LU factor M + dt \* K once only prior to the time stepping loop? Thx.

---

## [Open multiple plots in REPL](https://discourse.julialang.org/t/open-multiple-plots-in-repl/129269)

<div class="topic-metadata">

**Author:** [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Replies:** 2\
**Last updated:** [May 23, 2025, 9:56am UTC](https://discourse.julialang.org/t/open-multiple-plots-in-repl/129269 "2025-05-23T09:56:25Z")

</div>

I am trying to generate several plots while working in the REPL, that must be displayed individually (i.e., a new window for each plot). When I am trying to do so, however, each new plot replaces the old plot in the same…

---

## [Distributed Performance Degradation](https://discourse.julialang.org/t/distributed-performance-degradation/129246)

<div class="topic-metadata">

**Author:** [@Rbthn](https://discourse.julialang.org/u/Rbthn)\
**Replies:** 5\
**Last updated:** [May 23, 2025, 9:32am UTC](https://discourse.julialang.org/t/distributed-performance-degradation/129246 "2025-05-23T09:32:18Z")

</div>

Hi everyone! I’m investigating the parallel performance of my code and discovered some behavior I’m not sure I completely understand. I’m using Distributed with worker processes on a single machine. In a MWE, I’m solvi…

---

## [JuMP and SparseArrays](https://discourse.julialang.org/t/jump-and-sparsearrays/129264)

<div class="topic-metadata">

**Author:** [@WalterMadelim](https://discourse.julialang.org/u/WalterMadelim)\
**Replies:** 5\
**Last updated:** [May 23, 2025, 8:32am UTC](https://discourse.julialang.org/t/jump-and-sparsearrays/129264 "2025-05-23T08:32:57Z")

</div>

The background is using SparseArrays, JuMP m = Model(); @variable(m, x\[1:2\]); My question is, can I create a sparse 2-by-2 object (whatever it is) denoted A, such that A\[1, 1\] returns me x\[1\], A\[2, 1\] returns me x\[2\].…

---

## [Constructing a permutation matrix](https://discourse.julialang.org/t/constructing-a-permutation-matrix/129234)

<div class="topic-metadata">

**Author:** [@cnaak](https://discourse.julialang.org/u/cnaak)\
**Replies:** 15\
**Last updated:** [May 23, 2025, 6:47am UTC](https://discourse.julialang.org/t/constructing-a-permutation-matrix/129234 "2025-05-23T06:47:39Z")

</div>

Approaching the problem from a slightly different angle, one can first transform a permutation vector p into a permutation matrix, for instance: julia\> function MP(p) ℓ = length(p) vcat(\[ begin t=r…

---

## [Escaping newlines in multi-line string macros?](https://discourse.julialang.org/t/escaping-newlines-in-multi-line-string-macros/129240)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 3\
**Last updated:** [May 23, 2025, 6:37am UTC](https://discourse.julialang.org/t/escaping-newlines-in-multi-line-string-macros/129240 "2025-05-23T06:37:41Z")

</div>

Would this feature, to be able to write a single string literal on multiple lines of the source code without \\n in the string, be eventually implemented for all string-like objects? I was surprised that it doesn’t wor…

---

## [How to make my develop version library?](https://discourse.julialang.org/t/how-to-make-my-develop-version-library/129196)

<div class="topic-metadata">

**Author:** [@JaebeomCho](https://discourse.julialang.org/u/JaebeomCho)\
**Replies:** 3\
**Last updated:** [May 23, 2025, 2:07am UTC](https://discourse.julialang.org/t/how-to-make-my-develop-version-library/129196 "2025-05-23T02:07:17Z")

</div>

Hi, I’m developing a module for my team. I’m currently developing a Julia package that relies on a forked version of another public package (Fortran90Namelists.jl). I’ve made some important internal modifications to thi…

---

## [New 4x4 algorithm found](https://discourse.julialang.org/t/new-4x4-algorithm-found/129012)

<div class="topic-metadata">

**Author:** [@ShalokShalom](https://discourse.julialang.org/u/ShalokShalom)\
**Replies:** 28\
**Last updated:** [May 23, 2025, 1:03am UTC](https://discourse.julialang.org/t/new-4x4-algorithm-found/129012 "2025-05-23T01:03:36Z")

</div>

Someone found a new algorithm for 4x4 matrix multiplication. . This will save the industry billions.

---

## [Retrieve the simplex tableau from Gurobi.jl using JuMP](https://discourse.julialang.org/t/retrieve-the-simplex-tableau-from-gurobi-jl-using-jump/129237)

<div class="topic-metadata">

**Author:** [@YANG-Hanbin](https://discourse.julialang.org/u/YANG-Hanbin)\
**Replies:** 3\
**Last updated:** [May 22, 2025, 11:42pm UTC](https://discourse.julialang.org/t/retrieve-the-simplex-tableau-from-gurobi-jl-using-jump/129237 "2025-05-22T23:42:36Z")

</div>

Hello everyone! I’m trying to retrieve the optimal simplex tableau after solving a linear program using Gurobi. Thanks to Oscar’s help, I learned how to use the GRBBinvRowi function to access individual rows of the inve…

---

## [How to get the dual of a non convex MIQCP Gurobi](https://discourse.julialang.org/t/how-to-get-the-dual-of-a-non-convex-miqcp-gurobi/129257)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 1\
**Last updated:** [May 22, 2025, 11:37pm UTC](https://discourse.julialang.org/t/how-to-get-the-dual-of-a-non-convex-miqcp-gurobi/129257 "2025-05-22T23:37:07Z")

</div>

hi All, I need to get the duals of a nonconvex MIQCP i tried below code from model = Model(Gurobi.Optimizer) set\_optimizer\_attribute(model, "NonConvex", 2) @variable(model, x, Bin) @variable(model, y \>= 0) @constraint…

---

## [Using \`Lux.WrappedFunction\` for pre/post processing in Lux model](https://discourse.julialang.org/t/using-lux-wrappedfunction-for-pre-post-processing-in-lux-model/129254)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 5\
**Last updated:** [May 22, 2025, 11:36pm UTC](https://discourse.julialang.org/t/using-lux-wrappedfunction-for-pre-post-processing-in-lux-model/129254 "2025-05-22T23:36:22Z")

</div>

Hi! I recently learned about Lux.WrappedFunction() layer (docs) that allows to prescribed a parameter less function inside the Chain. I think this is a great feature to allow building of preprocessing and postprocessing…

---

## [Literate.jl to PDF using Documenter.jl simple question](https://discourse.julialang.org/t/literate-jl-to-pdf-using-documenter-jl-simple-question/129109)

<div class="topic-metadata">

**Author:** [@Perrin\_Meyer](https://discourse.julialang.org/u/Perrin_Meyer)\
**Replies:** 15\
**Last updated:** [May 22, 2025, 9:44pm UTC](https://discourse.julialang.org/t/literate-jl-to-pdf-using-documenter-jl-simple-question/129109 "2025-05-22T21:44:04Z")

</div>

simple question: how do I take the markdown output of Literate.jl and feed it to Documenter.jl to create a PDF (with Latex working)? The documentation of Literate.jl makes sense, but Documenter.jl is very complicated. …

---

## [Any memory locations known to be ok to read across platforms? Doing a VM](https://discourse.julialang.org/t/any-memory-locations-known-to-be-ok-to-read-across-platforms-doing-a-vm/129249)

<div class="topic-metadata">

**Author:** [@Palli](https://discourse.julialang.org/u/Palli)\
**Replies:** 2\
**Last updated:** [May 22, 2025, 9:21pm UTC](https://discourse.julialang.org/t/any-memory-locations-known-to-be-ok-to-read-across-platforms-doing-a-vm/129249 "2025-05-22T21:21:01Z")

</div>

These work on my 64-bit Linux, but some are likely not guaranteed to work: julia\> unsafe\_load(Ptr{UInt8}(Int(0x00400000))) # reading julia itself 0x7f Is it up to ELF to use that location, and thus guaranteed to work?…

---

## [ODE model with preallocated MVectors and still compatible with AD/stiff solvers?](https://discourse.julialang.org/t/ode-model-with-preallocated-mvectors-and-still-compatible-with-ad-stiff-solvers/129253)

<div class="topic-metadata">

**Author:** [@Michael\_Barmann](https://discourse.julialang.org/u/Michael_Barmann)\
**Replies:** 2\
**Last updated:** [May 22, 2025, 8:48pm UTC](https://discourse.julialang.org/t/ode-model-with-preallocated-mvectors-and-still-compatible-with-ad-stiff-solvers/129253 "2025-05-22T20:48:50Z")

</div>

I am writing an ODE model that describes the positions of a system of N interacting particles living in a 2D box. My ODE state vector u is an N x 2 array of numbers. Each call to the model updates a pre-allocated N x 2 a…

---

## [Japanese Translation - Julia User & Developer Survey](https://discourse.julialang.org/t/japanese-translation-julia-user-developer-survey/129251)

<div class="topic-metadata">

**Author:** [@ahclaster](https://discourse.julialang.org/u/ahclaster)\
**Replies:** 0\
**Last updated:** [May 22, 2025, 4:54pm UTC](https://discourse.julialang.org/t/japanese-translation-julia-user-developer-survey/129251 "2025-05-22T16:54:30Z")

</div>

We are looking for someone to review the Japanese translation of the Julia User & Developer Survey because there have been some edits to the survey since last year. If you are available to help, please contact me at and…

---

## [Solver performances depending on parameters](https://discourse.julialang.org/t/solver-performances-depending-on-parameters/129223)

<div class="topic-metadata">

**Author:** [@diffeqslvr](https://discourse.julialang.org/u/diffeqslvr)\
**Replies:** 2\
**Last updated:** [May 22, 2025, 4:26pm UTC](https://discourse.julialang.org/t/solver-performances-depending-on-parameters/129223 "2025-05-22T16:26:54Z")

</div>

I am solving a set of differential equations, see eqs C3a-C3e from https://journals.aps.org/prresearch/pdf/10.1103/PhysRevResearch.5.013091. I separated the equations into real and imaginary parts and propagate them …

---

## [Equivalent of \`@something\` for field access](https://discourse.julialang.org/t/equivalent-of-something-for-field-access/129177)

<div class="topic-metadata">

**Author:** [@MilesCranmer](https://discourse.julialang.org/u/MilesCranmer)\
**Replies:** 14\
**Last updated:** [May 22, 2025, 2:53pm UTC](https://discourse.julialang.org/t/equivalent-of-something-for-field-access/129177 "2025-05-22T14:53:09Z")

</div>

I really like the @something operation because it lets me write concise and readable code such as: function get\_operators(expr, operators=nothing) return @something(operators, get\_metadata(expr).operators) end This…

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

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