# Specific Domains

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

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

**Page:** 147

---

## [High Memory Usage when using offline\_run from Agents.jl in for loops](https://discourse.julialang.org/t/high-memory-usage-when-using-offline-run-from-agents-jl-in-for-loops/107731)

<div class="topic-metadata">

**Author:** [@PaoloBova](https://discourse.julialang.org/u/PaoloBova)\
**Replies:** 3\
**Last updated:** [December 18, 2023, 1:19pm UTC](https://discourse.julialang.org/t/high-memory-usage-when-using-offline-run-from-agents-jl-in-for-loops/107731 "2023-12-18T13:19:35Z")

</div>

Hello Julia Community, I’m currently working with the Agents.jl package, specifically using the offline\_run function. I’ve encountered an issue where my program seems to be consuming a significant amount of memory when …

---

## [Test if two vertices are connected in a graph](https://discourse.julialang.org/t/test-if-two-vertices-are-connected-in-a-graph/107675)

<div class="topic-metadata">

**Author:** [@jonlym](https://discourse.julialang.org/u/jonlym)\
**Replies:** 4\
**Last updated:** [December 18, 2023, 10:34am UTC](https://discourse.julialang.org/t/test-if-two-vertices-are-connected-in-a-graph/107675 "2023-12-18T10:34:27Z")

</div>

Hello all, I would like to create a graph with no weights and efficiently test if vertices are connected (not necessarily neighbors). I learned I can do this using shortest\_path algorithms and connected\_components but …

---

## [Specifying plot colours using Plots.jl, getting multicolour lines](https://discourse.julialang.org/t/specifying-plot-colours-using-plots-jl-getting-multicolour-lines/107735)

<div class="topic-metadata">

**Author:** [@aoifehealy](https://discourse.julialang.org/u/aoifehealy)\
**Replies:** 2\
**Last updated:** [December 18, 2023, 10:18am UTC](https://discourse.julialang.org/t/specifying-plot-colours-using-plots-jl-getting-multicolour-lines/107735 "2023-12-18T10:18:04Z")

</div>

Hi there, I’m tring to plot two different datasets on the same axis, the first as a blue line and the second as a red line. I have tried plot(sol, idxs = \[idx1, idx2\], linecolor=\[:blue,:red\]) but instead of one line b…

---

## [Matrix input field: bug in StippleUI?](https://discourse.julialang.org/t/matrix-input-field-bug-in-stippleui/107617)

<div class="topic-metadata">

**Author:** [@StijnSchildermans](https://discourse.julialang.org/u/StijnSchildermans)\
**Replies:** 2\
**Last updated:** [December 18, 2023, 9:41am UTC](https://discourse.julialang.org/t/matrix-input-field-bug-in-stippleui/107617 "2023-12-18T09:41:09Z")

</div>

I am trying to write a function that allows me to render table-like structures so users can input matrices. However, when I use a matrix as a reactive variable for the structure backend the table does not behave as it sh…

---

## [How can I simplify this code](https://discourse.julialang.org/t/how-can-i-simplify-this-code/107757)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 0\
**Last updated:** [December 18, 2023, 8:02am UTC](https://discourse.julialang.org/t/how-can-i-simplify-this-code/107757 "2023-12-18T08:02:18Z")

</div>

How can I simplify the creation of a system of equations in a loop: using ModelingToolkit, OrdinaryDiffEq, LinearAlgebra G\_EARTH = Float64\[0.0, 0.0, -9.81\] # gravitational acceleration \[m/s²\] L0::Float…

---

## [JuMP constraint MethodError](https://discourse.julialang.org/t/jump-constraint-methoderror/107752)

<div class="topic-metadata">

**Author:** [@AP\_profile](https://discourse.julialang.org/u/AP_profile)\
**Replies:** 1\
**Last updated:** [December 18, 2023, 2:39am UTC](https://discourse.julialang.org/t/jump-constraint-methoderror/107752 "2023-12-18T02:39:54Z")

</div>

I’ve been trying to use a constraint that uses Distribution.cdf() in optimization using JuMP. An example of this usage would be similar to the below code. model = JuMP.Model(NLopt.Optimizer); set\_optimizer\_attribute(mod…

---

## [QR decomposition on large (\>1TB) matrix](https://discourse.julialang.org/t/qr-decomposition-on-large-1tb-matrix/50552)

<div class="topic-metadata">

**Author:** [@casv2](https://discourse.julialang.org/u/casv2)\
**Replies:** 5\
**Last updated:** [December 17, 2023, 9:17pm UTC](https://discourse.julialang.org/t/qr-decomposition-on-large-1tb-matrix/50552 "2023-12-17T21:17:58Z")

</div>

I’d like to perform a QR decomposition on a large (\> 1TB) matrix. Much larger than the available memory on a single node on our HPC. My idea is to set up a DistributedArray (GitHub - JuliaParallel/DistributedArrays.jl: …

---

## [MathTeX font does not match pdfLaTeX font](https://discourse.julialang.org/t/mathtex-font-does-not-match-pdflatex-font/107670)

<div class="topic-metadata">

**Author:** [@dchang10](https://discourse.julialang.org/u/dchang10)\
**Replies:** 3\
**Last updated:** [December 17, 2023, 3:13pm UTC](https://discourse.julialang.org/t/mathtex-font-does-not-match-pdflatex-font/107670 "2023-12-17T15:13:47Z")

</div>

I’m using LaTeXstrings in GLMakie to render math. It seems like the mathcal font in LaTeXstrings is different from the typical font used for mathcal pdfLaTeX. Here’s an example of a render with LaTeXStrings: L"$\\mathcal…

---

## [Interactive ABM plot with agents and GLMakie](https://discourse.julialang.org/t/interactive-abm-plot-with-agents-and-glmakie/98913)

<div class="topic-metadata">

**Author:** [@sea\_slug](https://discourse.julialang.org/u/sea_slug)\
**Replies:** 3\
**Last updated:** [December 17, 2023, 11:26am UTC](https://discourse.julialang.org/t/interactive-abm-plot-with-agents-and-glmakie/98913 "2023-12-17T11:26:19Z")

</div>

I am trying to produce an interactive plot of an agent based model using GLMakie. I Have done this before no problem (a few months ago), but now when I run the code it just produces a static plot in VSCode. I have been …

---

## [Sparse A\\B](https://discourse.julialang.org/t/sparse-a-b/107725)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 2\
**Last updated:** [December 17, 2023, 4:10am UTC](https://discourse.julialang.org/t/sparse-a-b/107725 "2023-12-17T04:10:11Z")

</div>

What is the best way to solve A\\B where A and B are sparse, and where the result is also known to be sparse? Right now it seems I have to do sparse(A \\ Matrix(B)).

---

## [Question About Intercept & Link Function in Bayesian Logistic Regression](https://discourse.julialang.org/t/question-about-intercept-link-function-in-bayesian-logistic-regression/105596)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 7\
**Last updated:** [December 17, 2023, 1:28am UTC](https://discourse.julialang.org/t/question-about-intercept-link-function-in-bayesian-logistic-regression/105596 "2023-12-17T01:28:15Z")

</div>

Assume the following: I repeat a game over and over in which I roll a die a number of times. If I roll a 6 on any of the trials, I win. Otherwise, I lose. I want to model how the probability of winning this game changes …

---

## [CUDA.jl - MethodError: no method matching CUDA.CuArray](https://discourse.julialang.org/t/cuda-jl-methoderror-no-method-matching-cuda-cuarray/107717)

<div class="topic-metadata">

**Author:** [@maria96](https://discourse.julialang.org/u/maria96)\
**Replies:** 0\
**Last updated:** [December 16, 2023, 9:03pm UTC](https://discourse.julialang.org/t/cuda-jl-methoderror-no-method-matching-cuda-cuarray/107717 "2023-12-16T21:03:36Z")

</div>

I’m training a Neural Network using NeuralEstimators.jl in julia, and I’m submitting my code in my slurm high performance computer. For some reason, it is not working now using GPUs (it was working before) but it is work…

---

## [Package for matrix polynomials](https://discourse.julialang.org/t/package-for-matrix-polynomials/107687)

<div class="topic-metadata">

**Author:** [@fph](https://discourse.julialang.org/u/fph)\
**Replies:** 2\
**Last updated:** [December 15, 2023, 10:23pm UTC](https://discourse.julialang.org/t/package-for-matrix-polynomials/107687 "2023-12-15T22:23:22Z")

</div>

What package do you recommend to work with matrix polynomials, i.e., expressions of the form A(x) = A\_0 + A\_1 x + \\dots + A\_d x^d? I will use mainly the coefficients to do linear algebra, so I am interested in a package…

---

## [Regularized horseshoe prior](https://discourse.julialang.org/t/regularized-horseshoe-prior/71599)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 10\
**Last updated:** [December 15, 2023, 8:13pm UTC](https://discourse.julialang.org/t/regularized-horseshoe-prior/71599 "2023-12-15T20:13:10Z")

</div>

Anyone here who has some working Turing.jl (or Soss.jl) code for the regularized horseshoe prior (e.g., Piironen, 2007)? The horseshoe prior is a regularization technique (reduces the chance of overfitting) for when the…

---

## [Speeding up JuMP model creation with sets that depend on other indexes](https://discourse.julialang.org/t/speeding-up-jump-model-creation-with-sets-that-depend-on-other-indexes/107333)

<div class="topic-metadata">

**Author:** [@abelsiqueira](https://discourse.julialang.org/u/abelsiqueira)\
**Replies:** 8\
**Last updated:** [December 15, 2023, 3:18pm UTC](https://discourse.julialang.org/t/speeding-up-jump-model-creation-with-sets-that-depend-on-other-indexes/107333 "2023-12-15T15:18:48Z")

</div>

I am looking for tips on building a model with variables, expressions, and constraints over sets that depends on indexes from other sets. For instance: @expression(model, \[i = 1:5, j = blah\[i\]\], ...) where blah is a di…

---

## [Centred subplot in Makie](https://discourse.julialang.org/t/centred-subplot-in-makie/107660)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [December 15, 2023, 1:09pm UTC](https://discourse.julialang.org/t/centred-subplot-in-makie/107660 "2023-12-15T13:09:58Z")

</div>

Hi, I am looking for a way to do the below in the image. I know I could generate a subplot which spans the whole length of A and B however I can not appear to find an intuitive way to plot a third figure C which spans h…

---

## [MethodError: no method matching add\_to\_expression!(::JuMP.AffExpr, ::JuMP.QuadExpr)](https://discourse.julialang.org/t/methoderror-no-method-matching-add-to-expression-jump-affexpr-jump-quadexpr/107379)

<div class="topic-metadata">

**Author:** [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Replies:** 2\
**Last updated:** [December 15, 2023, 12:18pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-add-to-expression-jump-affexpr-jump-quadexpr/107379 "2023-12-15T12:18:21Z")

</div>

I got a model like using JuMP, Ipopt m = Model(Ipopt.Optimizer) @variable(m, x\[i=1:2\]\>=0) @expression(m, e1\[i=1:2\], i\*m\[:x\]\[i\]) ## Affine @expression(m, e2\[i=1:2\], m\[:x\]\[i\]^i) ## At most quadric add\_to\_expression!.(m\[:e…

---

## [What is the @named macro needed for?](https://discourse.julialang.org/t/what-is-the-named-macro-needed-for/107647)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [December 15, 2023, 8:48am UTC](https://discourse.julialang.org/t/what-is-the-named-macro-needed-for/107647 "2023-12-15T08:48:05Z")

</div>

Why is the @named macro needed here: @named sys = ODESystem(eqs, t) I am NOT giving a name to the ODE system… But I get an error if I leave it out.

---

## [Are there guidelines or rules of thumb on how to stack hidden layers in a RNN?](https://discourse.julialang.org/t/are-there-guidelines-or-rules-of-thumb-on-how-to-stack-hidden-layers-in-a-rnn/107307)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 5\
**Last updated:** [December 14, 2023, 10:25pm UTC](https://discourse.julialang.org/t/are-there-guidelines-or-rules-of-thumb-on-how-to-stack-hidden-layers-in-a-rnn/107307 "2023-12-14T22:25:03Z")

</div>

I’m currently working on the prediction of chaotic data and I have decided to see how well would an RNN, namely an LSTM, would do. I am fairly new to the topic of Neural Networks, but I have found a spate of helpful reso…

---

## [Number of solvers available for DifferentialEquations.jl?](https://discourse.julialang.org/t/number-of-solvers-available-for-differentialequations-jl/107607)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 8\
**Last updated:** [December 14, 2023, 10:14pm UTC](https://discourse.julialang.org/t/number-of-solvers-available-for-differentialequations-jl/107607 "2023-12-14T22:14:23Z")

</div>

I am preparing a talk. I would like to know: How many different solvers are available when you use the package DifferentialEquations.jl? I don’t need the exact number, just an estimate…

---

## [Reproducing MATLAB's \`filter\` behavior](https://discourse.julialang.org/t/reproducing-matlabs-filter-behavior/107619)

<div class="topic-metadata">

**Author:** [@Abdulrhmn\_Ghanem](https://discourse.julialang.org/u/Abdulrhmn_Ghanem)\
**Replies:** 2\
**Last updated:** [December 14, 2023, 5:50pm UTC](https://discourse.julialang.org/t/reproducing-matlabs-filter-behavior/107619 "2023-12-14T17:50:08Z")

</div>

Hi I am trying to reproduce the following matlab code using julia. NEst = 1000 % length estimation record \[b,a\] = cheby1(3, 0.5, 2\*\[0.15 0.3\]); % the coefficients of the true IIR system % gen…

---

## [Obtaining Step Norm in KNITRO.jl](https://discourse.julialang.org/t/obtaining-step-norm-in-knitro-jl/107577)

<div class="topic-metadata">

**Author:** [@fimiller](https://discourse.julialang.org/u/fimiller)\
**Replies:** 3\
**Last updated:** [December 14, 2023, 4:53pm UTC](https://discourse.julialang.org/t/obtaining-step-norm-in-knitro-jl/107577 "2023-12-14T16:53:06Z")

</div>

Hello, From a previous post (Computing common components in KNITRO callbacks), I am working on a creating an algorithm that uses the KNITRO.jl solver. I am in the process of trying to report data as I run experiments o…

---

## [Boolean Indexing in dataframes](https://discourse.julialang.org/t/boolean-indexing-in-dataframes/99692)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 3\
**Last updated:** [December 14, 2023, 2:17pm UTC](https://discourse.julialang.org/t/boolean-indexing-in-dataframes/99692 "2023-12-14T14:17:45Z")

</div>

@bkamins How about sampling the dataframe by boolean values. I mean take every column for the row, the the boolean is true? Like this example: julia\> df = DataFrame(rand(3,3), :auto) 3×3 DataFrame Row │ x1 x2…

---

## [Parallelizing a code when we are evaluating a function for different parameters independently and storing in an array](https://discourse.julialang.org/t/parallelizing-a-code-when-we-are-evaluating-a-function-for-different-parameters-independently-and-storing-in-an-array/107516)

<div class="topic-metadata">

**Author:** [@Uranium238](https://discourse.julialang.org/u/Uranium238)\
**Replies:** 6\
**Last updated:** [December 14, 2023, 9:06am UTC](https://discourse.julialang.org/t/parallelizing-a-code-when-we-are-evaluating-a-function-for-different-parameters-independently-and-storing-in-an-array/107516 "2023-12-14T09:06:10Z")

</div>

I am working on a problem where we have to evaluate a function at different values of a parameter called t, each evaluation is time consuming and involves a lot of matrix-multiplication and inversion. The rough outline o…

---

## [Tracking dynamical increments du and accompanying variables during a DynamicalSystems run](https://discourse.julialang.org/t/tracking-dynamical-increments-du-and-accompanying-variables-during-a-dynamicalsystems-run/107558)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 2\
**Last updated:** [December 14, 2023, 8:32am UTC](https://discourse.julialang.org/t/tracking-dynamical-increments-du-and-accompanying-variables-during-a-dynamicalsystems-run/107558 "2023-12-14T08:32:56Z")

</div>

Hi. I have two things that I want from DynamicalSystems, and I’m not sure how to get them: Is there some way of retrieving the dynamical increment values du during the running of a DynamicalSystem? It would be useful …

---

## [Not seeing speed-up with Dagger.jl. Am I doing something wrong?](https://discourse.julialang.org/t/not-seeing-speed-up-with-dagger-jl-am-i-doing-something-wrong/107440)

<div class="topic-metadata">

**Author:** [@bdas123](https://discourse.julialang.org/u/bdas123)\
**Replies:** 8\
**Last updated:** [December 14, 2023, 8:16am UTC](https://discourse.julialang.org/t/not-seeing-speed-up-with-dagger-jl-am-i-doing-something-wrong/107440 "2023-12-14T08:16:07Z")

</div>

I am setting 8 CPU cores using the following code: using IJulia installkernel("Julia (8 threads)", env=Dict("JULIA\_NUM\_THREADS"=\>"8")) Threads.nthreads() I change the kernel environment of the Jupyter Notebook to th…

---

## [GPU Synchronization Issue - using KernelAbstraction](https://discourse.julialang.org/t/gpu-synchronization-issue-using-kernelabstraction/106601)

<div class="topic-metadata">

**Author:** [@erasedbird](https://discourse.julialang.org/u/erasedbird)\
**Replies:** 5\
**Last updated:** [December 13, 2023, 8:51pm UTC](https://discourse.julialang.org/t/gpu-synchronization-issue-using-kernelabstraction/106601 "2023-12-13T20:51:30Z")

</div>

@synchronize is not working consistently for this function I am trying to write, here is what is happening. This function is supposed to first divide everything in the first column by the topmost element of column 1 (3),…

---

## [Any equivalent in Lux.jl to torch.nn.Parameter?](https://discourse.julialang.org/t/any-equivalent-in-lux-jl-to-torch-nn-parameter/107200)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 1\
**Last updated:** [December 13, 2023, 7:53pm UTC](https://discourse.julialang.org/t/any-equivalent-in-lux-jl-to-torch-nn-parameter/107200 "2023-12-13T19:53:24Z")

</div>

I want to know if there is any equivalent to PyTorch’s torch.nn.Parameter in Lux.jl. Thanks!

---

## [Complementarity.jl with Path](https://discourse.julialang.org/t/complementarity-jl-with-path/103081)

<div class="topic-metadata">

**Author:** [@sjhon](https://discourse.julialang.org/u/sjhon)\
**Replies:** 9\
**Last updated:** [December 13, 2023, 7:48pm UTC](https://discourse.julialang.org/t/complementarity-jl-with-path/103081 "2023-12-13T19:48:34Z")

</div>

Im trying to solve a problema of d’aertrycke, ehrenmann, ralph & smeers (2017), the problem is the 3.3.1 that you can found here Risk trading in capacity equilibrium models Im trying to do this problem as a Mixed Comple…

---

## [How do I obtain the variables in a JuMP constraint?](https://discourse.julialang.org/t/how-do-i-obtain-the-variables-in-a-jump-constraint/107563)

<div class="topic-metadata">

**Author:** [@BdeKoning](https://discourse.julialang.org/u/BdeKoning)\
**Replies:** 1\
**Last updated:** [December 13, 2023, 7:40pm UTC](https://discourse.julialang.org/t/how-do-i-obtain-the-variables-in-a-jump-constraint/107563 "2023-12-13T19:40:29Z")

</div>

Say I define a constraint with JuMP: using JuMP model = Model(); @variable(model, x\[1:3\]); constraint = @constraint(model, c1, sum(x) \<= 1) How can I now, only using the variable constraint, obtain an iterable of varia…

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

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