# Specific Domains

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

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

**Page:** 180

---

## [NeuralPDE.jl GPU example returns "ERROR: UndefVarError: \`Adam\` not defined"](https://discourse.julialang.org/t/neuralpde-jl-gpu-example-returns-error-undefvarerror-adam-not-defined/101501)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 1\
**Last updated:** [July 12, 2023, 4:23pm UTC](https://discourse.julialang.org/t/neuralpde-jl-gpu-example-returns-error-undefvarerror-adam-not-defined/101501 "2023-07-12T16:23:05Z")

</div>

Hello everyone, I’m trying to run the example from NeuralPDE: https://neuralpde.sciml.ai/stable/tutorials/gpu/ However when I run the line: res = Optimization.solve(prob,Adam(0.01);callback = callback,maxiters=2500) …

---

## [Heatmap with mousepicking	no axis markings and labels](https://discourse.julialang.org/t/heatmap-with-mousepicking-no-axis-markings-and-labels/101521)

<div class="topic-metadata">

**Author:** [@Wulf](https://discourse.julialang.org/u/Wulf)\
**Replies:** 2\
**Last updated:** [July 12, 2023, 2:49pm UTC](https://discourse.julialang.org/t/heatmap-with-mousepicking-no-axis-markings-and-labels/101521 "2023-07-12T14:49:29Z")

</div>

I output a heatmap, points and lines, to a scene in order to allow mouse interactions similar to this example. http://juliaplots.org/MakieReferenceImages/gallery//mouse\_picking/index.html However contrary to the exampl…

---

## [Serve csv files in a directory as web pages with auto updated index pages](https://discourse.julialang.org/t/serve-csv-files-in-a-directory-as-web-pages-with-auto-updated-index-pages/101525)

<div class="topic-metadata">

**Author:** [@xgdgsc](https://discourse.julialang.org/u/xgdgsc)\
**Replies:** 2\
**Last updated:** [July 12, 2023, 2:41pm UTC](https://discourse.julialang.org/t/serve-csv-files-in-a-directory-as-web-pages-with-auto-updated-index-pages/101525 "2023-07-12T14:41:58Z")

</div>

Say I have a directory to store experiment results as csv files. Is there a lightweight framework that can serve those dynamically increasing/updated files as web pages with auto generated index pages according to the su…

---

## [Differential Equations.jl ODEProblem exceedingly slow](https://discourse.julialang.org/t/differential-equations-jl-odeproblem-exceedingly-slow/101500)

<div class="topic-metadata">

**Author:** [@WillHWThompson](https://discourse.julialang.org/u/WillHWThompson)\
**Replies:** 5\
**Last updated:** [July 12, 2023, 2:12pm UTC](https://discourse.julialang.org/t/differential-equations-jl-odeproblem-exceedingly-slow/101500 "2023-07-12T14:12:04Z")

</div>

I am trying to numerically integrate a set of master equations with DifferentialEquations.jl I have defined the differential equation like: function voter\_model\_ame!(dG,G,t,p) N,U = size(G) for n\_prime=1:N,u\_p…

---

## [Unexpected behaviour with Flux](https://discourse.julialang.org/t/unexpected-behaviour-with-flux/101527)

<div class="topic-metadata">

**Author:** [@gforchini](https://discourse.julialang.org/u/gforchini)\
**Replies:** 0\
**Last updated:** [July 12, 2023, 11:21am UTC](https://discourse.julialang.org/t/unexpected-behaviour-with-flux/101527 "2023-07-12T11:21:04Z")

</div>

I have notice a strange behaviour in Flux, and wonder if it is what should be expected or not. This is part of a WGAN. If D is defined by chaining Dense layers, everything works well. using Flux, Random, Statistics usi…

---

## [Makie: Color and theme for errorbars](https://discourse.julialang.org/t/makie-color-and-theme-for-errorbars/101428)

<div class="topic-metadata">

**Author:** [@barucden](https://discourse.julialang.org/u/barucden)\
**Replies:** 3\
**Last updated:** [July 12, 2023, 9:19am UTC](https://discourse.julialang.org/t/makie-color-and-theme-for-errorbars/101428 "2023-07-12T09:19:37Z")

</div>

Hi, I have two questions about errorbars in Makie. Consider the following example: using CairoMakie set\_theme!(Theme( Lines=(linewidth = 4,), ErrorBars=(linewidth = 4,) )) x = \[1, 2, 3, 4, 5\] y\_A = \[1, 2, 1, …

---

## [Terminology: "multi branch neural network" or what?](https://discourse.julialang.org/t/terminology-multi-branch-neural-network-or-what/101396)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 6\
**Last updated:** [July 12, 2023, 8:56am UTC](https://discourse.julialang.org/t/terminology-multi-branch-neural-network-or-what/101396 "2023-07-12T08:56:40Z")

</div>

Hello, which is the correct name for a neural network architecture where multiple “branches” are learn, possibly but not necessarily togher, and each branch “ends” with an encoding representation of the relative features…

---

## [Large memory usage in JuMP](https://discourse.julialang.org/t/large-memory-usage-in-jump/101491)

<div class="topic-metadata">

**Author:** [@leima0521](https://discourse.julialang.org/u/leima0521)\
**Replies:** 1\
**Last updated:** [July 12, 2023, 1:35am UTC](https://discourse.julialang.org/t/large-memory-usage-in-jump/101491 "2023-07-12T01:35:44Z")

</div>

Hi, I am using JuMP to run this optimization script. It uses almost 3G memory for this small test dataset. How can I figure out which part uses the most memory and how can I reduce the memory usage? I will use much larg…

---

## [JuMP devs expected reply to GAMS Comparative Analysis material](https://discourse.julialang.org/t/jump-devs-expected-reply-to-gams-comparative-analysis-material/101489)

<div class="topic-metadata">

**Author:** [@algunion](https://discourse.julialang.org/u/algunion)\
**Replies:** 2\
**Last updated:** [July 12, 2023, 1:12am UTC](https://discourse.julialang.org/t/jump-devs-expected-reply-to-gams-comparative-analysis-material/101489 "2023-07-12T01:12:10Z")

</div>

Continuing the discussion from Performance: Julia/JuMP vs. Python/Pyomo: I do not intend to start a topic that will lead to a great amount of popcorn being consumed. I noticed this tweet today and encountered the topic…

---

## [How do I associate a math operation with node of wiring diagram?](https://discourse.julialang.org/t/how-do-i-associate-a-math-operation-with-node-of-wiring-diagram/101503)

<div class="topic-metadata">

**Author:** [@nikit\_goku](https://discourse.julialang.org/u/nikit_goku)\
**Replies:** 0\
**Last updated:** [July 12, 2023, 12:54am UTC](https://discourse.julialang.org/t/how-do-i-associate-a-math-operation-with-node-of-wiring-diagram/101503 "2023-07-12T00:54:59Z")

</div>

Hello, I am trying to associate a mathematical operation with the node of the wiring diagram, for example I may want to pass an integer as an input, and want take a square root of that integer and return the value at the…

---

## [CUDA profiling tools crashing](https://discourse.julialang.org/t/cuda-profiling-tools-crashing/101458)

<div class="topic-metadata">

**Author:** [@smartalecH](https://discourse.julialang.org/u/smartalecH)\
**Replies:** 2\
**Last updated:** [July 11, 2023, 8:16pm UTC](https://discourse.julialang.org/t/cuda-profiling-tools-crashing/101458 "2023-07-11T20:16:45Z")

</div>

Per the docs, I’m trying to get some extra insight into my kernels using some of CUDA’s profiling tools. I’ve tried running $ nsys launch julia along with $ ncu --mode=launch julia but both commands crash with the f…

---

## [How can I add categorical labels in a grouped bar plot?](https://discourse.julialang.org/t/how-can-i-add-categorical-labels-in-a-grouped-bar-plot/101494)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 3\
**Last updated:** [July 11, 2023, 8:02pm UTC](https://discourse.julialang.org/t/how-can-i-add-categorical-labels-in-a-grouped-bar-plot/101494 "2023-07-11T20:02:22Z")

</div>

Hi all! I’m trying to produce a grouped bar plot, as shown here: julia\> results 12-element Vector{NamedTuple{(:program, :mean, :stddev, :score), Tuple{String, Float64, Float64, Float64}}}: (program = "fact\_ite\_#1", me…

---

## [Two lines one label - Makie](https://discourse.julialang.org/t/two-lines-one-label-makie/101490)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 3\
**Last updated:** [July 11, 2023, 4:34pm UTC](https://discourse.julialang.org/t/two-lines-one-label-makie/101490 "2023-07-11T16:34:36Z")

</div>

Hi, From the basic tutorials we have the code fig = Figure() ax1, l1 = lines(fig\[1, 1\], 0..10, sin, color = :red) ax2, l2 = lines(fig\[2, 1\], 0..10, cos, color = :blue) Legend(fig\[1:2, 2\], \[l1, l2\], \["sin", "cos"\]) fig …

---

## [How can I move the x axis and ticks at top of the graph?](https://discourse.julialang.org/t/how-can-i-move-the-x-axis-and-ticks-at-top-of-the-graph/101479)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 2\
**Last updated:** [July 11, 2023, 3:45pm UTC](https://discourse.julialang.org/t/how-can-i-move-the-x-axis-and-ticks-at-top-of-the-graph/101479 "2023-07-11T15:45:04Z")

</div>

Hi all! I’m trying to plot a heatmap of a distance matrix: julia\> distance\_matrix\_measures 12×12 Matrix{Float64}: 0.0 0.0242429 0.0217801 … 0.0443951 0.0124709 0.0114215 0.0242429 0.0 0.0024…

---

## [How to avoid global variables in JuMP](https://discourse.julialang.org/t/how-to-avoid-global-variables-in-jump/101488)

<div class="topic-metadata">

**Author:** [@leima0521](https://discourse.julialang.org/u/leima0521)\
**Replies:** 1\
**Last updated:** [July 11, 2023, 3:38pm UTC](https://discourse.julialang.org/t/how-to-avoid-global-variables-in-jump/101488 "2023-07-11T15:38:33Z")

</div>

I am reading the performance tips of JuMP. It says “The most important rule is to avoid global variables”, but I am not sure what it means in the JuMP context and how to implement it. In the example below, the value of …

---

## [JuMP: many small problems or one combined problem?](https://discourse.julialang.org/t/jump-many-small-problems-or-one-combined-problem/101415)

<div class="topic-metadata">

**Author:** [@tbeason](https://discourse.julialang.org/u/tbeason)\
**Replies:** 4\
**Last updated:** [July 11, 2023, 1:29pm UTC](https://discourse.julialang.org/t/jump-many-small-problems-or-one-combined-problem/101415 "2023-07-11T13:29:12Z")

</div>

I am solving many independent assignment/matching problems using JuMP. Since the problems are independent, it is theoretically no different if I solve each of them separately or if I solve one big combined problem. Howev…

---

## [How to draw directed acyclic graphs (DAGs) in ASCII code for terminal display in Julia?](https://discourse.julialang.org/t/how-to-draw-directed-acyclic-graphs-dags-in-ascii-code-for-terminal-display-in-julia/101373)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 8\
**Last updated:** [July 11, 2023, 9:49am UTC](https://discourse.julialang.org/t/how-to-draw-directed-acyclic-graphs-dags-in-ascii-code-for-terminal-display-in-julia/101373 "2023-07-11T09:49:13Z")

</div>

I’m working on a project in Julia where I need to visualize Directed Acyclic Graphs (DAG) directly in the terminal. I’m searching for a way to represent these graphs using ASCII characters. The idea is to have nodes and…

---

## [HTTP.request("POST"...) seems to be using "GET" instead](https://discourse.julialang.org/t/http-request-post-seems-to-be-using-get-instead/101461)

<div class="topic-metadata">

**Author:** [@Titas22](https://discourse.julialang.org/u/Titas22)\
**Replies:** 4\
**Last updated:** [July 11, 2023, 9:19am UTC](https://discourse.julialang.org/t/http-request-post-seems-to-be-using-get-instead/101461 "2023-07-11T09:19:27Z")

</div>

Hi, I’m having an issue with a POST request using HTTP.jl where it seems to be doing a GET request instead. Versions: Julia 1.9.0 HTTP.jl 1.7.3 Code: import HTTP response = HTTP.request("POST", "http://fiaweather.m…

---

## [\[ANN\] Training course “Julia for HPC” in Stuttgart, Germany on Oct 24-27, 2023](https://discourse.julialang.org/t/ann-training-course-julia-for-hpc-in-stuttgart-germany-on-oct-24-27-2023/101251)

<div class="topic-metadata">

**Author:** [@sloede](https://discourse.julialang.org/u/sloede)\
**Replies:** 1\
**Last updated:** [July 11, 2023, 8:22am UTC](https://discourse.julialang.org/t/ann-training-course-julia-for-hpc-in-stuttgart-germany-on-oct-24-27-2023/101251 "2023-07-11T08:22:15Z")

</div>

After the great positive feedback we received at last year’s Julia for HPC training course at HLRS, there will be another opportunity to learn more about using Julia for high-performance computing this fall! At HLRS, we…

---

## [Positioning \`contour\_labels\` for contour plots](https://discourse.julialang.org/t/positioning-contour-labels-for-contour-plots/101265)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 8\
**Last updated:** [July 11, 2023, 7:58am UTC](https://discourse.julialang.org/t/positioning-contour-labels-for-contour-plots/101265 "2023-07-11T07:58:29Z")

</div>

Folks, I am using Plots.jl with GR backend. Basically, what I am trying to do is to draw the lines of a 2d curvilinear coordinate system. Specifically, I do two contour plots on the same axes, that give me two sets of …

---

## [Likelihood of a set of events originating from a set of sources](https://discourse.julialang.org/t/likelihood-of-a-set-of-events-originating-from-a-set-of-sources/101455)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 0\
**Last updated:** [July 10, 2023, 9:31pm UTC](https://discourse.julialang.org/t/likelihood-of-a-set-of-events-originating-from-a-set-of-sources/101455 "2023-07-10T21:31:25Z")

</div>

I’m hoping there’s a more performant way to do this, but I’m missing something. I’m migrating some MATLAB code that uses reversible-jump MCMC to produce optimal sets of point sources to explain observed events (2d coord…

---

## [Calling Julia from PyTorch](https://discourse.julialang.org/t/calling-julia-from-pytorch/101357)

<div class="topic-metadata">

**Author:** [@AMart](https://discourse.julialang.org/u/AMart)\
**Replies:** 4\
**Last updated:** [July 10, 2023, 7:31pm UTC](https://discourse.julialang.org/t/calling-julia-from-pytorch/101357 "2023-07-10T19:31:35Z")

</div>

Hello I have written a GPU kernel in Julia that I use to accelerate a custom layer that I have written to be used with PyTorch. Everything works great, except when I try to use DDP from PyTorch. Here is a simple MWE tha…

---

## [How do I reduce into an array index on a GPU?](https://discourse.julialang.org/t/how-do-i-reduce-into-an-array-index-on-a-gpu/101451)

<div class="topic-metadata">

**Author:** [@ejmeitz](https://discourse.julialang.org/u/ejmeitz)\
**Replies:** 0\
**Last updated:** [July 10, 2023, 7:20pm UTC](https://discourse.julialang.org/t/how-do-i-reduce-into-an-array-index-on-a-gpu/101451 "2023-07-10T19:20:09Z")

</div>

Hello all, This might be too niche but I am doing the following sparse tenor times matrix multiplication: A(n,m,l) = B(i,j,k) C(i,n) C(j,m)C(l,k) I can calculate a single element of the matrix A: A\[n,m,l\] where B is a…

---

## [Behaviour of legend in AlgebraOfGraphics.jl](https://discourse.julialang.org/t/behaviour-of-legend-in-algebraofgraphics-jl/101371)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 2\
**Last updated:** [July 10, 2023, 5:13pm UTC](https://discourse.julialang.org/t/behaviour-of-legend-in-algebraofgraphics-jl/101371 "2023-07-10T17:13:53Z")

</div>

Hi, I have made a MWE to show the behaviour I would like to avoid. I am plotting two curves, one of them with points and errobars, the other with lines. There are two problems. When avoiding the errorbars, in the legend …

---

## [Calculating first integral](https://discourse.julialang.org/t/calculating-first-integral/101267)

<div class="topic-metadata">

**Author:** [@Sergey\_Novak](https://discourse.julialang.org/u/Sergey_Novak)\
**Replies:** 2\
**Last updated:** [July 10, 2023, 10:11am UTC](https://discourse.julialang.org/t/calculating-first-integral/101267 "2023-07-10T10:11:31Z")

</div>

Hello! I have an ODE system of 7 equations, and calculating the first integral analytically is a bit difficult for me. Are there packages for calculating the first integral of the ODE system? Thank you for help

---

## [Method of Lines for simple 2D Boussinesq convection?](https://discourse.julialang.org/t/method-of-lines-for-simple-2d-boussinesq-convection/101416)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 3\
**Last updated:** [July 10, 2023, 8:41am UTC](https://discourse.julialang.org/t/method-of-lines-for-simple-2d-boussinesq-convection/101416 "2023-07-10T08:41:51Z")

</div>

Hi everyone, I’m wondering if the method of lines can be used for a simple 2D convection: \\begin{aligned} \\frac{\\partial u}{\\partial x}+\\frac{\\partial w}{\\partial z} & =0 \\\\ \\frac{\\partial p}{\\partial x} & =\\frac{\\par…

---

## [Is it possible to incorporate the relational algebra technique into JuMP in the future to expedite model generation?](https://discourse.julialang.org/t/is-it-possible-to-incorporate-the-relational-algebra-technique-into-jump-in-the-future-to-expedite-model-generation/101343)

<div class="topic-metadata">

**Author:** [@JackaChou](https://discourse.julialang.org/u/JackaChou)\
**Replies:** 5\
**Last updated:** [July 10, 2023, 8:27am UTC](https://discourse.julialang.org/t/is-it-possible-to-incorporate-the-relational-algebra-technique-into-jump-in-the-future-to-expedite-model-generation/101343 "2023-07-10T08:27:20Z")

</div>

Recently, I came across a post titled “Performance in Optimization Models: A Comparative Analysis of GAMS, Pyomo, GurobiPy, and JuMP” (source: GAMS Blog) where it was observed that the commercial software GAMS demonstrat…

---

## ["equation(s) resulted in a non-finite number.." using MethodOfLines](https://discourse.julialang.org/t/equation-s-resulted-in-a-non-finite-number-using-methodoflines/101408)

<div class="topic-metadata">

**Author:** [@PeX](https://discourse.julialang.org/u/PeX)\
**Replies:** 1\
**Last updated:** [July 10, 2023, 8:08am UTC](https://discourse.julialang.org/t/equation-s-resulted-in-a-non-finite-number-using-methodoflines/101408 "2023-07-10T08:08:20Z")

</div>

Hi all, It’s my first time using MethodOfLines so I’m not sure how to debug it. The (nondimensionalized) equations I’m trying to solve are: \\begin{aligned} & \\frac{\\partial u}{\\partial x}+\\frac{\\partial w}{\\partial z}…

---

## [CUDA on JuliaHub](https://discourse.julialang.org/t/cuda-on-juliahub/99028)

<div class="topic-metadata">

**Author:** [@Lincoln\_Hannah](https://discourse.julialang.org/u/Lincoln_Hannah)\
**Replies:** 4\
**Last updated:** [July 10, 2023, 6:36am UTC](https://discourse.julialang.org/t/cuda-on-juliahub/99028 "2023-07-10T06:36:43Z")

</div>

Using CUDA on JuliaHub gives the error julia\> using CUDA \[ Info: Precompiling CUDA \[052768ef-5323-5732-b1bb-66c8b64840ba\] ┌ Error: JULIA\_CUDA\_VERSION is deprecated. Call \`CUDA.jl.set\_runtime\_version!\` to use a differen…

---

## [Set fixed values in optimization](https://discourse.julialang.org/t/set-fixed-values-in-optimization/101337)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 5\
**Last updated:** [July 9, 2023, 8:25pm UTC](https://discourse.julialang.org/t/set-fixed-values-in-optimization/101337 "2023-07-09T20:25:15Z")

</div>

Hi, I am doing topology optimization using Nlopt. it seems that it incorrectly delete material under load line? do you know how can i silve this issue? also how can i set constant values in my domain. for example force t…

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

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