# Specific Domains

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

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

**Page:** 69

---

## [Blur image](https://discourse.julialang.org/t/blur-image/123670)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 2\
**Last updated:** [December 10, 2024, 5:34pm UTC](https://discourse.julialang.org/t/blur-image/123670 "2024-12-10T17:34:18Z")

</div>

Is there a package that can blur an image (represented as a Matrix{RGB{Float16}}, or anything similar)? No need for fancy bokeh simulation, just some basic Gaussian blur with a given radius, or whatever is fast. Asking …

---

## [Basic example for using Transformers.jl for sequential autoencoding](https://discourse.julialang.org/t/basic-example-for-using-transformers-jl-for-sequential-autoencoding/123663)

<div class="topic-metadata">

**Author:** [@spolk](https://discourse.julialang.org/u/spolk)\
**Replies:** 0\
**Last updated:** [December 10, 2024, 3:06pm UTC](https://discourse.julialang.org/t/basic-example-for-using-transformers-jl-for-sequential-autoencoding/123663 "2024-12-10T15:06:19Z")

</div>

I am interested in using Transformers.jl for sequence-to-sequence autoencoding and was hoping to get help solving a minimum working example building and training an appropriate transformer-based sequence-to-sequence aut…

---

## [Distributed ODE solving](https://discourse.julialang.org/t/distributed-ode-solving/123569)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 5\
**Last updated:** [December 10, 2024, 2:25pm UTC](https://discourse.julialang.org/t/distributed-ode-solving/123569 "2024-12-10T14:25:54Z")

</div>

Hi all, I am interested in been able to manually solve ODEs distributed as below. I am aware of ensembledistributed() however I want greater control over the outcome of each trajectory. My thinking is then to solve a se…

---

## [Solid boundary for ABM model](https://discourse.julialang.org/t/solid-boundary-for-abm-model/113984)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 28\
**Last updated:** [December 10, 2024, 1:18pm UTC](https://discourse.julialang.org/t/solid-boundary-for-abm-model/113984 "2024-12-10T13:18:07Z")

</div>

Hello everyone, I’m building a model where particles roam around randomly in 3d space. At the moment issue is that I want particles to be contained in space though what I see is that it escapes boundary and comes on the…

---

## [Plotting sensitivity of variable to parameter](https://discourse.julialang.org/t/plotting-sensitivity-of-variable-to-parameter/123534)

<div class="topic-metadata">

**Author:** [@laurence\_jj](https://discourse.julialang.org/u/laurence_jj)\
**Replies:** 7\
**Last updated:** [December 10, 2024, 6:49am UTC](https://discourse.julialang.org/t/plotting-sensitivity-of-variable-to-parameter/123534 "2024-12-10T06:49:00Z")

</div>

Hi! I am using JuMP to model bertran competition in a market with firms and households. One of the parameters in the model is the marginal cost for firms. I would like to evaluate how the average price of goods varies a…

---

## [Auxiliary variable in MTK connector](https://discourse.julialang.org/t/auxiliary-variable-in-mtk-connector/121572)

<div class="topic-metadata">

**Author:** [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Replies:** 6\
**Last updated:** [December 10, 2024, 6:29am UTC](https://discourse.julialang.org/t/auxiliary-variable-in-mtk-connector/121572 "2024-12-10T06:29:33Z")

</div>

Consider the MTK Pin example. @connector Pin begin v(t) = 0.0, \[description = "Voltage"\] i(t), \[connect = Flow\] end Suppose I wanted to also define the auxiliary variable p(t) = v \* i (for power), such that I c…

---

## [Parameter inference with Turing with Observed Distribution](https://discourse.julialang.org/t/parameter-inference-with-turing-with-observed-distribution/123065)

<div class="topic-metadata">

**Author:** [@Fourier](https://discourse.julialang.org/u/Fourier)\
**Replies:** 2\
**Last updated:** [December 9, 2024, 9:08pm UTC](https://discourse.julialang.org/t/parameter-inference-with-turing-with-observed-distribution/123065 "2024-12-09T21:08:57Z")

</div>

Lets say I have a model using Turing, StatsPlots @model function model(a) p ~ Normal(1,1) a ~ Normal(p,1) end and I do an experiment and I observe a to be equal to 1.5: Then I can update my prior believe rega…

---

## [Wrapping libwebsockets C Library with Julia](https://discourse.julialang.org/t/wrapping-libwebsockets-c-library-with-julia/102959)

<div class="topic-metadata">

**Author:** [@DeevsDeevs](https://discourse.julialang.org/u/DeevsDeevs)\
**Replies:** 11\
**Last updated:** [December 9, 2024, 6:49pm UTC](https://discourse.julialang.org/t/wrapping-libwebsockets-c-library-with-julia/102959 "2024-12-09T18:49:07Z")

</div>

I’m wrapping libwebsockets in Julia for better integration and performance. Unfortunately, I didn’t find it in JuliaBinaryWrappers. After that i want to introduce simpler analogue for HTTP.jl based on this c lib (previou…

---

## [Sparse loss with Flux](https://discourse.julialang.org/t/sparse-loss-with-flux/123624)

<div class="topic-metadata">

**Author:** [@niltsz](https://discourse.julialang.org/u/niltsz)\
**Replies:** 3\
**Last updated:** [December 9, 2024, 6:24pm UTC](https://discourse.julialang.org/t/sparse-loss-with-flux/123624 "2024-12-09T18:24:49Z")

</div>

Hello, I want to train a Neural network that improves the pixels of an image, but with a sparse loss function, i.e. the true pixel information exists only sparsely, and the positions are different for each training examp…

---

## [SymbolicRegression.jl freezing my terminal when running report](https://discourse.julialang.org/t/symbolicregression-jl-freezing-my-terminal-when-running-report/119368)

<div class="topic-metadata">

**Author:** [@elcup](https://discourse.julialang.org/u/elcup)\
**Replies:** 11\
**Last updated:** [December 9, 2024, 2:19am UTC](https://discourse.julialang.org/t/symbolicregression-jl-freezing-my-terminal-when-running-report/119368 "2024-12-09T02:19:17Z")

</div>

Hey! I am starting to play with SymbolicRegression.jl and I am getting some weird behavior when running the basic example (Examples · SymbolicRegression.jl) To give some context, I am running the following code: using…

---

## [Issues using a vector connector in ModelingToolkit for acausal modeling](https://discourse.julialang.org/t/issues-using-a-vector-connector-in-modelingtoolkit-for-acausal-modeling/123573)

<div class="topic-metadata">

**Author:** [@oswaldo](https://discourse.julialang.org/u/oswaldo)\
**Replies:** 1\
**Last updated:** [December 8, 2024, 2:32pm UTC](https://discourse.julialang.org/t/issues-using-a-vector-connector-in-modelingtoolkit-for-acausal-modeling/123573 "2024-12-08T14:32:32Z")

</div>

Hi, I’m modeling a three-reactor system with two chemical species. I’d like to define the concentration of species as a vector so that I can add more species later. Here is the code: using ModelingToolkit, DifferentialE…

---

## [Cheesing IMO 2006/3 problem with JuMP](https://discourse.julialang.org/t/cheesing-imo-2006-3-problem-with-jump/123566)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 0\
**Last updated:** [December 7, 2024, 1:14pm UTC](https://discourse.julialang.org/t/cheesing-imo-2006-3-problem-with-jump/123566 "2024-12-07T13:14:48Z")

</div>

Here is the IMO 2006. I will focus on problem 3 Normally, you are expected to mathematically solve this problem. However, this problem is instructive in illustrating how an ounce of computation can save a pound of mat…

---

## [How to plot a "global" legend when using subplots?](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 3\
**Last updated:** [December 7, 2024, 6:51am UTC](https://discourse.julialang.org/t/how-to-plot-a-global-legend-when-using-subplots/123531 "2024-12-07T06:51:13Z")

</div>

Take this example: using Plots pla = plot(x-\>x^2, title="Plot A", legend=nothing);plot!(x-\>x^3) plb = plot(x-\>x^(1/2), title="Plot B", legend=nothing);plot!(x-\>x^(1/3)) plot(pla,plb,plb,pla,layout=(2,2),plot\_title="Two …

---

## [Parameter inference problem with matrix inversions](https://discourse.julialang.org/t/parameter-inference-problem-with-matrix-inversions/123543)

<div class="topic-metadata">

**Author:** [@tom-plaa](https://discourse.julialang.org/u/tom-plaa)\
**Replies:** 8\
**Last updated:** [December 6, 2024, 9:23pm UTC](https://discourse.julialang.org/t/parameter-inference-problem-with-matrix-inversions/123543 "2024-12-06T21:23:36Z")

</div>

TLDR: I have a parameter inference problem that involves inferring a matrix of a linear system but I am having trouble with either avoiding the trivial solution (matrix = all zeros) or getting usable results. I have a s…

---

## [Vehical routing problem with time windows](https://discourse.julialang.org/t/vehical-routing-problem-with-time-windows/123550)

<div class="topic-metadata">

**Author:** [@aditya\_lokesh](https://discourse.julialang.org/u/aditya_lokesh)\
**Replies:** 1\
**Last updated:** [December 6, 2024, 9:20pm UTC](https://discourse.julialang.org/t/vehical-routing-problem-with-time-windows/123550 "2024-12-06T21:20:12Z")

</div>

The VRPTW is defined by a fleet of vehicles, V, a set of customers, C, and a directed graph Q, Typically the fleet is considered to be homo- geneous, that is, all vehicles are identical. The graph consists of |C| + 2 …

---

## [HarmonicBalance.jl: get\_independent\_variables: Method Error](https://discourse.julialang.org/t/harmonicbalance-jl-get-independent-variables-method-error/123536)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 3\
**Last updated:** [December 6, 2024, 2:59pm UTC](https://discourse.julialang.org/t/harmonicbalance-jl-get-independent-variables-method-error/123536 "2024-12-06T14:59:17Z")

</div>

A basic example of HarmonicBalance.jl fails. I am looking for ways to fix it. Advice is appreciated. julia\> using HarmonicBalance │ Package HarmonicBalance not found, but a package named HarmonicBalance is │ availab…

---

## [Why does the plot line disappear?](https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406)

<div class="topic-metadata">

**Author:** [@TongTongYee](https://discourse.julialang.org/u/TongTongYee)\
**Replies:** 4\
**Last updated:** [December 6, 2024, 2:26pm UTC](https://discourse.julialang.org/t/why-does-the-plot-line-disappear/122406 "2024-12-06T14:26:54Z")

</div>

In the case below, plot line disappears. using Plots plot(\[1.0e9,1,1,1,1\],ylim=(0.0,10)) But, in the another case below, plot line does not disappear. Everything operates normally. plot(\[1,1,1,1\],ylim=(0.0,10)) My ve…

---

## [Rebuilding Data from Heatmaps](https://discourse.julialang.org/t/rebuilding-data-from-heatmaps/122291)

<div class="topic-metadata">

**Author:** [@Deceneu](https://discourse.julialang.org/u/Deceneu)\
**Replies:** 6\
**Last updated:** [December 6, 2024, 10:19am UTC](https://discourse.julialang.org/t/rebuilding-data-from-heatmaps/122291 "2024-12-06T10:19:52Z")

</div>

Hello, first time posting, might be in the wrong category. I need to extract scalar values from heatmaps saved as images. I don’t have access to the raw data, only compressed JPGs with inlayed colorbars. I would think …

---

## [Differential Equation problem with Index](https://discourse.julialang.org/t/differential-equation-problem-with-index/123518)

<div class="topic-metadata">

**Author:** [@TheLazyFarmer](https://discourse.julialang.org/u/TheLazyFarmer)\
**Replies:** 3\
**Last updated:** [December 6, 2024, 4:27am UTC](https://discourse.julialang.org/t/differential-equation-problem-with-index/123518 "2024-12-06T04:27:04Z")

</div>

Hello, I have a model which I basically need to solve through the calculation of many differential equations by examining the surrounding values and such. I believe the equation is correctly being solved. However, there…

---

## [NLopt verbose output in JuMP](https://discourse.julialang.org/t/nlopt-verbose-output-in-jump/123508)

<div class="topic-metadata">

**Author:** [@afossa](https://discourse.julialang.org/u/afossa)\
**Replies:** 4\
**Last updated:** [December 6, 2024, 1:16am UTC](https://discourse.julialang.org/t/nlopt-verbose-output-in-jump/123508 "2024-12-06T01:16:01Z")

</div>

Hello, I am trying to solve an NLP modeled with InfiniteOpt/JuMP using the SLSQP solver in NLopt.jl However, the solver fails and I am struggling to investigate the root cause of this failure. Is there a way to have a…

---

## [Similar Function to Excel's T.Dist.2T()](https://discourse.julialang.org/t/similar-function-to-excels-t-dist-2t/123514)

<div class="topic-metadata">

**Author:** [@SergeantMike67](https://discourse.julialang.org/u/SergeantMike67)\
**Replies:** 4\
**Last updated:** [December 5, 2024, 9:09pm UTC](https://discourse.julialang.org/t/similar-function-to-excels-t-dist-2t/123514 "2024-12-05T21:09:27Z")

</div>

Seems straight forward but how would I get a p value if I have calculated the test statistic and have the degrees of freedom. This example uses the method in Zar(1996) for comparing regression equations (Chapter 17) th…

---

## [openBF: 1D blood flow simulations with Julia](https://discourse.julialang.org/t/openbf-1d-blood-flow-simulations-with-julia/9860)

<div class="topic-metadata">

**Author:** [@alemelis](https://discourse.julialang.org/u/alemelis)\
**Replies:** 17\
**Last updated:** [December 5, 2024, 7:18pm UTC](https://discourse.julialang.org/t/openbf-1d-blood-flow-simulations-with-julia/9860 "2024-12-05T19:18:34Z")

</div>

Hello there, I’d like to introduce to the Julia community my openBF package. openBF is a finite-volume solver for one-dimensional blood flow equation in networks of elastic (we are working on visco-elastic behaviour as …

---

## [Incorrect return type classification in Optimization.jl](https://discourse.julialang.org/t/incorrect-return-type-classification-in-optimization-jl/123490)

<div class="topic-metadata">

**Author:** [@marast](https://discourse.julialang.org/u/marast)\
**Replies:** 2\
**Last updated:** [December 5, 2024, 2:37pm UTC](https://discourse.julialang.org/t/incorrect-return-type-classification-in-optimization-jl/123490 "2024-12-05T14:37:17Z")

</div>

Hello, with version 4.0.0 Optimization.jl started to classify the return value “FTOL\_REACHED” from NLOpt as failure. This produces a warning. The following example reproduces the problem: using Optimization, Optimizati…

---

## [Acausal modeling of a chemical mixing process with heating using ModelingToolkit.jl](https://discourse.julialang.org/t/acausal-modeling-of-a-chemical-mixing-process-with-heating-using-modelingtoolkit-jl/123475)

<div class="topic-metadata">

**Author:** [@oswaldo](https://discourse.julialang.org/u/oswaldo)\
**Replies:** 1\
**Last updated:** [December 5, 2024, 2:16pm UTC](https://discourse.julialang.org/t/acausal-modeling-of-a-chemical-mixing-process-with-heating-using-modelingtoolkit-jl/123475 "2024-12-05T14:16:26Z")

</div>

Hi, I’m starting to use ModelingToolkit.jl for chemical processes using an acausal approach. Here I’m showing an illustrative example of a simple mixing system with heating. Any feedback to make the model more efficient …

---

## [Is there a rank revealing qr decomposition?](https://discourse.julialang.org/t/is-there-a-rank-revealing-qr-decomposition/123358)

<div class="topic-metadata">

**Author:** [@jonas-pueschel](https://discourse.julialang.org/u/jonas-pueschel)\
**Replies:** 5\
**Last updated:** [December 5, 2024, 9:41am UTC](https://discourse.julialang.org/t/is-there-a-rank-revealing-qr-decomposition/123358 "2024-12-05T09:41:58Z")

</div>

I am currently looking for a qr decomposition of a matrix A ≈ QR with A being n×m, Q being n×r and A being r×m where r is the rank of A (with respect to some cut-off threshold). I’ve played around a bit with qr from the…

---

## [Alert! Error while slicing](https://discourse.julialang.org/t/alert-error-while-slicing/123439)

<div class="topic-metadata">

**Author:** [@govindanupam](https://discourse.julialang.org/u/govindanupam)\
**Replies:** 5\
**Last updated:** [December 5, 2024, 8:57am UTC](https://discourse.julialang.org/t/alert-error-while-slicing/123439 "2024-12-05T08:57:29Z")

</div>

using FileIO using GeometryBasics using MeshIO Load the STL file input\_file = “C:\\Users\\OMG\\Desktop\\3D model\\square.stl” mesh = FileIO.load(input\_file) Define a slicing plane (e.g., Z = 0.5) slice\_plane\_z = 0.5 Fun…

---

## [Shared Memory CPU/GPU programming in Julia (M4 / ROCm)](https://discourse.julialang.org/t/shared-memory-cpu-gpu-programming-in-julia-m4-rocm/123477)

<div class="topic-metadata">

**Author:** [@Perrin\_Meyer](https://discourse.julialang.org/u/Perrin_Meyer)\
**Replies:** 1\
**Last updated:** [December 5, 2024, 5:52am UTC](https://discourse.julialang.org/t/shared-memory-cpu-gpu-programming-in-julia-m4-rocm/123477 "2024-12-05T05:52:51Z")

</div>

I’ve noticed that my new M4 (which just arrived) uses a shared CPU / GPU memory (similar to the old Silicon Graphics boxes 25 years ago…). Also AMD seems to have something called ROCm Is there a Julia way to experiment …

---

## [Optimization of an univariate function using Optim.jl](https://discourse.julialang.org/t/optimization-of-an-univariate-function-using-optim-jl/123454)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 3\
**Last updated:** [December 5, 2024, 5:36am UTC](https://discourse.julialang.org/t/optimization-of-an-univariate-function-using-optim-jl/123454 "2024-12-05T05:36:57Z")

</div>

Dear all, I am trying to deepen my knowledge of the Optim.jl package and in a near future of Optimization.jl. In the course of my research, I have developed a method for estimating the noise in a signal. This methodol…

---

## [How to apply a butterworth filter in a loop?](https://discourse.julialang.org/t/how-to-apply-a-butterworth-filter-in-a-loop/122818)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [December 4, 2024, 7:16pm UTC](https://discourse.julialang.org/t/how-to-apply-a-butterworth-filter-in-a-loop/122818 "2024-12-04T19:16:08Z")

</div>

I constructed a Butterworth filter, which works fine: using ControlPlots, DSP # Define the cut-off frequency in Hz cut\_off\_freq = 2.0 Wn = cut\_off\_freq # Define the sampling time in seconds dt = 0.05 fs = 1/dt sim\_tim…

---

## [Optimization problem inside \`ODESystem\`](https://discourse.julialang.org/t/optimization-problem-inside-odesystem/123445)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 2\
**Last updated:** [December 4, 2024, 2:58pm UTC](https://discourse.julialang.org/t/optimization-problem-inside-odesystem/123445 "2024-12-04T14:58:55Z")

</div>

Hello, I am trying to solve an optimization problem with the variables of an ODESystem. I have a toy code below: using ModelingToolkit, DifferentialEquations, Optimization, OptimizationOptimJL,ForwardDiff, Optim using …

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

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