# Specific Domains

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

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

**Page:** 64

---

## [Uncertainty propagation using MonteCarloMeasurements gives weird results](https://discourse.julialang.org/t/uncertainty-propagation-using-montecarlomeasurements-gives-weird-results/124745)

<div class="topic-metadata">

**Author:** [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Replies:** 8\
**Last updated:** [January 14, 2025, 6:39pm UTC](https://discourse.julialang.org/t/uncertainty-propagation-using-montecarlomeasurements-gives-weird-results/124745 "2025-01-14T18:39:47Z")

</div>

Hi! I am not familiar with MonteCarloMeasurements.jl, so I am probably doing something dumb, but I thought that it would be the good tool for what I want to do and I am getting some weird results. I am trying to calcul…

---

## [cudaMemcpyAsync: where is it used?](https://discourse.julialang.org/t/cudamemcpyasync-where-is-it-used/117967)

<div class="topic-metadata">

**Author:** [@wsshin](https://discourse.julialang.org/u/wsshin)\
**Replies:** 17\
**Last updated:** [January 14, 2025, 6:21pm UTC](https://discourse.julialang.org/t/cudamemcpyasync-where-is-it-used/117967 "2025-01-14T18:21:17Z")

</div>

I have a code written with CUDA.jl and I am trying to improve its performance. Upon CUDA.@profile, I learned that more than 60% of the host-side activity was spent on cudaMemcpyAsync: julia\> CUDA.@profile myfun(...) ..…

---

## [Lux, optimization on gpu](https://discourse.julialang.org/t/lux-optimization-on-gpu/124678)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 8\
**Last updated:** [January 13, 2025, 4:16pm UTC](https://discourse.julialang.org/t/lux-optimization-on-gpu/124678 "2025-01-13T16:16:57Z")

</div>

Hello I try to perform the example from Train NN with Sophia \[1\] on GPU I tried to get sample working on gpu by using CUDA, LuxCUDA x = rand(10,10) y = sin.(x) data = MLUtils.DataLoader((x, y), batchsize = 1) # Defin…

---

## [Reducing number of allocations](https://discourse.julialang.org/t/reducing-number-of-allocations/124646)

<div class="topic-metadata">

**Author:** [@arnauqb](https://discourse.julialang.org/u/arnauqb)\
**Replies:** 4\
**Last updated:** [January 13, 2025, 8:19am UTC](https://discourse.julialang.org/t/reducing-number-of-allocations/124646 "2025-01-13T08:19:52Z")

</div>

I am playing around with JuMP to compare its performance to pyomo. This is the model I am using: using JuMP using GLPK using LinearAlgebra using BenchmarkTools function run\_market\_opt(max\_production::AbstractVector{T},…

---

## [BlackBoxOptim - beginner's questions](https://discourse.julialang.org/t/blackboxoptim-beginners-questions/37013)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 16\
**Last updated:** [January 12, 2025, 9:07pm UTC](https://discourse.julialang.org/t/blackboxoptim-beginners-questions/37013 "2025-01-12T21:07:18Z")

</div>

I am new to solving optimization problems. So please excuse any ignorance in my questions. I am using BlackBoxOptim.jl, and I have a few questions: Initial guess and search range. I see that there is an optional arg…

---

## [Clarifying expected behavior of dynamic CUDA kernels](https://discourse.julialang.org/t/clarifying-expected-behavior-of-dynamic-cuda-kernels/124689)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 4\
**Last updated:** [January 12, 2025, 8:33pm UTC](https://discourse.julialang.org/t/clarifying-expected-behavior-of-dynamic-cuda-kernels/124689 "2025-01-12T20:33:18Z")

</div>

Dynamic Parallelism I’ve just learned about Dynamic Parallelism that is …useful for recursive algorithms, or for algorithms that otherwise need to dynamically spawn new work. So consider the following example: using…

---

## [US elections model implementation in Turing](https://discourse.julialang.org/t/us-elections-model-implementation-in-turing/49864)

<div class="topic-metadata">

**Author:** [@entr0pidelic](https://discourse.julialang.org/u/entr0pidelic)\
**Replies:** 4\
**Last updated:** [January 12, 2025, 4:01pm UTC](https://discourse.julialang.org/t/us-elections-model-implementation-in-turing/49864 "2025-01-12T16:01:39Z")

</div>

Hello guys, hope you are doing well. I am trying to implement the US forecasting election model from the paper by Linzer https://www.ime.usp.br/~abe/lista/pdfpWRrt4xFLt.pdf, and it would be great if someone could give m…

---

## [Truncated power series in ApproxFun.jl](https://discourse.julialang.org/t/truncated-power-series-in-approxfun-jl/124593)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 10\
**Last updated:** [January 11, 2025, 1:09pm UTC](https://discourse.julialang.org/t/truncated-power-series-in-approxfun-jl/124593 "2025-01-11T13:09:04Z")

</div>

I gave ApproxFun.jl another look. As far as I can see, polynomials of truncated power series in ApproxFun.jl (requires for e.g. the Duffing equation) are poorly documented. Do I overlook something?

---

## [MadNLPGPU with cuDSS and other linear solvers](https://discourse.julialang.org/t/madnlpgpu-with-cudss-and-other-linear-solvers/124558)

<div class="topic-metadata">

**Author:** [@gangway](https://discourse.julialang.org/u/gangway)\
**Replies:** 4\
**Last updated:** [January 9, 2025, 11:55pm UTC](https://discourse.julialang.org/t/madnlpgpu-with-cudss-and-other-linear-solvers/124558 "2025-01-09T23:55:12Z")

</div>

Trying to solve nonlinear JuMP models with MadNLP.Optimizer(linear\_solver=CUDSSSolver). I have added MadNLP, MadNLPGPU, CUDSS, and CUDSS\_jll. While activating project, I keep getting warning for circular dependencies. …

---

## [Modifying time in sol after solve() function using DifferentialEquations.jl](https://discourse.julialang.org/t/modifying-time-in-sol-after-solve-function-using-differentialequations-jl/124647)

<div class="topic-metadata">

**Author:** [@Iddingsite](https://discourse.julialang.org/u/Iddingsite)\
**Replies:** 4\
**Last updated:** [January 10, 2025, 10:24pm UTC](https://discourse.julialang.org/t/modifying-time-in-sol-after-solve-function-using-differentialequations-jl/124647 "2025-01-10T22:24:49Z")

</div>

Hi, I was wondering, using DifferentialEquations.jl (and co), if there is an easy way to modify the t in sol object after it is output and to synchronise it with the interpolation? I have tried to simply modify it with…

---

## [Variable start values from Dict](https://discourse.julialang.org/t/variable-start-values-from-dict/124650)

<div class="topic-metadata">

**Author:** [@maxminn](https://discourse.julialang.org/u/maxminn)\
**Replies:** 2\
**Last updated:** [January 10, 2025, 7:31pm UTC](https://discourse.julialang.org/t/variable-start-values-from-dict/124650 "2025-01-10T19:31:07Z")

</div>

I want to initialize a variable that is indexed by sets of strings to a dictionary with keys that are tuples of those same sets A = \["cat","dog"\] R = \["E" , "W"\] X0 = Dict( ("cat","E") =\> 1.1, ("cat","W") =\> 1.2…

---

## [Automatically insert variable name or symbol in Title and Colorbar](https://discourse.julialang.org/t/automatically-insert-variable-name-or-symbol-in-title-and-colorbar/124624)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 17\
**Last updated:** [January 10, 2025, 5:38pm UTC](https://discourse.julialang.org/t/automatically-insert-variable-name-or-symbol-in-title-and-colorbar/124624 "2025-01-10T17:38:33Z")

</div>

I have many different variable names or symbols for different data. I will insert one of those variable at a time in my safe\_log( ) function. I expect cbar.label and ax.title to accept that variable name automatically r…

---

## [Specify analytic exponential and pseudoinverse of linear part of a SplitODEProblem](https://discourse.julialang.org/t/specify-analytic-exponential-and-pseudoinverse-of-linear-part-of-a-splitodeproblem/124596)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 3:14pm UTC](https://discourse.julialang.org/t/specify-analytic-exponential-and-pseudoinverse-of-linear-part-of-a-splitodeproblem/124596 "2025-01-10T15:14:54Z")

</div>

I have a system of ODE of the form du/dt = A(t)\*u + f(u) The linear part corresponds to fast dynamics, in comparison to the slow dynamics of the non-linear part. A(t) is actually so simple, that I can provide an analy…

---

## [Allowing simultaneous ContinuousCallback to trigger (DifferentialEquations.jl)](https://discourse.julialang.org/t/allowing-simultaneous-continuouscallback-to-trigger-differentialequations-jl/124594)

<div class="topic-metadata">

**Author:** [@lte678](https://discourse.julialang.org/u/lte678)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 3:14pm UTC](https://discourse.julialang.org/t/allowing-simultaneous-continuouscallback-to-trigger-differentialequations-jl/124594 "2025-01-10T15:14:31Z")

</div>

I am working on an application where ContinuousCallbacks are dynamically generated based on a user configuration. Since I have “no control” over these, collisions can and do occur. For example if two of the conditions ha…

---

## [Setting inner size of figures generated by Plots.jl nside Pluto notebook](https://discourse.julialang.org/t/setting-inner-size-of-figures-generated-by-plots-jl-nside-pluto-notebook/124635)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 0\
**Last updated:** [January 10, 2025, 11:34am UTC](https://discourse.julialang.org/t/setting-inner-size-of-figures-generated-by-plots-jl-nside-pluto-notebook/124635 "2025-01-10T11:34:39Z")

</div>

Currently I’m code follows as below using Plots; gr(size=(600,600)) begin Plots.plot(\[3,4\],\[10,8\]) Plots.plot!(twinx(),\[.8,.2\],\[.4,-4\]) Plots.plot!(xguidefontsize=20,yguidefontsize=20, tickfontsize=20, fontfamily=…

---

## [\[solved\] Plotting 2 plots on same figure with dual axis](https://discourse.julialang.org/t/solved-plotting-2-plots-on-same-figure-with-dual-axis/124623)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 1\
**Last updated:** [January 10, 2025, 6:55am UTC](https://discourse.julialang.org/t/solved-plotting-2-plots-on-same-figure-with-dual-axis/124623 "2025-01-10T06:55:59Z")

</div>

I wanted to plots 2 data on the same figure with their respective legends one on left, bottom while for the other on top and right. For example, using Plots, plot(\[.4,.3\],\[.8,.3\]) plot!(\[5,3\],\[4,8\]) this is the output…

---

## [ApproxFun: Derivative: Set vs. Unset space](https://discourse.julialang.org/t/approxfun-derivative-set-vs-unset-space/124601)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 3\
**Last updated:** [January 10, 2025, 7:30am UTC](https://discourse.julialang.org/t/approxfun-derivative-set-vs-unset-space/124601 "2025-01-10T07:30:45Z")

</div>

Regarding ApproxFun.jl (likely more general): what is the rationale (guideline or rule of thumb) for setting or unsetting the space for the Derivative function?

---

## [\[question\] Finding number of closed potential contours and area enclosed by them](https://discourse.julialang.org/t/question-finding-number-of-closed-potential-contours-and-area-enclosed-by-them/124034)

<div class="topic-metadata">

**Author:** [@hisacro](https://discourse.julialang.org/u/hisacro)\
**Replies:** 16\
**Last updated:** [January 10, 2025, 5:38am UTC](https://discourse.julialang.org/t/question-finding-number-of-closed-potential-contours-and-area-enclosed-by-them/124034 "2025-01-10T05:38:20Z")

</div>

Hello, I’m trying to calculate the number of closed contours in a potential as well the area enclosed by closed, i.e. In this image below at certain energy level there are 4 closed contours. I’m trying to figure a way t…

---

## [How to modify the label details from a \`poly\` object (not just the text)](https://discourse.julialang.org/t/how-to-modify-the-label-details-from-a-poly-object-not-just-the-text/124609)

<div class="topic-metadata">

**Author:** [@favba](https://discourse.julialang.org/u/favba)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 9:04pm UTC](https://discourse.julialang.org/t/how-to-modify-the-label-details-from-a-poly-object-not-just-the-text/124609 "2025-01-09T21:04:30Z")

</div>

I’m trying to change the figure below to make the red and green squares in the labels box smaller (and, as a side effect, make the label box smaller, such that it doesn’t overlap with the circles). How can I achieve tha…

---

## [How to incorporate discount factor in an SDDP.jl model?](https://discourse.julialang.org/t/how-to-incorporate-discount-factor-in-an-sddp-jl-model/124598)

<div class="topic-metadata">

**Author:** [@Engr\_Moiz\_Ahmad](https://discourse.julialang.org/u/Engr_Moiz_Ahmad)\
**Replies:** 0\
**Last updated:** [January 9, 2025, 4:48pm UTC](https://discourse.julialang.org/t/how-to-incorporate-discount-factor-in-an-sddp-jl-model/124598 "2025-01-09T16:48:35Z")

</div>

I am working on a research paper for which I am using SDDP.jl to solve a multi-stage stochastic optimization problem. In this regard, for sensitivity analysis, I need a discount factor. However, I cannot figure out the w…

---

## [How to adjust the number and format of DateTime ticks using Plots.jl?](https://discourse.julialang.org/t/how-to-adjust-the-number-and-format-of-datetime-ticks-using-plots-jl/101980)

<div class="topic-metadata">

**Author:** [@Hugo](https://discourse.julialang.org/u/Hugo)\
**Replies:** 2\
**Last updated:** [July 24, 2023, 12:07pm UTC](https://discourse.julialang.org/t/how-to-adjust-the-number-and-format-of-datetime-ticks-using-plots-jl/101980 "2023-07-24T12:07:33Z")

</div>

I am trying to plot a time series with Plots.jl. The x axis is in DateTime format, and I want to format the dates and limit the number of ticks. The following reproducible example serves to show what I am trying to acco…

---

## [VSI image support in Images.jl](https://discourse.julialang.org/t/vsi-image-support-in-images-jl/2824)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 2\
**Last updated:** [January 9, 2025, 3:38am UTC](https://discourse.julialang.org/t/vsi-image-support-in-images-jl/2824 "2025-01-09T03:38:28Z")

</div>

On a whim I tried to load a .vsi image file from an Olympus microscope (cellSense software) into Julia (I wasn’t expecting it to work) and I was surprised to see that it didn’t give an error-- it loaded the first frame o…

---

## [Mini-Symposium on Julia in Astronomy & Astrophysics Research](https://discourse.julialang.org/t/mini-symposium-on-julia-in-astronomy-astrophysics-research/82539)

<div class="topic-metadata">

**Author:** [@eford](https://discourse.julialang.org/u/eford)\
**Replies:** 3\
**Last updated:** [January 9, 2025, 3:09am UTC](https://discourse.julialang.org/t/mini-symposium-on-julia-in-astronomy-astrophysics-research/82539 "2025-01-09T03:09:03Z")

</div>

JuliaCon 2022 has accepted a proposal for a mini-symposium (2-3 hours) on Julia in Astronomy & Astrophysics Research, shortly before the main JuliaCon talks. Please complete this form if you would be interested in contri…

---

## [Set-indexed SparseArrays](https://discourse.julialang.org/t/set-indexed-sparsearrays/124545)

<div class="topic-metadata">

**Author:** [@maxminn](https://discourse.julialang.org/u/maxminn)\
**Replies:** 5\
**Last updated:** [January 8, 2025, 7:21pm UTC](https://discourse.julialang.org/t/set-indexed-sparsearrays/124545 "2025-01-08T19:21:19Z")

</div>

Any discussion of support for set-indexed sparse arrays? I really want Julia to replace GAMS for my general modeling needs, but the data storage can’t compete.

---

## [Type stability in Optimization.jl](https://discourse.julialang.org/t/type-stability-in-optimization-jl/124522)

<div class="topic-metadata">

**Author:** [@Addison](https://discourse.julialang.org/u/Addison)\
**Replies:** 4\
**Last updated:** [January 8, 2025, 5:32pm UTC](https://discourse.julialang.org/t/type-stability-in-optimization-jl/124522 "2025-01-08T17:32:00Z")

</div>

I’ve got some code that solves several optimization problems using Optimization.jl. When checking for type stability with JET’s report\_opt function, it outputs all sorts of errors around the call to OptimizationFunction.…

---

## [Programmatically Get Makie Figure Size](https://discourse.julialang.org/t/programmatically-get-makie-figure-size/112893)

<div class="topic-metadata">

**Author:** [@TI36XPro](https://discourse.julialang.org/u/TI36XPro)\
**Replies:** 7\
**Last updated:** [January 8, 2025, 2:14pm UTC](https://discourse.julialang.org/t/programmatically-get-makie-figure-size/112893 "2025-01-08T14:14:56Z")

</div>

Hello, Is it possible to programmatically get the width and height of a figure in Makie assuming you did not explicitly specify them in the call to Figure()? I’m curious because they would be helpful for placing a zoom…

---

## [Examples of well-established ABMs for economics/finance](https://discourse.julialang.org/t/examples-of-well-established-abms-for-economics-finance/121301)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 6\
**Last updated:** [October 17, 2024, 7:59am UTC](https://discourse.julialang.org/t/examples-of-well-established-abms-for-economics-finance/121301 "2024-10-17T07:59:48Z")

</div>

Hello there! I am currently developing a small project for a student doing an MSc in Mathematics & Finance. Project is akin to a Master Thesis but 3-months long only. The goal of the project is to engage the student into…

---

## [Handling Divergent Trajectories in Global Sensitivity Analysis](https://discourse.julialang.org/t/handling-divergent-trajectories-in-global-sensitivity-analysis/123186)

<div class="topic-metadata">

**Author:** [@duodenum](https://discourse.julialang.org/u/duodenum)\
**Replies:** 4\
**Last updated:** [January 7, 2025, 8:05pm UTC](https://discourse.julialang.org/t/handling-divergent-trajectories-in-global-sensitivity-analysis/123186 "2025-01-07T20:05:25Z")

</div>

I am having the following problem in a large parameter space. Let’s say I have two parameters A and B. If I constrain the range of A between 0 and 10 and B between 0 and 5, the sensitivity to A turns out higher. If I do …

---

## [Makie inset fully "on top"](https://discourse.julialang.org/t/makie-inset-fully-on-top/124492)

<div class="topic-metadata">

**Author:** [@gvdeynde](https://discourse.julialang.org/u/gvdeynde)\
**Replies:** 2\
**Last updated:** [January 7, 2025, 1:04pm UTC](https://discourse.julialang.org/t/makie-inset-fully-on-top/124492 "2025-01-07T13:04:31Z")

</div>

Similar to this question. I’m drawing a figure that has a main axis and an inset (a zoom). How would I go about to have the whole inset with a background, effectively blocking out the underlying main figure? Using a gra…

---

## [DuckDB load problem](https://discourse.julialang.org/t/duckdb-load-problem/124467)

<div class="topic-metadata">

**Author:** [@kobusherbst](https://discourse.julialang.org/u/kobusherbst)\
**Replies:** 3\
**Last updated:** [January 7, 2025, 11:01am UTC](https://discourse.julialang.org/t/duckdb-load-problem/124467 "2025-01-07T11:01:33Z")

</div>

I created a new project, with just DuckDB and DBInterface packages. When executing the following code: using DuckDB # create a new in-memory database con = DBInterface.connect(DuckDB.DB, ":memory:") fails with the fol…

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

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