# Specific Domains

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

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

**Page:** 176

---

## [JuMPeR and Grisu](https://discourse.julialang.org/t/jumper-and-grisu/102258)

<div class="topic-metadata">

**Author:** [@edwinmeriaux](https://discourse.julialang.org/u/edwinmeriaux)\
**Replies:** 8\
**Last updated:** [July 31, 2023, 12:57pm UTC](https://discourse.julialang.org/t/jumper-and-grisu/102258 "2023-07-31T12:57:40Z")

</div>

Hello! I am very new to Julia and I just downloaded it today! I’m trying to use JuMPeR for robust optimization cases. But JuMPeR requires Grisu which i understand it no longer used. So I found the work around but it doe…

---

## [When calling PyTorch using PyCall or pythoncall, I run out of memory on GPU cards](https://discourse.julialang.org/t/when-calling-pytorch-using-pycall-or-pythoncall-i-run-out-of-memory-on-gpu-cards/102290)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 1\
**Last updated:** [July 31, 2023, 8:23am UTC](https://discourse.julialang.org/t/when-calling-pytorch-using-pycall-or-pythoncall-i-run-out-of-memory-on-gpu-cards/102290 "2023-07-31T08:23:48Z")

</div>

Hi All, I am inferfacing to PyTorch using PythonCall (or PyCall) with the data moved between Julia and Python by DLPack.jl. I use PyTorch to compute gradients and the rest (e.g. optimization) is handled by Julia, since …

---

## [PDF version used when saving a figure in CairoMakie](https://discourse.julialang.org/t/pdf-version-used-when-saving-a-figure-in-cairomakie/102282)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 2\
**Last updated:** [July 31, 2023, 7:24am UTC](https://discourse.julialang.org/t/pdf-version-used-when-saving-a-figure-in-cairomakie/102282 "2023-07-31T07:24:32Z")

</div>

I have a technical question about the PDF version that is used when CairoMakie saves a figure. I notice CairoMakie saves using PDF version 1.5\[1\]. When I combine several assets together in, say, Affinity Publisher to cre…

---

## [Dash app precompilation](https://discourse.julialang.org/t/dash-app-precompilation/99529)

<div class="topic-metadata">

**Author:** [@Maucejo](https://discourse.julialang.org/u/Maucejo)\
**Replies:** 2\
**Last updated:** [July 30, 2023, 3:26pm UTC](https://discourse.julialang.org/t/dash-app-precompilation/99529 "2023-07-30T15:26:27Z")

</div>

Dear all, I have created a Dash application as a Julia module (say myApp.jl). This module has its own environment that I update from time to time. However, when I update the environment, the precompilation step of myApp…

---

## [Solving a system of PDEs with MOL memory allocation problems](https://discourse.julialang.org/t/solving-a-system-of-pdes-with-mol-memory-allocation-problems/102199)

<div class="topic-metadata">

**Author:** [@Hugo\_V](https://discourse.julialang.org/u/Hugo_V)\
**Replies:** 1\
**Last updated:** [July 29, 2023, 3:15pm UTC](https://discourse.julialang.org/t/solving-a-system-of-pdes-with-mol-memory-allocation-problems/102199 "2023-07-29T15:15:03Z")

</div>

Hello, I´m new user of Julia and I´m trying to solve a system of PDES non lineal with method of lines. To check it I´m using a static solution not dependent on time. The idea is to recover to t\_i+1 the same solutions. I…

---

## [Forcing inequallity in DAE](https://discourse.julialang.org/t/forcing-inequallity-in-dae/102205)

<div class="topic-metadata">

**Author:** [@tommy\_J](https://discourse.julialang.org/u/tommy_J)\
**Replies:** 1\
**Last updated:** [July 28, 2023, 10:32pm UTC](https://discourse.julialang.org/t/forcing-inequallity-in-dae/102205 "2023-07-28T22:32:34Z")

</div>

Hello everyone, I am trying to understand DAE example in here. I would like to ask the following: In the example, the constraint used is: 1 = y\_1 + y\_2 + y\_3. Is is also possible to enforce that y\_1, y\_2, y\_3 \\geq 0? …

---

## [How does JuMP export function like set\_lower\_bound()?](https://discourse.julialang.org/t/how-does-jump-export-function-like-set-lower-bound/102216)

<div class="topic-metadata">

**Author:** [@shawn\_T](https://discourse.julialang.org/u/shawn_T)\
**Replies:** 2\
**Last updated:** [July 28, 2023, 10:18pm UTC](https://discourse.julialang.org/t/how-does-jump-export-function-like-set-lower-bound/102216 "2023-07-28T22:18:26Z")

</div>

Hi all, I am learning how JuMP package enables the use of functions like set\_lower\_bound(), these functions are defined in JuMP and could be called by the user from REPL. But from the file where set\_lower\_bound() is de…

---

## [How to generate gif from a vector of pre-made plots and save to file?](https://discourse.julialang.org/t/how-to-generate-gif-from-a-vector-of-pre-made-plots-and-save-to-file/102183)

<div class="topic-metadata">

**Author:** [@jinfreedom](https://discourse.julialang.org/u/jinfreedom)\
**Replies:** 2\
**Last updated:** [July 28, 2023, 10:00pm UTC](https://discourse.julialang.org/t/how-to-generate-gif-from-a-vector-of-pre-made-plots-and-save-to-file/102183 "2023-07-28T22:00:27Z")

</div>

Hi, I’m trying to generate a gif animation from a sequence of plots. Instead of using the @animate or @gif macro while plotting in a loop, all plots are produced ahead of time and saved to a vector of type Plots.Plot. I …

---

## [Creating a variable inside a macro with specified name](https://discourse.julialang.org/t/creating-a-variable-inside-a-macro-with-specified-name/102187)

<div class="topic-metadata">

**Author:** [@shawn\_T](https://discourse.julialang.org/u/shawn_T)\
**Replies:** 7\
**Last updated:** [July 28, 2023, 5:44pm UTC](https://discourse.julialang.org/t/creating-a-variable-inside-a-macro-with-specified-name/102187 "2023-07-28T17:44:50Z")

</div>

Hi all, I am trying to create a variable inside a Julia macro, then return the variable to the REPL, the variable should also have the name I specified from the macro input argument. I have two tests, the first test fun…

---

## [PLutoUI -- Can I make a Slider With a Text Box Option](https://discourse.julialang.org/t/plutoui-can-i-make-a-slider-with-a-text-box-option/102194)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 3\
**Last updated:** [July 28, 2023, 1:55pm UTC](https://discourse.julialang.org/t/plutoui-can-i-make-a-slider-with-a-text-box-option/102194 "2023-07-28T13:55:30Z")

</div>

In a Pluto Notebook, I would like to have a value driven by a slider, but I would also like the option to override that slider value with a text input. Or have them linked in someway. Any thoughts on how to accomplish …

---

## [Speed Comparison Python v Julia for custom layers](https://discourse.julialang.org/t/speed-comparison-python-v-julia-for-custom-layers/101922)

<div class="topic-metadata">

**Author:** [@willleeney](https://discourse.julialang.org/u/willleeney)\
**Replies:** 25\
**Last updated:** [July 28, 2023, 8:56am UTC](https://discourse.julialang.org/t/speed-comparison-python-v-julia-for-custom-layers/101922 "2023-07-28T08:56:36Z")

</div>

New to Julia and looking at comparisons of speed in forward pass with pytorch. I want to optimise performance of training a neural network that will contain custom layers. I have provide some code for an example. I want …

---

## [How to take (mathematical) gradients with ModelingTookit.jl](https://discourse.julialang.org/t/how-to-take-mathematical-gradients-with-modelingtookit-jl/102161)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 8:30pm UTC](https://discourse.julialang.org/t/how-to-take-mathematical-gradients-with-modelingtookit-jl/102161 "2023-07-27T20:30:46Z")

</div>

Consider a Hamiltonian H=x^2 + y^2. I want automatically calculate Hamilton’s equation of motion by taking the partial derivatives wrt to x and y. How to do this with ModelingToolkit.jl? I cannot get calculate\_gradient t…

---

## [Load local page into Blink.jl](https://discourse.julialang.org/t/load-local-page-into-blink-jl/102151)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 2:23pm UTC](https://discourse.julialang.org/t/load-local-page-into-blink-jl/102151 "2023-07-27T14:23:27Z")

</div>

In am starting to learn Blink.jl, and would like to load a local HTML document into the Blink window. using Blink winpath = realpath("html/mainwin.html") @assert isfile(winpath) w = Window() loadurl(w, winpath) It open…

---

## [Memory Problem with JuMP and pmap](https://discourse.julialang.org/t/memory-problem-with-jump-and-pmap/102153)

<div class="topic-metadata">

**Author:** [@Mkloster](https://discourse.julialang.org/u/Mkloster)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 1:40pm UTC](https://discourse.julialang.org/t/memory-problem-with-jump-and-pmap/102153 "2023-07-27T13:40:06Z")

</div>

Hallo, i want to solve some JuMP models in parallel. For this i tryed using pmap from the Distributed libarary. Here you can see a simple example: using JuMP, SCIP using Distributed addprocs(4) @everywhere begin …

---

## [Clarabel optimization brings different result from other optimizers](https://discourse.julialang.org/t/clarabel-optimization-brings-different-result-from-other-optimizers/101349)

<div class="topic-metadata">

**Author:** [@thiagoselias](https://discourse.julialang.org/u/thiagoselias)\
**Replies:** 5\
**Last updated:** [July 27, 2023, 1:16pm UTC](https://discourse.julialang.org/t/clarabel-optimization-brings-different-result-from-other-optimizers/101349 "2023-07-27T13:16:48Z")

</div>

Because Clarabel gives different results from other optimizers, since the same implementation was used, only changing the name of the solver in JuMP? \*\*-------------------------------------------------------------\*\* \*\* …

---

## [How to introduce an if sentence with optimization variables](https://discourse.julialang.org/t/how-to-introduce-an-if-sentence-with-optimization-variables/102130)

<div class="topic-metadata">

**Author:** [@PatrickeTownsend](https://discourse.julialang.org/u/PatrickeTownsend)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 1:15pm UTC](https://discourse.julialang.org/t/how-to-introduce-an-if-sentence-with-optimization-variables/102130 "2023-07-27T13:15:45Z")

</div>

Hello again, For and electric propulsion system optimization, i’m trying to impose zero thrust during eclipse phases, I have this function created: function Step\_eclipse(j,r...,r\_par...) Re = 6378 if r\_par\[j\] +…

---

## [How to use Catlab, WiringDiagrams for my explicit purpose?](https://discourse.julialang.org/t/how-to-use-catlab-wiringdiagrams-for-my-explicit-purpose/101172)

<div class="topic-metadata">

**Author:** [@Tillmann\_Bosch](https://discourse.julialang.org/u/Tillmann_Bosch)\
**Replies:** 2\
**Last updated:** [July 27, 2023, 9:49am UTC](https://discourse.julialang.org/t/how-to-use-catlab-wiringdiagrams-for-my-explicit-purpose/101172 "2023-07-27T09:49:52Z")

</div>

Hey there! I want to build a little framework to model calculation flows. The image I appended shows an example of a renuve and costs calculation, which finally calculates some profit. Structurally this is a direct…

---

## [Distributing LLM over multiple GPUs](https://discourse.julialang.org/t/distributing-llm-over-multiple-gpus/101866)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 10\
**Last updated:** [July 26, 2023, 7:12pm UTC](https://discourse.julialang.org/t/distributing-llm-over-multiple-gpus/101866 "2023-07-26T19:12:53Z")

</div>

Hi all, I am experimenting with gradient optimization of prompts for large language models using an excellent Transformers.jl library. I know that most of the people would say that I should switch to PyTorch (or Jax) an…

---

## [Mix-mode training of large languages models in Julia](https://discourse.julialang.org/t/mix-mode-training-of-large-languages-models-in-julia/102090)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 7\
**Last updated:** [July 26, 2023, 6:47pm UTC](https://discourse.julialang.org/t/mix-mode-training-of-large-languages-models-in-julia/102090 "2023-07-26T18:47:00Z")

</div>

I am toying with Large Language models and amazing Transformers.jl. And although I am forced to call PyTorch because some models are not supported by Transformers.jl (falcon) and due to some external forces, I got intere…

---

## [Code works on CPU but not on GPU](https://discourse.julialang.org/t/code-works-on-cpu-but-not-on-gpu/102005)

<div class="topic-metadata">

**Author:** [@marcofrancis](https://discourse.julialang.org/u/marcofrancis)\
**Replies:** 6\
**Last updated:** [July 26, 2023, 4:20pm UTC](https://discourse.julialang.org/t/code-works-on-cpu-but-not-on-gpu/102005 "2023-07-26T16:20:06Z")

</div>

Hi, I’m trying to implement a PINN (physiscs informed neural network) to solve the heat equation in Julia. I come from pytorch and so my code probably doesn’t look very Julia-like. I managed to get a version of my code …

---

## [Help needed with AmplNLWriter](https://discourse.julialang.org/t/help-needed-with-amplnlwriter/102088)

<div class="topic-metadata">

**Author:** [@EmilyBrewer](https://discourse.julialang.org/u/EmilyBrewer)\
**Replies:** 2\
**Last updated:** [July 26, 2023, 2:32pm UTC](https://discourse.julialang.org/t/help-needed-with-amplnlwriter/102088 "2023-07-26T14:32:36Z")

</div>

Hello, I am trying to use “Bonmin” or “Couenne” from AmplNLWriter in Julia. My code is attached below. using JuMP, AmplNLWriter, Couenne\_jll #model = Model(() -\> AmplNLWriter.Optimizer("bonmin")) model = Model(() -\> …

---

## [Fusing measurement results](https://discourse.julialang.org/t/fusing-measurement-results/102100)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 3\
**Last updated:** [July 26, 2023, 11:12am UTC](https://discourse.julialang.org/t/fusing-measurement-results/102100 "2023-07-26T11:12:21Z")

</div>

I have n measurements, statistically independant with n values x\_i and n standard deviations \\sigma\_i. How can I combine them to get one value and one standard deviation?

---

## [Makie - Example of simple type recipe not working](https://discourse.julialang.org/t/makie-example-of-simple-type-recipe-not-working/102049)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 10\
**Last updated:** [July 26, 2023, 12:43am UTC](https://discourse.julialang.org/t/makie-example-of-simple-type-recipe-not-working/102049 "2023-07-26T00:43:27Z")

</div>

The docs explain how to write “type recipes”. Can you please provide a MWE with a completely new type? As you can see below, just following the instructions in the docs leads to errors: import Makie # custom type struc…

---

## ['update\_varmap!' Not defined in MethodOfLines](https://discourse.julialang.org/t/update-varmap-not-defined-in-methodoflines/102063)

<div class="topic-metadata">

**Author:** [@WillSimpkins](https://discourse.julialang.org/u/WillSimpkins)\
**Replies:** 1\
**Last updated:** [July 25, 2023, 11:35pm UTC](https://discourse.julialang.org/t/update-varmap-not-defined-in-methodoflines/102063 "2023-07-25T23:35:53Z")

</div>

I am modelling a PDE describing the deformations of a beam, this has the form of a second order PDE in time along with an integral condition on the beam’s strain. I am attempting to discretise this using ModelingToolkit …

---

## [Is there any good way to call functions from a set of functions in a CUDA kernel](https://discourse.julialang.org/t/is-there-any-good-way-to-call-functions-from-a-set-of-functions-in-a-cuda-kernel/102051)

<div class="topic-metadata">

**Author:** [@huiyuxie](https://discourse.julialang.org/u/huiyuxie)\
**Replies:** 3\
**Last updated:** [July 25, 2023, 7:49pm UTC](https://discourse.julialang.org/t/is-there-any-good-way-to-call-functions-from-a-set-of-functions-in-a-cuda-kernel/102051 "2023-07-25T19:49:55Z")

</div>

Hi! I had some problem with calling functions from a function set in CUDA kernels. For example, if I define a function set like below and then call the kernel # Define function f1, f2, f3, f4, f5 ... # Create a NamedTu…

---

## [Optimizing small systems of NonLinear equations with Optim.jl](https://discourse.julialang.org/t/optimizing-small-systems-of-nonlinear-equations-with-optim-jl/102068)

<div class="topic-metadata">

**Author:** [@The\_Mastermage](https://discourse.julialang.org/u/The_Mastermage)\
**Replies:** 2\
**Last updated:** [July 25, 2023, 6:19pm UTC](https://discourse.julialang.org/t/optimizing-small-systems-of-nonlinear-equations-with-optim-jl/102068 "2023-07-25T18:19:06Z")

</div>

Hello there I have a very small system of nonlinear equation and i do not quite understand how I can use this using Optim.jl. So far I have only figured out how to do one equation but I have a system (3 Equations): The …

---

## [Can't make the animation work](https://discourse.julialang.org/t/cant-make-the-animation-work/101934)

<div class="topic-metadata">

**Author:** [@zff3141592](https://discourse.julialang.org/u/zff3141592)\
**Replies:** 8\
**Last updated:** [July 25, 2023, 11:44am UTC](https://discourse.julialang.org/t/cant-make-the-animation-work/101934 "2023-07-25T11:44:54Z")

</div>

using DifferentialEquations using Plots function rotchain!(du, u, p, x) # Differential equation of the rotating chain in 3D w, g, μ = p # Unpack the parameters du\[1\] = u\[2\] du\[2\] = -u\[2\]/x + (μ \* g) / (…

---

## [Does BBox work with GridLayout?](https://discourse.julialang.org/t/does-bbox-work-with-gridlayout/102023)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 3\
**Last updated:** [July 25, 2023, 11:03am UTC](https://discourse.julialang.org/t/does-bbox-work-with-gridlayout/102023 "2023-07-25T11:03:15Z")

</div>

I want to create a graph with multiple axis and move them across the plot. I worked perfectly with Figure(), but do not work with GridLayout(), which I need to make combined figure. How can I solve this problem? How it…

---

## [Testing whether data come from a Generalized Pareto Distribution](https://discourse.julialang.org/t/testing-whether-data-come-from-a-generalized-pareto-distribution/102008)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 6\
**Last updated:** [July 25, 2023, 8:17am UTC](https://discourse.julialang.org/t/testing-whether-data-come-from-a-generalized-pareto-distribution/102008 "2023-07-25T08:17:00Z")

</div>

Hi all, I am trying to perform a hypothesis test of whether some observed data X are coming from a Generalized Pareto Distribution or not. Naturally, tests from HypothesisTests.jl like the Kolmogorov Smirnov or the Ande…

---

## [Radial basis function kernel](https://discourse.julialang.org/t/radial-basis-function-kernel/102046)

<div class="topic-metadata">

**Author:** [@josemanuel22](https://discourse.julialang.org/u/josemanuel22)\
**Replies:** 2\
**Last updated:** [July 25, 2023, 7:43am UTC](https://discourse.julialang.org/t/radial-basis-function-kernel/102046 "2023-07-25T07:43:27Z")

</div>

Hello everyone, I am currently trying to code an MMD GAN (\[1705.08584\] MMD GAN: Towards Deeper Understanding of Moment Matching Network), but I would like to know if there is any package in Julia that directly implements…

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

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