# Specific Domains

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

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

**Page:** 322

---

## [Multithreading using FLoops for updating discrete distribution](https://discourse.julialang.org/t/multithreading-using-floops-for-updating-discrete-distribution/71176)

<div class="topic-metadata">

**Author:** [@PatrickMcFarlane](https://discourse.julialang.org/u/PatrickMcFarlane)\
**Replies:** 11\
**Last updated:** [November 16, 2021, 10:46pm UTC](https://discourse.julialang.org/t/multithreading-using-floops-for-updating-discrete-distribution/71176 "2021-11-16T22:46:39Z")

</div>

I’m working on a heterogeneous agent macroeconomics model. One of the steps in the solution method for the model is to update the (discrete) wealth distribution across agents. The model is quite big so I need to multi…

---

## [Advice on using ModelingToolkit to solve Lagrange Problems](https://discourse.julialang.org/t/advice-on-using-modelingtoolkit-to-solve-lagrange-problems/71473)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 29\
**Last updated:** [November 16, 2021, 7:41pm UTC](https://discourse.julialang.org/t/advice-on-using-modelingtoolkit-to-solve-lagrange-problems/71473 "2021-11-16T19:41:19Z")

</div>

How would I use ModelingToolkit.jl to solve Lagrange problems? I know of the @varable macro, and the @derivative macro, but I’m not sure the purpose of the @parameters macro.

---

## [How to reset theming cycler in Makie axis?](https://discourse.julialang.org/t/how-to-reset-theming-cycler-in-makie-axis/71607)

<div class="topic-metadata">

**Author:** [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Replies:** 1\
**Last updated:** [November 16, 2021, 7:22pm UTC](https://discourse.julialang.org/t/how-to-reset-theming-cycler-in-makie-axis/71607 "2021-11-16T19:22:40Z")

</div>

Hi there! I am plotting two sets of lines in the same axis. I would like each line on a set to have the same style (line color, style, width, etc…) to the corresponding line in the other set. Currently, the style cycles…

---

## [Nonlinear expression without scalar expressions](https://discourse.julialang.org/t/nonlinear-expression-without-scalar-expressions/71544)

<div class="topic-metadata">

**Author:** [@chupin](https://discourse.julialang.org/u/chupin)\
**Replies:** 2\
**Last updated:** [November 16, 2021, 5:34pm UTC](https://discourse.julialang.org/t/nonlinear-expression-without-scalar-expressions/71544 "2021-11-16T17:34:52Z")

</div>

Hi, I’ve read that nonlinear optimization has limited support. Unfortunately, my objective function cannot be written with scalar expressions and my matrix variable is at least 1000x1000 and I need to call several functi…

---

## [ASGI equivalent in Julia for High performance?](https://discourse.julialang.org/t/asgi-equivalent-in-julia-for-high-performance/69809)

<div class="topic-metadata">

**Author:** [@mks](https://discourse.julialang.org/u/mks)\
**Replies:** 4\
**Last updated:** [November 16, 2021, 1:44pm UTC](https://discourse.julialang.org/t/asgi-equivalent-in-julia-for-high-performance/69809 "2021-11-16T13:44:08Z")

</div>

Hello, I wonder if there will be more work on an ASGI Framework equivalent in Julia. I see all the recent Python webframeworks use ASGI, like FastAPI, Scarlette or Quart. How come we do not see this in Julia? FastCGI a…

---

## [How to set markers in julia pyplot's legend?](https://discourse.julialang.org/t/how-to-set-markers-in-julia-pyplots-legend/71527)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [November 16, 2021, 1:19pm UTC](https://discourse.julialang.org/t/how-to-set-markers-in-julia-pyplots-legend/71527 "2021-11-16T13:19:17Z")

</div>

Hello, I plotted some data with lines and then highlighted some specific points with dots using PyPlot. When I add the legend, the icons next to the names only shows line because the first elements of the plot are indee…

---

## [Makie - SLOW Code: ax = Axis(fig\[1,1\]) takes 50 seconds to execute](https://discourse.julialang.org/t/makie-slow-code-ax-axis-fig-1-1-takes-50-seconds-to-execute/71457)

<div class="topic-metadata">

**Author:** [@nelsonah](https://discourse.julialang.org/u/nelsonah)\
**Replies:** 19\
**Last updated:** [November 16, 2021, 12:56pm UTC](https://discourse.julialang.org/t/makie-slow-code-ax-axis-fig-1-1-takes-50-seconds-to-execute/71457 "2021-11-16T12:56:18Z")

</div>

using GLMakie println(“Starting Program”) t0 = time(); t\_last = t0 println(“Initialize the figure”) fig = Figure(); t\_n = time(); del\_t = t\_n - t\_last; t\_last = t\_n; println(“del\_t = $del\_t”); println(“”) println(“…

---

## [Circular array in Julia](https://discourse.julialang.org/t/circular-array-in-julia/25588)

<div class="topic-metadata">

**Author:** [@udistr](https://discourse.julialang.org/u/udistr)\
**Replies:** 27\
**Last updated:** [November 16, 2021, 12:28pm UTC](https://discourse.julialang.org/t/circular-array-in-julia/25588 "2021-11-16T12:28:02Z")

</div>

Is the a simple way in Julia to define circular array, e.g., if I have: x=zeros(4,4) I would like that: x\[1,5\] = x\[1,1\] x\[1,6\] = x\[1,2\] … and x\[5,1\] = x\[1,1\] x\[6,1\] = x\[2,1\] … I would like to define a more comp…

---

## [Zygote: Differentiate over Zygote operation?](https://discourse.julialang.org/t/zygote-differentiate-over-zygote-operation/70853)

<div class="topic-metadata">

**Author:** [@ThummeTo](https://discourse.julialang.org/u/ThummeTo)\
**Replies:** 4\
**Last updated:** [November 16, 2021, 9:03am UTC](https://discourse.julialang.org/t/zygote-differentiate-over-zygote-operation/70853 "2021-11-16T09:03:37Z")

</div>

Hello everyone, I wondered, if it is possible to differentiate with Zygote over another Zygote-Operation (I attached a minimal example). using Zygote function myFunction(a) Zygote.jacobian(sin, a)\[1\] end Zygote.j…

---

## [FFTX for Julia? (Spiral framework)](https://discourse.julialang.org/t/fftx-for-julia-spiral-framework/71533)

<div class="topic-metadata">

**Author:** [@Perrin\_Meyer](https://discourse.julialang.org/u/Perrin_Meyer)\
**Replies:** 1\
**Last updated:** [November 16, 2021, 12:38am UTC](https://discourse.julialang.org/t/fftx-for-julia-spiral-framework/71533 "2021-11-16T00:38:35Z")

</div>

LBNL and CMU appear to have a project to use CMU’s Spiral framework to generate efficient FFT libraries for CPU’s, GPU’s, etc. It’s a more recent project than FFTW, and unlike FFTW, the libraries are BSD licensed. Does…

---

## [Constraints using a matrix built from external function](https://discourse.julialang.org/t/constraints-using-a-matrix-built-from-external-function/71493)

<div class="topic-metadata">

**Author:** [@chupin](https://discourse.julialang.org/u/chupin)\
**Replies:** 3\
**Last updated:** [November 15, 2021, 9:29pm UTC](https://discourse.julialang.org/t/constraints-using-a-matrix-built-from-external-function/71493 "2021-11-15T21:29:19Z")

</div>

Hi, To build a constraint from a NxM matrix variable (denoted by h), I need to build another NxM matrix so I wrote an external function convexity(h). I tried this syntax (partial code): function convexity(h) …

---

## [Possible bug in determinant calculation](https://discourse.julialang.org/t/possible-bug-in-determinant-calculation/20323)

<div class="topic-metadata">

**Author:** [@Daniel\_Scheinerman](https://discourse.julialang.org/u/Daniel_Scheinerman)\
**Replies:** 21\
**Last updated:** [November 15, 2021, 8:58pm UTC](https://discourse.julialang.org/t/possible-bug-in-determinant-calculation/20323 "2021-11-15T20:58:46Z")

</div>

I found a (not poorly conditioned) integer matrix that julia computes the determinant incorrectly for. using LinearAlgebra A=\[1 1 0 0 1 0 0 0; 1 0 1 0 0 1 0 0; 1 0 0 1 0 0 1 0; 0 1 1 1 0 0 0 0; 0 1 0 0 0 0 1 1; 0 0 1 0 …

---

## [Multigraph neural networks in Julia](https://discourse.julialang.org/t/multigraph-neural-networks-in-julia/70595)

<div class="topic-metadata">

**Author:** [@bad\_at\_math](https://discourse.julialang.org/u/bad_at_math)\
**Replies:** 4\
**Last updated:** [November 15, 2021, 7:21pm UTC](https://discourse.julialang.org/t/multigraph-neural-networks-in-julia/70595 "2021-11-15T19:21:20Z")

</div>

GeometricFlux.jl (https://fluxml.ai/GeometricFlux.jl/dev/manual/conv/#Crystal-Graph-Convolutional-Network-1) and GraphNeuralNetworks.jl (Convolutional Layers · GraphNeuralNetworks.jl) both implement a layer based on the …

---

## [Get branch-and-bound node depth with JuMP](https://discourse.julialang.org/t/get-branch-and-bound-node-depth-with-jump/71128)

<div class="topic-metadata">

**Author:** [@Matheus\_Diogenes\_And](https://discourse.julialang.org/u/Matheus_Diogenes_And)\
**Replies:** 12\
**Last updated:** [November 15, 2021, 7:09pm UTC](https://discourse.julialang.org/t/get-branch-and-bound-node-depth-with-jump/71128 "2021-11-15T19:09:36Z")

</div>

Greetings. I am facing a problem with JuMP 0.21.4 and Julia 1.6.2. I am working with an Integer Programming model using CPLEX 12.10 and I using callbacks to add some cuts, however, I need these cuts to be added only whe…

---

## [Problem understanding results of DiffEqUncertainty](https://discourse.julialang.org/t/problem-understanding-results-of-diffequncertainty/71193)

<div class="topic-metadata">

**Author:** [@MrBellamy](https://discourse.julialang.org/u/MrBellamy)\
**Replies:** 7\
**Last updated:** [November 15, 2021, 1:57pm UTC](https://discourse.julialang.org/t/problem-understanding-results-of-diffequncertainty/71193 "2021-11-15T13:57:55Z")

</div>

I have issues using the librairie DiffEqUncertainty.jl or at least understanding the results. I have a DAE made of 4 differential equations and 1 algebric equations. I defined it using a mass matrix and I am solving it …

---

## [User defined functions with AmplNLWriter](https://discourse.julialang.org/t/user-defined-functions-with-amplnlwriter/71482)

<div class="topic-metadata">

**Author:** [@ver\_kh](https://discourse.julialang.org/u/ver_kh)\
**Replies:** 1\
**Last updated:** [November 15, 2021, 8:38am UTC](https://discourse.julialang.org/t/user-defined-functions-with-amplnlwriter/71482 "2021-11-15T08:38:28Z")

</div>

Can user-defined functions be used in JuMP model with AmplNLWriter?

---

## [Unable to fix a JuMP variable, when it hasn't been fixed](https://discourse.julialang.org/t/unable-to-fix-a-jump-variable-when-it-hasnt-been-fixed/71477)

<div class="topic-metadata">

**Author:** [@chkwon](https://discourse.julialang.org/u/chkwon)\
**Replies:** 1\
**Last updated:** [November 15, 2021, 4:34am UTC](https://discourse.julialang.org/t/unable-to-fix-a-jump-variable-when-it-hasnt-been-fixed/71477 "2021-11-15T04:34:33Z")

</div>

using JuMP m = Model() @variable(m, z \>= 0) @objective(m, Min, z) @show is\_fixed(z) fix(z, 1) The above code generates: is\_fixed(z) = false ERROR: LoadError: Unable to fix z to 1 because it has existing variable bounds…

---

## [Is optimization parallel?](https://discourse.julialang.org/t/is-optimization-parallel/71454)

<div class="topic-metadata">

**Author:** [@Darel](https://discourse.julialang.org/u/Darel)\
**Replies:** 3\
**Last updated:** [November 14, 2021, 10:54pm UTC](https://discourse.julialang.org/t/is-optimization-parallel/71454 "2021-11-14T22:54:54Z")

</div>

Hello, I’m completely new to Julia and wanted to code a simple optimization problem. For a given sparse matrix A (n,m), find sparse matrix X (m,m), minimizing the following objective: L = 1/2 ||A-AX||^2\_F + beta/2 ||X||…

---

## [Error when installing solvers for JuMP](https://discourse.julialang.org/t/error-when-installing-solvers-for-jump/71114)

<div class="topic-metadata">

**Author:** [@jyscao](https://discourse.julialang.org/u/jyscao)\
**Replies:** 4\
**Last updated:** [November 14, 2021, 6:22pm UTC](https://discourse.julialang.org/t/error-when-installing-solvers-for-jump/71114 "2021-11-14T18:22:56Z")

</div>

When I try to install one of the commonly used solvers like Cbc, Cpl or GLPK, I’d get the error message: dependencies errored. To see a full report either run import Pkg; Pkg.precompile() or load the packages. And when I…

---

## [Training sentence transformers in Julia?](https://discourse.julialang.org/t/training-sentence-transformers-in-julia/71460)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 0\
**Last updated:** [November 14, 2021, 3:57pm UTC](https://discourse.julialang.org/t/training-sentence-transformers-in-julia/71460 "2021-11-14T15:57:45Z")

</div>

Hi! Has anyone tried to train a sentence transformer by fine tuning BERT in julia following the method of the 2019 paper on sentence transformers (and the model is called SBERT)? I know this is too general a question, b…

---

## [oneAPI error when running basic example on Intel internal GPU](https://discourse.julialang.org/t/oneapi-error-when-running-basic-example-on-intel-internal-gpu/71452)

<div class="topic-metadata">

**Author:** [@b1d](https://discourse.julialang.org/u/b1d)\
**Replies:** 2\
**Last updated:** [November 14, 2021, 12:20pm UTC](https://discourse.julialang.org/t/oneapi-error-when-running-basic-example-on-intel-internal-gpu/71452 "2021-11-14T12:20:02Z")

</div>

Hi there, I just installed oneAPI just as an experiment. I’m afraid I was not able to run all the examples and searching for a solution was not solving the issue. So I kindly ask for a hint to get this running, or just …

---

## [How to serve a file with specific MIME / media type in Genie?](https://discourse.julialang.org/t/how-to-serve-a-file-with-specific-mime-media-type-in-genie/71447)

<div class="topic-metadata">

**Author:** [@ProvocaTeach](https://discourse.julialang.org/u/ProvocaTeach)\
**Replies:** 0\
**Last updated:** [November 14, 2021, 6:59am UTC](https://discourse.julialang.org/t/how-to-serve-a-file-with-specific-mime-media-type-in-genie/71447 "2021-11-14T06:59:30Z")

</div>

Hi all, I am still new to the Julia web stack – namely, the Genie and HTTP packages. I know that it is possible to serve an HTML file with media type text/html from, say, the root directory / using: route("/") do se…

---

## [Giant components of graph](https://discourse.julialang.org/t/giant-components-of-graph/71361)

<div class="topic-metadata">

**Author:** [@yusri-dh](https://discourse.julialang.org/u/yusri-dh)\
**Replies:** 2\
**Last updated:** [November 14, 2021, 12:08am UTC](https://discourse.julialang.org/t/giant-components-of-graph/71361 "2021-11-14T00:08:15Z")

</div>

Dear all, Is there any function to get a subset of graph that have largest connected component using Graphs.jl (version \>= 1.4.1)? I only found function connected\_components that return a list of connected vertices? I…

---

## [Training layers of a Flux model separately](https://discourse.julialang.org/t/training-layers-of-a-flux-model-separately/71342)

<div class="topic-metadata">

**Author:** [@RedDocMD](https://discourse.julialang.org/u/RedDocMD)\
**Replies:** 1\
**Last updated:** [November 13, 2021, 2:47pm UTC](https://discourse.julialang.org/t/training-layers-of-a-flux-model-separately/71342 "2021-11-13T14:47:56Z")

</div>

Suppose I have a model in Flux, which is a bunch of layers that are stacked using Flux.chain. The training algorithm that I have trains layers individually. So would the following (simplified) code work? layers = \[Vect…

---

## [Can I save ODESystem separately and call it every time I need?](https://discourse.julialang.org/t/can-i-save-odesystem-separately-and-call-it-every-time-i-need/70872)

<div class="topic-metadata">

**Author:** [@shaurya](https://discourse.julialang.org/u/shaurya)\
**Replies:** 6\
**Last updated:** [November 13, 2021, 10:08am UTC](https://discourse.julialang.org/t/can-i-save-odesystem-separately-and-call-it-every-time-i-need/70872 "2021-11-13T10:08:56Z")

</div>

Hi! I am using ModelingToolkit to build a symbolic ODESystem of 13 vector equations. However, the system is unusually large and therefore, takes a lot of time to compute every time I run the code, which is not required.…

---

## [Retworkx: new, high-performance Python graph library](https://discourse.julialang.org/t/retworkx-new-high-performance-python-graph-library/71109)

<div class="topic-metadata">

**Author:** [@jlapeyre](https://discourse.julialang.org/u/jlapeyre)\
**Replies:** 14\
**Last updated:** [November 13, 2021, 4:51am UTC](https://discourse.julialang.org/t/retworkx-new-high-performance-python-graph-library/71109 "2021-11-13T04:51:34Z")

</div>

retworkx is a python library wrapping the petgraph Rust library. (Actually, retworkx itself has a pure-Rust layer enhancing petgraph). retworkx is a strong contender for Most Performant Python Graph Library. Development…

---

## [Makie animations broken?](https://discourse.julialang.org/t/makie-animations-broken/56847)

<div class="topic-metadata">

**Author:** [@tross](https://discourse.julialang.org/u/tross)\
**Replies:** 4\
**Last updated:** [November 12, 2021, 7:07pm UTC](https://discourse.julialang.org/t/makie-animations-broken/56847 "2021-11-12T19:07:01Z")

</div>

I was using a script to animate plots using Makie without any issue for a while, however now I am getting an error and I have no idea how to resolve it. Here is an example script from an earlier post using Makie Abstra…

---

## [Applying weights to Randomized Arrays In a Dataframe](https://discourse.julialang.org/t/applying-weights-to-randomized-arrays-in-a-dataframe/65514)

<div class="topic-metadata">

**Author:** [@YummyPampers2](https://discourse.julialang.org/u/YummyPampers2)\
**Replies:** 1\
**Last updated:** [November 12, 2021, 4:32pm UTC](https://discourse.julialang.org/t/applying-weights-to-randomized-arrays-in-a-dataframe/65514 "2021-11-12T16:32:36Z")

</div>

Hello Everyone: Is there a way to apply weights to arrays in a data such as: DF = DataFrame(Id = 1:10, Tablets = (rand(1:02:50),10), Desktops =(rand(1:02:50),10), Mobiles = (rand(1:01:50), 10)) If I wanted to apply …

---

## [How to simulate the average trajectories of the SDE variables?](https://discourse.julialang.org/t/how-to-simulate-the-average-trajectories-of-the-sde-variables/71378)

<div class="topic-metadata">

**Author:** [@rimi](https://discourse.julialang.org/u/rimi)\
**Replies:** 2\
**Last updated:** [November 12, 2021, 3:47pm UTC](https://discourse.julialang.org/t/how-to-simulate-the-average-trajectories-of-the-sde-variables/71378 "2021-11-12T15:47:34Z")

</div>

Hello, I have a code to solve to SDEs I am working on, in R. The equations in question are, dX = (-X\*a + (Y-X)b + h)dt + g dW and dY = (-Ya + (X-Y)\*b)dt for time \[0,200\], a=0.30, b=0.2, g=1 and h is 1 for time \[50,70\] …

---

## [RecipesBase: How to define the same recipe for different packages?](https://discourse.julialang.org/t/recipesbase-how-to-define-the-same-recipe-for-different-packages/71283)

<div class="topic-metadata">

**Author:** [@giancarloantonucci](https://discourse.julialang.org/u/giancarloantonucci)\
**Replies:** 9\
**Last updated:** [November 12, 2021, 2:10pm UTC](https://discourse.julialang.org/t/recipesbase-how-to-define-the-same-recipe-for-different-packages/71283 "2021-11-12T14:10:57Z")

</div>

I have packages A, B, C, where both B and C depend on A. In order to make some function f available to both B and C at the same time, I first define it in A and then overload it in B and C with some local methods, e.g. m…

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

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