# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=225

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

**Page:** 226

---

## [Julia PINN converged but bcs are not fulfilled](https://discourse.julialang.org/t/julia-pinn-converged-but-bcs-are-not-fulfilled/92351)

<div class="topic-metadata">

**Author:** [@c\_sell](https://discourse.julialang.org/u/c_sell)\
**Replies:** 4\
**Last updated:** [January 3, 2023, 7:12pm UTC](https://discourse.julialang.org/t/julia-pinn-converged-but-bcs-are-not-fulfilled/92351 "2023-01-03T19:12:37Z")

</div>

Hi everyone, I am trying to solve a PDE with the julia package Neural.jl. I have 3 bcs. At two boundarys the pressure has to be zero. The last bsc ist a periodic boundary condition. The pressure at the one side has to …

---

## [\[Discussion\] A new Bokeh binding?](https://discourse.julialang.org/t/discussion-a-new-bokeh-binding/44661)

<div class="topic-metadata">

**Author:** [@jling](https://discourse.julialang.org/u/jling)\
**Replies:** 7\
**Last updated:** [January 3, 2023, 4:24pm UTC](https://discourse.julialang.org/t/discussion-a-new-bokeh-binding/44661 "2023-01-03T16:24:43Z")

</div>

Recently I’ve been looking for a interactive visualization solution (again), and realized that one of Bokeh’s core dev @Bryan is actually here on the discourse and at one point was looking for people to re-make a Bokeh b…

---

## [SavingCallback influences result of ODE problem](https://discourse.julialang.org/t/savingcallback-influences-result-of-ode-problem/91731)

<div class="topic-metadata">

**Author:** [@Pitaevskii](https://discourse.julialang.org/u/Pitaevskii)\
**Replies:** 9\
**Last updated:** [January 3, 2023, 1:27pm UTC](https://discourse.julialang.org/t/savingcallback-influences-result-of-ode-problem/91731 "2023-01-03T13:27:30Z")

</div>

Hello I have some code for simulating complex differential equations of a certain model that used to work fine, but fails after going from Julia 1.7 to 1.8 and updating all the packages. using DifferentialEquations, Di…

---

## [How to model Zero Inflated Distribution](https://discourse.julialang.org/t/how-to-model-zero-inflated-distribution/92325)

<div class="topic-metadata">

**Author:** [@Guilherme\_Namen\_Pime](https://discourse.julialang.org/u/Guilherme_Namen_Pime)\
**Replies:** 2\
**Last updated:** [January 3, 2023, 12:38pm UTC](https://discourse.julialang.org/t/how-to-model-zero-inflated-distribution/92325 "2023-01-03T12:38:21Z")

</div>

Hi. How to programing a Zero Inflated Distribution using Turing?

---

## [How to extend Query.jl with new data source](https://discourse.julialang.org/t/how-to-extend-query-jl-with-new-data-source/92449)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 0\
**Last updated:** [January 3, 2023, 10:22am UTC](https://discourse.julialang.org/t/how-to-extend-query-jl-with-new-data-source/92449 "2023-01-03T10:22:23Z")

</div>

Introduction · Query.jl says: (emphasis mine) There are three different APIs that package authors can use to make their data sources queryable with this package. The most simple API only requires a data source to prov…

---

## [Data normalization with NaN values in StatsBase](https://discourse.julialang.org/t/data-normalization-with-nan-values-in-statsbase/92429)

<div class="topic-metadata">

**Author:** [@Jack](https://discourse.julialang.org/u/Jack)\
**Replies:** 1\
**Last updated:** [January 2, 2023, 10:51pm UTC](https://discourse.julialang.org/t/data-normalization-with-nan-values-in-statsbase/92429 "2023-01-02T22:51:35Z")

</div>

Greetings, I have been trying to do some basic normalization with ZScore transform like in this StatsBase package, and found that the package wouldn’t handle NaN values properly. For example Random.seed!(1234) input =…

---

## [Auto-diff Friendly GPU Stencils](https://discourse.julialang.org/t/auto-diff-friendly-gpu-stencils/92126)

<div class="topic-metadata">

**Author:** [@Dreycen\_Foiles](https://discourse.julialang.org/u/Dreycen_Foiles)\
**Replies:** 3\
**Last updated:** [January 2, 2023, 9:16pm UTC](https://discourse.julialang.org/t/auto-diff-friendly-gpu-stencils/92126 "2023-01-02T21:16:34Z")

</div>

I’m solving a semi-discretized PDE on my GPU and one of the steps involves performing the Laplacian via a 5-point stencil. My current method does this with a CUDA kernel, but I also want to perform automatic differentiat…

---

## [OpenCV package - not properly supported](https://discourse.julialang.org/t/opencv-package-not-properly-supported/70389)

<div class="topic-metadata">

**Author:** [@vladimr](https://discourse.julialang.org/u/vladimr)\
**Replies:** 10\
**Last updated:** [January 2, 2023, 7:51pm UTC](https://discourse.julialang.org/t/opencv-package-not-properly-supported/70389 "2023-01-02T19:51:43Z")

</div>

Professional Image Processing in Julia is impossible without the OpenCV package. But this package doesn’t seem properly supported, at least the Windows x64 version - basic functionality doesn’t work. Is there any idea …

---

## [Move\_along\_route! - Not implemented for space type ContinuousSpace](https://discourse.julialang.org/t/move-along-route-not-implemented-for-space-type-continuousspace/92389)

<div class="topic-metadata">

**Author:** [@orectique](https://discourse.julialang.org/u/orectique)\
**Replies:** 0\
**Last updated:** [January 1, 2023, 4:12pm UTC](https://discourse.julialang.org/t/move-along-route-not-implemented-for-space-type-continuousspace/92389 "2023-01-01T16:12:47Z")

</div>

Hello there, First of all, I would like to appreciate the team behind this elegant package. This is my first foray into Agent Based Modelling and Agents.jl has been a great tool. I am trying to create a simple continuo…

---

## [MPI.jl memory issue in a for-loop](https://discourse.julialang.org/t/mpi-jl-memory-issue-in-a-for-loop/91721)

<div class="topic-metadata">

**Author:** [@Carol](https://discourse.julialang.org/u/Carol)\
**Replies:** 3\
**Last updated:** [January 2, 2023, 11:01am UTC](https://discourse.julialang.org/t/mpi-jl-memory-issue-in-a-for-loop/91721 "2023-01-02T11:01:37Z")

</div>

Hi, At first I want to say thank you for maintaining MPI.jl package. I am using MPI inside a for-loop (for iteration=1:5000). At each iteration, all ranks will send its data to rank0 using MPI.Gatherv!, then rank0 will…

---

## [CUSPARSE matrix-matrix multiplication not using GPU](https://discourse.julialang.org/t/cusparse-matrix-matrix-multiplication-not-using-gpu/92082)

<div class="topic-metadata">

**Author:** [@tsc25](https://discourse.julialang.org/u/tsc25)\
**Replies:** 2\
**Last updated:** [January 2, 2023, 12:25am UTC](https://discourse.julialang.org/t/cusparse-matrix-matrix-multiplication-not-using-gpu/92082 "2023-01-02T00:25:30Z")

</div>

I’m trying to perform sparse matrix-matrix multiplication on the GPU, which looks like it should be supported by CUSPARSE via cusparseSpmm. But it doesn’t seem to be working using Julia’s CUDA.CUSPARSE: using CUDA, CUDA…

---

## [Trying my chances here; anyone knows why particles stick to the wall in my SPH simulation?](https://discourse.julialang.org/t/trying-my-chances-here-anyone-knows-why-particles-stick-to-the-wall-in-my-sph-simulation/91624)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 9\
**Last updated:** [December 31, 2022, 9:22pm UTC](https://discourse.julialang.org/t/trying-my-chances-here-anyone-knows-why-particles-stick-to-the-wall-in-my-sph-simulation/91624 "2022-12-31T21:22:55Z")

</div>

Hello! For fun I’ve been writing a small dam break simulation in SPH. I start with a clump of rectangular water, which correctly moves down due to gravity. I have one issue though which is that the wall which fluid cann…

---

## [How to use named parameters in objective function in Optimization.jl?](https://discourse.julialang.org/t/how-to-use-named-parameters-in-objective-function-in-optimization-jl/92360)

<div class="topic-metadata">

**Author:** [@ForceBru](https://discourse.julialang.org/u/ForceBru)\
**Replies:** 3\
**Last updated:** [December 31, 2022, 3:58pm UTC](https://discourse.julialang.org/t/how-to-use-named-parameters-in-objective-function-in-optimization-jl/92360 "2022-12-31T15:58:44Z")

</div>

I’d like to refer to my design variables (parameters) by name inside my objective function, like this: objective(params, data::AbstractVector) = sum(@. (params.a \* data + params.b)^2) What’s the recommended way of …

---

## [Zygote.forwardiff returns a scalar](https://discourse.julialang.org/t/zygote-forwardiff-returns-a-scalar/92329)

<div class="topic-metadata">

**Author:** [@Gattu\_Mytraya](https://discourse.julialang.org/u/Gattu_Mytraya)\
**Replies:** 1\
**Last updated:** [December 30, 2022, 11:32pm UTC](https://discourse.julialang.org/t/zygote-forwardiff-returns-a-scalar/92329 "2022-12-30T23:32:37Z")

</div>

I have a function which is built out of a large number of elementary functions, and as such reverse mode AD is much slower than forward mode. I would like to use Zygote for this problem as it has support for complex inpu…

---

## [Turing.jl setting different updates for arrays of variables](https://discourse.julialang.org/t/turing-jl-setting-different-updates-for-arrays-of-variables/92330)

<div class="topic-metadata">

**Author:** [@dariogasbarra](https://discourse.julialang.org/u/dariogasbarra)\
**Replies:** 2\
**Last updated:** [December 30, 2022, 8:44pm UTC](https://discourse.julialang.org/t/turing-jl-setting-different-updates-for-arrays-of-variables/92330 "2022-12-30T20:44:46Z")

</div>

Hello I have a model which has an array of discrete binary parameters J\[t\] and an array of continuous parameters X\[t\]. I want to use NUTS() or HMC() updates for the continuous variables and MH() updates for the dis…

---

## [How to create a RGB plot from three different TIF files?](https://discourse.julialang.org/t/how-to-create-a-rgb-plot-from-three-different-tif-files/92001)

<div class="topic-metadata">

**Author:** [@EmanuelCastanho](https://discourse.julialang.org/u/EmanuelCastanho)\
**Replies:** 17\
**Last updated:** [December 30, 2022, 4:47pm UTC](https://discourse.julialang.org/t/how-to-create-a-rgb-plot-from-three-different-tif-files/92001 "2022-12-30T16:47:47Z")

</div>

I have three TIF files that represent the Red, Green and Blue channels, they are pós-processed Sentinel-2 images. I read them with ArchGDAL and stacked them into a Float32 (554, 649, 3) matrix. How can I plot this stac…

---

## [Urban Planning model](https://discourse.julialang.org/t/urban-planning-model/92310)

<div class="topic-metadata">

**Author:** [@tonyhur](https://discourse.julialang.org/u/tonyhur)\
**Replies:** 2\
**Last updated:** [December 30, 2022, 4:19pm UTC](https://discourse.julialang.org/t/urban-planning-model/92310 "2022-12-30T16:19:29Z")

</div>

Sometimes ago I found a interesting Model in the Tutorial : the urban planning model. It has completely disappeared now. Why? Where can I find it? Thanks for clarification Tony

---

## [Regression with variables in array](https://discourse.julialang.org/t/regression-with-variables-in-array/92280)

<div class="topic-metadata">

**Author:** [@Agnes\_H](https://discourse.julialang.org/u/Agnes_H)\
**Replies:** 2\
**Last updated:** [December 30, 2022, 10:51am UTC](https://discourse.julialang.org/t/regression-with-variables-in-array/92280 "2022-12-30T10:51:38Z")

</div>

I apologize for reheating this old topic, but how do I deal with this when both variables are dependent on a list? I tried using term, but was unable to. The only way I was able to receive meaningful output was by using …

---

## [Using of colorvec in computation of jacobian](https://discourse.julialang.org/t/using-of-colorvec-in-computation-of-jacobian/92240)

<div class="topic-metadata">

**Author:** [@gstein3m](https://discourse.julialang.org/u/gstein3m)\
**Replies:** 2\
**Last updated:** [December 30, 2022, 10:46am UTC](https://discourse.julialang.org/t/using-of-colorvec-in-computation-of-jacobian/92240 "2022-12-30T10:46:07Z")

</div>

I got three different matrices J: FiniteDiff\_color: \[0.0 0.0; -9.486373847239932e-9 0.0\] ForwardDiff\_color: \[1.0 0.0; 6.123233995736766e-17 0.0\] FiniteDiff: \[0.0 1.0; -9.486373847239932e-9 0.0\] The last one is correc…

---

## [JuMP slowed down in multithreading](https://discourse.julialang.org/t/jump-slowed-down-in-multithreading/92206)

<div class="topic-metadata">

**Author:** [@VPBML](https://discourse.julialang.org/u/VPBML)\
**Replies:** 2\
**Last updated:** [December 30, 2022, 10:25am UTC](https://discourse.julialang.org/t/jump-slowed-down-in-multithreading/92206 "2022-12-30T10:25:34Z")

</div>

Hi, I have a question with JuMP multithreading performance that I would like to ask for your help. I wanted to solve a specific optimization problem 4 times, and I did it in 2 ways: Solve it repeatedly 4 times on a si…

---

## [How to delete! in GLMakie](https://discourse.julialang.org/t/how-to-delete-in-glmakie/92259)

<div class="topic-metadata">

**Author:** [@dyatunin](https://discourse.julialang.org/u/dyatunin)\
**Replies:** 7\
**Last updated:** [December 30, 2022, 10:00am UTC](https://discourse.julialang.org/t/how-to-delete-in-glmakie/92259 "2022-12-30T10:00:14Z")

</div>

I am attempting to create an GUI with GLMakie, where elements can be added and removed interactively. I specifically want to remove groups of several Blocks at a time, but I can’t seem to be able to remove even a single …

---

## [Trying to Solve a 2nd Order ODE and need advice](https://discourse.julialang.org/t/trying-to-solve-a-2nd-order-ode-and-need-advice/92273)

<div class="topic-metadata">

**Author:** [@youmans](https://discourse.julialang.org/u/youmans)\
**Replies:** 5\
**Last updated:** [December 30, 2022, 8:38am UTC](https://discourse.julialang.org/t/trying-to-solve-a-2nd-order-ode-and-need-advice/92273 "2022-12-30T08:38:28Z")

</div>

Dear Community I’m new to Julia and recently trying to implement the algorithms from Direct Runge-Kutta Discretization Achieves Acceleration in which I need to solve an 2nd order ODE \\ddot x(t) + \\frac{2p+1}{t}\\dot x…

---

## [Performance issues with Multi-Objective Optimization](https://discourse.julialang.org/t/performance-issues-with-multi-objective-optimization/91901)

<div class="topic-metadata">

**Author:** [@JNSDVD](https://discourse.julialang.org/u/JNSDVD)\
**Replies:** 1\
**Last updated:** [December 30, 2022, 1:08am UTC](https://discourse.julialang.org/t/performance-issues-with-multi-objective-optimization/91901 "2022-12-30T01:08:26Z")

</div>

Hey guys, I am working on an multi-objective optimization model (cost, strain, time). The challenge is simultaneous resource allocation and scheduling, as there are corresponding dependencies. However, I have developed …

---

## [Memory usage problem when using findmax/min](https://discourse.julialang.org/t/memory-usage-problem-when-using-findmax-min/92241)

<div class="topic-metadata">

**Author:** [@FujiwaraTakumiEH](https://discourse.julialang.org/u/FujiwaraTakumiEH)\
**Replies:** 9\
**Last updated:** [December 29, 2022, 5:42pm UTC](https://discourse.julialang.org/t/memory-usage-problem-when-using-findmax-min/92241 "2022-12-29T17:42:00Z")

</div>

Hello, In my case I need to continuously get the max/min values from the Array and it looks like this: using BenchmarkTools using CUDA n = 1000000 a = CUDA.rand(n) b = CUDA.rand(n) function test(a, b) rst = Float…

---

## [How to create a loop for a regression model?](https://discourse.julialang.org/t/how-to-create-a-loop-for-a-regression-model/55829)

<div class="topic-metadata">

**Author:** [@younghan-lee](https://discourse.julialang.org/u/younghan-lee)\
**Replies:** 7\
**Last updated:** [February 24, 2021, 6:36am UTC](https://discourse.julialang.org/t/how-to-create-a-loop-for-a-regression-model/55829 "2021-02-24T06:36:16Z")

</div>

Hi everyone, I’m new to Julia and I’m trying to create a loop for a regression model. For example, list = \[:A, :B, :C\] for i in list result = lm(@formula(i ~ X1 + X2), data) println(result) end Something like…

---

## [CellListMap: How do I loop through its neighbour list in a thread-safe way?](https://discourse.julialang.org/t/celllistmap-how-do-i-loop-through-its-neighbour-list-in-a-thread-safe-way/92143)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 6\
**Last updated:** [December 29, 2022, 3:52pm UTC](https://discourse.julialang.org/t/celllistmap-how-do-i-loop-through-its-neighbour-list-in-a-thread-safe-way/92143 "2022-12-29T15:52:17Z")

</div>

Hello! In the following piece of code, I noticed that adding Threads.@threads would lead to the wrong result. My limited understanding is that it is because my arrays are not “thread-safe” - I want to learn how to make …

---

## [JuMP GLPK method solver](https://discourse.julialang.org/t/jump-glpk-method-solver/69048)

<div class="topic-metadata">

**Author:** [@shce](https://discourse.julialang.org/u/shce)\
**Replies:** 7\
**Last updated:** [December 29, 2022, 11:43am UTC](https://discourse.julialang.org/t/jump-glpk-method-solver/69048 "2022-12-29T11:43:01Z")

</div>

Hello, I am trying to solve a linear problem using GLPK. I have already found a solution but I would like to know which method is being used by GLPK to solve the LP problem. My call is: model = Model(GLPK.Optimizer) #…

---

## [How to preserve xformatter when adding a vline](https://discourse.julialang.org/t/how-to-preserve-xformatter-when-adding-a-vline/92051)

<div class="topic-metadata">

**Author:** [@bbejanov](https://discourse.julialang.org/u/bbejanov)\
**Replies:** 3\
**Last updated:** [December 28, 2022, 2:39pm UTC](https://discourse.julialang.org/t/how-to-preserve-xformatter-when-adding-a-vline/92051 "2022-12-28T14:39:02Z")

</div>

I have a series recipe that formats the x-axis ticks. When I add a vline, the formatting is reset to the default, i.e. my custom formatting disappears. Is it possible for vline to respect and preserve the formatting of …

---

## [Minibatching with FFJORD](https://discourse.julialang.org/t/minibatching-with-ffjord/92210)

<div class="topic-metadata">

**Author:** [@kaido975](https://discourse.julialang.org/u/kaido975)\
**Replies:** 1\
**Last updated:** [December 28, 2022, 1:35pm UTC](https://discourse.julialang.org/t/minibatching-with-ffjord/92210 "2022-12-28T13:35:50Z")

</div>

I am trying to implement the code given in Continuous Normalizing Flows · DiffEqFlux.jl, with mini batching. using Flux, DiffEqFlux, DifferentialEquations, Optimization, OptimizationFlux, OptimizationOptimJL, Dist…

---

## [Efficient implementations of Fibonacci function with interesting results](https://discourse.julialang.org/t/efficient-implementations-of-fibonacci-function-with-interesting-results/18123)

<div class="topic-metadata">

**Author:** [@mhw](https://discourse.julialang.org/u/mhw)\
**Replies:** 19\
**Last updated:** [December 28, 2022, 12:12pm UTC](https://discourse.julialang.org/t/efficient-implementations-of-fibonacci-function-with-interesting-results/18123 "2022-12-28T12:12:12Z")

</div>

It is well known that the standard recursive implementation of the Fibonacci function defined by F(0) = 0 F(1) = 1 F(n) = F(n-1) + F(n-2) for n \> 1 runs in exponential time. Therefore most often the Fibonacci function …

[Previous page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=224)

[Next page](https://discourse.julialang.org/c/domain/10.md?no_subcategories=false&page=226)
