# Specific Domains

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

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

**Page:** 250

---

## [Trouble Defining Variable](https://discourse.julialang.org/t/trouble-defining-variable/87603)

<div class="topic-metadata">

**Author:** [@mhbw](https://discourse.julialang.org/u/mhbw)\
**Replies:** 5\
**Last updated:** [September 22, 2022, 1:21pm UTC](https://discourse.julialang.org/t/trouble-defining-variable/87603 "2022-09-22T13:21:18Z")

</div>

I’ve been working to create an updated version of this repo, which uses JuMP, GLPK and Julia to perform a linear optimization. I think I’ve correctly updated the bulk of it (replacing @setObjective with objective type th…

---

## [Using modelling toolkitize to generate sparse jacobian - error](https://discourse.julialang.org/t/using-modelling-toolkitize-to-generate-sparse-jacobian-error/87633)

<div class="topic-metadata">

**Author:** [@hbooth](https://discourse.julialang.org/u/hbooth)\
**Replies:** 0\
**Last updated:** [September 22, 2022, 10:01am UTC](https://discourse.julialang.org/t/using-modelling-toolkitize-to-generate-sparse-jacobian-error/87633 "2022-09-22T10:01:00Z")

</div>

Hi everyone, I am trying to use modelingtoolkitize to regenerate an ODEProblem with the analytical solution to the sparse Jacobian , as in this tutorial: Automated Sparse Analytical Jacobians · ModelingToolkit.jl I am m…

---

## [Orbit diagram from the sum of two variables DynamicalSystems.jl](https://discourse.julialang.org/t/orbit-diagram-from-the-sum-of-two-variables-dynamicalsystems-jl/87620)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 4\
**Last updated:** [September 22, 2022, 9:57am UTC](https://discourse.julialang.org/t/orbit-diagram-from-the-sum-of-two-variables-dynamicalsystems-jl/87620 "2022-09-22T09:57:12Z")

</div>

Hello, I need to repeat the following orbit diagram, where 𝑥||𝑚𝑎𝑥 is maximums from 𝑥|| = x1 + x2. I know how calculate him from two variable but i don’t know how ploting him, examples in documentation only for one varia…

---

## [Incorrect bifurcation diagram bifurcationkit.jl](https://discourse.julialang.org/t/incorrect-bifurcation-diagram-bifurcationkit-jl/87259)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 30\
**Last updated:** [September 22, 2022, 8:19am UTC](https://discourse.julialang.org/t/incorrect-bifurcation-diagram-bifurcationkit-jl/87259 "2022-09-22T08:19:27Z")

</div>

This is my first time using this package and I need to get a bifurcation diagram for the following system function sigma(x) return 1.0 / ( 1.0 + exp( -10.0 \* ( x - ( - 0.25 ) ) ) ) end function HR(u, p) a…

---

## [CSR matrices in CUDA.jl](https://discourse.julialang.org/t/csr-matrices-in-cuda-jl/87388)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 8:41pm UTC](https://discourse.julialang.org/t/csr-matrices-in-cuda-jl/87388 "2022-09-21T20:41:41Z")

</div>

I can create CSC matrices on the GPU, e.g. via cu(sprand(10,10,0.1)). How do I create CSR matrices? How do I convert a CSC into a CSR matrix on the CPU or GPU? I want to use csreigvsi, which requires CSR storage structu…

---

## [Pathfinding and update\_vel!](https://discourse.julialang.org/t/pathfinding-and-update-vel/87471)

<div class="topic-metadata">

**Author:** [@InesP](https://discourse.julialang.org/u/InesP)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 6:37pm UTC](https://discourse.julialang.org/t/pathfinding-and-update-vel/87471 "2022-09-21T18:37:45Z")

</div>

Hey, I started using Agents.jl recently, and I have a question regarding using pathfinding and update\_vel! together. I’m trying to use Agents to model crowd dynamics in emergency situations. Right now, I’m using the AS…

---

## [How do I fit TGARCH-X model using ARCHModels.jl](https://discourse.julialang.org/t/how-do-i-fit-tgarch-x-model-using-archmodels-jl/87558)

<div class="topic-metadata">

**Author:** [@ultratrader](https://discourse.julialang.org/u/ultratrader)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 12:48pm UTC](https://discourse.julialang.org/t/how-do-i-fit-tgarch-x-model-using-archmodels-jl/87558 "2022-09-21T12:48:00Z")

</div>

How do I fit a GARCH model with leverage effect as well as additional explanatory variables using ARCHModels.jl library? I can’t find any documentation about this in: https://s-broda.github.io/ARCHModels.jl/stable/

---

## [Smoothing empirical CDFs](https://discourse.julialang.org/t/smoothing-empirical-cdfs/87544)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 6\
**Last updated:** [September 21, 2022, 12:20pm UTC](https://discourse.julialang.org/t/smoothing-empirical-cdfs/87544 "2022-09-21T12:20:51Z")

</div>

I have 5 empirical CDFs coming from a model. I’d like to average them and plot that average against the empirical CDF of the data. The issue I’m facing is that the points of support of those 5 CDFs are not the same, so I…

---

## [ODE parameter estimation using neural nets](https://discourse.julialang.org/t/ode-parameter-estimation-using-neural-nets/87458)

<div class="topic-metadata">

**Author:** [@RuoyuWang72](https://discourse.julialang.org/u/RuoyuWang72)\
**Replies:** 5\
**Last updated:** [September 21, 2022, 6:54am UTC](https://discourse.julialang.org/t/ode-parameter-estimation-using-neural-nets/87458 "2022-09-21T06:54:43Z")

</div>

I’m trying to add inequality constraints to my ODE parameter optimization problem. The example I followed was fluxdiffeq. I need p\[1\] + p\[2\] \<= 1 and p\[1\] and p\[2\] both also have to be positive. Is there any way I can ac…

---

## [PyPlot.jl reduce white space after tight\_layout()](https://discourse.julialang.org/t/pyplot-jl-reduce-white-space-after-tight-layout/86923)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 2\
**Last updated:** [September 21, 2022, 6:22am UTC](https://discourse.julialang.org/t/pyplot-jl-reduce-white-space-after-tight-layout/86923 "2022-09-21T06:22:08Z")

</div>

Can I reduce the amount of whitespace between subplots after the plot? Please note I need AA and BB to have linked X, Y axes and the same sizes with a shared colorbar, and that AA, BB and CC need to have a shared X axis…

---

## [Unable to add multiple plots to a single scene in Makie](https://discourse.julialang.org/t/unable-to-add-multiple-plots-to-a-single-scene-in-makie/87527)

<div class="topic-metadata">

**Author:** [@malton31](https://discourse.julialang.org/u/malton31)\
**Replies:** 4\
**Last updated:** [September 21, 2022, 1:16am UTC](https://discourse.julialang.org/t/unable-to-add-multiple-plots-to-a-single-scene-in-makie/87527 "2022-09-21T01:16:17Z")

</div>

I am new to Makie and Julia in VSCode and I am trying to plot two plots in one scene. My code is using Makie, GLMakie GLMakie.activate!() Makie.inline!(true) x = rand(100) y = rand(100) z = rand(100) scene = scatter…

---

## [Combine with regex column selector?](https://discourse.julialang.org/t/combine-with-regex-column-selector/87520)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 19\
**Last updated:** [September 20, 2022, 8:06pm UTC](https://discourse.julialang.org/t/combine-with-regex-column-selector/87520 "2022-09-20T20:06:07Z")

</div>

I’m a bit puzzled by this example, where I expected the same column selector to work both for select as for combine. For some reason I’m unable to use the regex selector with combine: julia\> using DataFrames, Statistics…

---

## [Preparing tutorials and books](https://discourse.julialang.org/t/preparing-tutorials-and-books/59298)

<div class="topic-metadata">

**Author:** [@vector](https://discourse.julialang.org/u/vector)\
**Replies:** 11\
**Last updated:** [September 20, 2022, 7:12pm UTC](https://discourse.julialang.org/t/preparing-tutorials-and-books/59298 "2022-09-20T19:12:45Z")

</div>

Hi. I am not sure whther this is the right category for posting my query. I cannot find the appropriate category. What software or platform do you use for writing Julia languge tutorials and books? Is it the good old …

---

## [How to combine two different colormaps into one](https://discourse.julialang.org/t/how-to-combine-two-different-colormaps-into-one/87529)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 7:40pm UTC](https://discourse.julialang.org/t/how-to-combine-two-different-colormaps-into-one/87529 "2022-09-20T19:40:45Z")

</div>

I come across the following colorbar somewhere and would like to implement something similar for my heatmap plot in CairoMakie: So suppose I want ColorSchemes.viridis from -5 to -2, and then ColorSchemes.Greys\_3 from …

---

## [Numeric string format for Makie plot?](https://discourse.julialang.org/t/numeric-string-format-for-makie-plot/87508)

<div class="topic-metadata">

**Author:** [@nvhoang.3110](https://discourse.julialang.org/u/nvhoang.3110)\
**Replies:** 5\
**Last updated:** [September 20, 2022, 5:10pm UTC](https://discourse.julialang.org/t/numeric-string-format-for-makie-plot/87508 "2022-09-20T17:10:44Z")

</div>

Hello everyone! Sorry if my question is too basic for some people. Basically I’m trying to define the numeric string format for my Makie plot, specifically for the axis. The numbers on the y-axis that I want to display h…

---

## [Custom CUDA kernel for nontrivial sum calculations](https://discourse.julialang.org/t/custom-cuda-kernel-for-nontrivial-sum-calculations/87466)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 11:11am UTC](https://discourse.julialang.org/t/custom-cuda-kernel-for-nontrivial-sum-calculations/87466 "2022-09-20T11:11:49Z")

</div>

Suppose I want to calculate the following sum: C\_{nm}=\\sum\_i A\_{ni}B\_{im} (in reality, something more complicated). The corresponding code could be function cpu\_add!(C, A, B) @. C = 0 for i in axes(A,1) …

---

## [Make lines in legend longer](https://discourse.julialang.org/t/make-lines-in-legend-longer/87479)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 2\
**Last updated:** [September 20, 2022, 10:30am UTC](https://discourse.julialang.org/t/make-lines-in-legend-longer/87479 "2022-09-20T10:30:21Z")

</div>

I am trying to create a separate common legend for a grid of plots, however the length of the lines in the legend appears too short. What keyword argument modifies it?

---

## [How to partilly instantiate parameters of a reaction network in Catalyst (or ModelingToolkit ?)](https://discourse.julialang.org/t/how-to-partilly-instantiate-parameters-of-a-reaction-network-in-catalyst-or-modelingtoolkit/87427)

<div class="topic-metadata">

**Author:** [@Cedric\_Lh](https://discourse.julialang.org/u/Cedric_Lh)\
**Replies:** 4\
**Last updated:** [September 20, 2022, 10:11am UTC](https://discourse.julialang.org/t/how-to-partilly-instantiate-parameters-of-a-reaction-network-in-catalyst-or-modelingtoolkit/87427 "2022-09-20T10:11:39Z")

</div>

Hi! Is there a simple way, in Catalyst.jl, to instantiate some of the parameters of a reaction system ? Suppose, I have this simple network: rn1 = @reaction\_network begin a, X --\> ∅ b, Y --\> X end a b so, param…

---

## [Getting Attributes for Makie Axis and Lines](https://discourse.julialang.org/t/getting-attributes-for-makie-axis-and-lines/87500)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 7:57am UTC](https://discourse.julialang.org/t/getting-attributes-for-makie-axis-and-lines/87500 "2022-09-20T07:57:37Z")

</div>

There are many attributes of axes and plots that one might want to be able to inspect and change. I used to be able to find a list of these possibilities with Makie by doing the following. fig, axis, lineplot = lines(1:…

---

## [GPU-Kernel Profiling](https://discourse.julialang.org/t/gpu-kernel-profiling/87468)

<div class="topic-metadata">

**Author:** [@Julien\_A](https://discourse.julialang.org/u/Julien_A)\
**Replies:** 1\
**Last updated:** [September 20, 2022, 6:47am UTC](https://discourse.julialang.org/t/gpu-kernel-profiling/87468 "2022-09-20T06:47:10Z")

</div>

Hello, i’m currently profiling a Julia deep learning project, mainly executed on the GPU. Using nvprof i get following profiling result: ==7880== Profiling result: Type Time(%) Time Calls Avg…

---

## [Load file on workers after they start](https://discourse.julialang.org/t/load-file-on-workers-after-they-start/87502)

<div class="topic-metadata">

**Author:** [@Amit.Rotem](https://discourse.julialang.org/u/Amit.Rotem)\
**Replies:** 0\
**Last updated:** [September 20, 2022, 5:41am UTC](https://discourse.julialang.org/t/load-file-on-workers-after-they-start/87502 "2022-09-20T05:41:03Z")

</div>

Is it possible to load a jl file on a worker as they start? The -L flag does not seems to work. using Distributed open("worker\_startup.jl", "w") do io print(io, """ using Distributed id = Distribute…

---

## [Parallel bzip2 ang gzip: pbzip2 and pigz](https://discourse.julialang.org/t/parallel-bzip2-ang-gzip-pbzip2-and-pigz/87096)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 11\
**Last updated:** [September 20, 2022, 3:35am UTC](https://discourse.julialang.org/t/parallel-bzip2-ang-gzip-pbzip2-and-pigz/87096 "2022-09-20T03:35:22Z")

</div>

Do JuMP’s write\_to\_file and read\_from\_file use pbzip2 and pigz, parallel implementations of bzip2 and gzip, when writing or reading models stored in .bz2 and .gz compressed files? https://jump.dev/JuMP.jl/stable/referen…

---

## [ERROR: cannot document the following expression: using PATHSolver](https://discourse.julialang.org/t/error-cannot-document-the-following-expression-using-pathsolver/87496)

<div class="topic-metadata">

**Author:** [@Muhammad\_Nadeem](https://discourse.julialang.org/u/Muhammad_Nadeem)\
**Replies:** 10\
**Last updated:** [September 19, 2022, 10:50pm UTC](https://discourse.julialang.org/t/error-cannot-document-the-following-expression-using-pathsolver/87496 "2022-09-19T22:50:59Z")

</div>

Hello all, I am new to Julia, I am trying to run a simple optimization problem using PathSolver. I have installed the PathSolver, but it is giving me this error ERROR: cannot document the following expression: using P…

---

## [Modia doc page fail](https://discourse.julialang.org/t/modia-doc-page-fail/87489)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 4\
**Last updated:** [September 19, 2022, 7:58pm UTC](https://discourse.julialang.org/t/modia-doc-page-fail/87489 "2022-09-19T19:58:29Z")

</div>

Hi all, I found the Modia.jl documentation page can not be opened, is this a temporary problem or it is no longer available? Thank you in advance!

---

## [Getting attribute error: "Unknown property math\_fontfamily" from Plots](https://discourse.julialang.org/t/getting-attribute-error-unknown-property-math-fontfamily-from-plots/87486)

<div class="topic-metadata">

**Author:** [@Grace\_Chuan](https://discourse.julialang.org/u/Grace_Chuan)\
**Replies:** 4\
**Last updated:** [September 19, 2022, 7:23pm UTC](https://discourse.julialang.org/t/getting-attribute-error-unknown-property-math-fontfamily-from-plots/87486 "2022-09-19T19:23:44Z")

</div>

Hi everyone, I am trying to plot 3d graphics using Plots in jupyter notebook but everytime I try, I always get the error of unknown property math\_fontfamily. I posted a screenshot to show what I mean. Plots work for my …

---

## [Network Not Updating, Flux Julia](https://discourse.julialang.org/t/network-not-updating-flux-julia/87350)

<div class="topic-metadata">

**Author:** [@Nishant\_Mohanty](https://discourse.julialang.org/u/Nishant_Mohanty)\
**Replies:** 6\
**Last updated:** [September 19, 2022, 7:19pm UTC](https://discourse.julialang.org/t/network-not-updating-flux-julia/87350 "2022-09-19T19:19:35Z")

</div>

Hello people. I am trying to implement an actor critic network using Flux. However for some reason my network is not being updated. Here is a sample from the code. state\_dim1 = 14 output\_dim = 1 function actor\_model(sta…

---

## [Why isn't JuMP.register named register!](https://discourse.julialang.org/t/why-isnt-jump-register-named-register/87456)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 3\
**Last updated:** [September 19, 2022, 5:57am UTC](https://discourse.julialang.org/t/why-isnt-jump-register-named-register/87456 "2022-09-19T05:57:17Z")

</div>

register modifies its argument model, so the function would normally end in !. Why isn’t this function named register!?

---

## [Tabular MDP/Q-learning solver: Reward Matrix R(s, a, s') vs. R(s, a)](https://discourse.julialang.org/t/tabular-mdp-q-learning-solver-reward-matrix-r-s-a-s-vs-r-s-a/87457)

<div class="topic-metadata">

**Author:** [@Richard\_Wright](https://discourse.julialang.org/u/Richard_Wright)\
**Replies:** 0\
**Last updated:** [September 19, 2022, 4:52am UTC](https://discourse.julialang.org/t/tabular-mdp-q-learning-solver-reward-matrix-r-s-a-s-vs-r-s-a/87457 "2022-09-19T04:52:51Z")

</div>

Hello Folks, I am using the POMDP package along with the TabularTDLearning package In the first part of the problem I worked out a 3D transition matrix T(s’, a, s) and a 2D reward matrix R(s, a). Then formulated it as …

---

## [Add columns to DataFrame](https://discourse.julialang.org/t/add-columns-to-dataframe/49305)

<div class="topic-metadata">

**Author:** [@Smith](https://discourse.julialang.org/u/Smith)\
**Replies:** 5\
**Last updated:** [September 19, 2022, 4:47am UTC](https://discourse.julialang.org/t/add-columns-to-dataframe/49305 "2022-09-19T04:47:41Z")

</div>

I want to add columns to a dataframe iteratively in a loop and assign them a name. The code below seems to add one column to the dataframe containing value of p at the last iteration and name of the column appears as col…

---

## [Broadcast question](https://discourse.julialang.org/t/broadcast-question/87210)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 2\
**Last updated:** [September 19, 2022, 3:09am UTC](https://discourse.julialang.org/t/broadcast-question/87210 "2022-09-19T03:09:04Z")

</div>

I got this off CUDA.jl…/test/texture.jl (altered a bit) Tex = @pipe rand(Float32,10) |\> CuTextureArray |\> CuTexture(\_, interpolation=CUDA.LinearInterpolation()) Idx = rand(Float32,10) .+1 |\> CuArray …

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

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