# Specific Domains

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

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

**Page:** 97

---

## [Variable scoping issue when using multiple GPUs in CUDA.jl](https://discourse.julialang.org/t/variable-scoping-issue-when-using-multiple-gpus-in-cuda-jl/117152)

<div class="topic-metadata">

**Author:** [@Cibin\_Joseph](https://discourse.julialang.org/u/Cibin_Joseph)\
**Replies:** 1\
**Last updated:** [July 17, 2024, 8:27pm UTC](https://discourse.julialang.org/t/variable-scoping-issue-when-using-multiple-gpus-in-cuda-jl/117152 "2024-07-17T20:27:12Z")

</div>

I’m using two for loops: one, to iterate over CUDA devices and launch kernels. The second, to iterate over CUDA devices and copy results back to the CPU. When I do this, I get an ‘undefined variable’ error due to local s…

---

## [Adjusting Font Size in Plot.jl: Legend Symbols and Lines Out of Scale](https://discourse.julialang.org/t/adjusting-font-size-in-plot-jl-legend-symbols-and-lines-out-of-scale/117141)

<div class="topic-metadata">

**Author:** [@TobiasSchaefer](https://discourse.julialang.org/u/TobiasSchaefer)\
**Replies:** 1\
**Last updated:** [July 17, 2024, 8:17pm UTC](https://discourse.julialang.org/t/adjusting-font-size-in-plot-jl-legend-symbols-and-lines-out-of-scale/117141 "2024-07-17T20:17:36Z")

</div>

Dear Julia community, Using default settings, the font size in a figure created with Plot.jl is very small. However, if I try to adapt the font sizes, the symbols and lines in the legend get out of scale. using Plots …

---

## [Modifying the legend of a plot with a colorbar](https://discourse.julialang.org/t/modifying-the-legend-of-a-plot-with-a-colorbar/117153)

<div class="topic-metadata">

**Author:** [@prconlin](https://discourse.julialang.org/u/prconlin)\
**Replies:** 2\
**Last updated:** [July 17, 2024, 6:04pm UTC](https://discourse.julialang.org/t/modifying-the-legend-of-a-plot-with-a-colorbar/117153 "2024-07-17T18:04:44Z")

</div>

Hello, I’m trying to modify the legend of this plot: The plot represents a random walk, which is simply a series of (x,y) coordinates. To indicate position vs time, I applied a gradient color scale to the line using…

---

## [Can SCIP solve MINLP with trigonometric functions?](https://discourse.julialang.org/t/can-scip-solve-minlp-with-trigonometric-functions/116967)

<div class="topic-metadata">

**Author:** [@Lunima](https://discourse.julialang.org/u/Lunima)\
**Replies:** 5\
**Last updated:** [July 17, 2024, 3:07pm UTC](https://discourse.julialang.org/t/can-scip-solve-minlp-with-trigonometric-functions/116967 "2024-07-17T15:07:00Z")

</div>

Hi everyone! I’m trying out SCIP in JuMP (with SCIP.jl). In the FAQ in the documentation, when aswering the question “Which kind of MINLPs are supported by SCIP?” (SCIP Doxygen Documentation: Frequently Asked Questions …

---

## [Modular implementation of optimization problems with JuMP](https://discourse.julialang.org/t/modular-implementation-of-optimization-problems-with-jump/116261)

<div class="topic-metadata">

**Author:** [@pierre-haessig](https://discourse.julialang.org/u/pierre-haessig)\
**Replies:** 9\
**Last updated:** [July 17, 2024, 2:59pm UTC](https://discourse.julialang.org/t/modular-implementation-of-optimization-problems-with-jump/116261 "2024-07-17T14:59:31Z")

</div>

Hello, This is a follow-up of my question on the thread about dynamic JuMP variable names Using anonymous and or symbols to create dynamic variable names? - #3 by pierre-haessig. I’m sharing here a JuMP code design stu…

---

## [DSP.jl - digitalFilter - no matching method when using 'fs' as argument](https://discourse.julialang.org/t/dsp-jl-digitalfilter-no-matching-method-when-using-fs-as-argument/117130)

<div class="topic-metadata">

**Author:** [@funboat](https://discourse.julialang.org/u/funboat)\
**Replies:** 3\
**Last updated:** [July 17, 2024, 12:19pm UTC](https://discourse.julialang.org/t/dsp-jl-digitalfilter-no-matching-method-when-using-fs-as-argument/117130 "2024-07-17T12:19:22Z")

</div>

Hi, Julia v1.10.4 DSP v0.7.9 I was trying to create a digital filter using the example code, and get the following error. https://github.com/JuliaDSP/DSP.jl/blob/76001f4f863f43df6b5ee48575e77f3dd3fe3941/docs/src/filt…

---

## [I cannot use the commands with\_optimizer() and getobjectivevalue() with JuMP, Gurobi](https://discourse.julialang.org/t/i-cannot-use-the-commands-with-optimizer-and-getobjectivevalue-with-jump-gurobi/83854)

<div class="topic-metadata">

**Author:** [@medardo](https://discourse.julialang.org/u/medardo)\
**Replies:** 9\
**Last updated:** [July 17, 2024, 8:21am UTC](https://discourse.julialang.org/t/i-cannot-use-the-commands-with-optimizer-and-getobjectivevalue-with-jump-gurobi/83854 "2024-07-17T08:21:29Z")

</div>

Hi, please somebody can help me? I cannot use this commands when I want to use JuMP and Gurobi: with\_optimizer() getobjectivevalue() I recived UndefVarError: … not defined

---

## [Progress bar in Agents](https://discourse.julialang.org/t/progress-bar-in-agents/117127)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [July 17, 2024, 7:28am UTC](https://discourse.julialang.org/t/progress-bar-in-agents/117127 "2024-07-17T07:28:21Z")

</div>

Hello everyone, Im working on an ABM model. Model in itself contains alot of conditions and operations based on that, it also has integration of differential equations. At the moment model is taking too much time to run…

---

## [Multiple fixed effects using FixedEffects.jl](https://discourse.julialang.org/t/multiple-fixed-effects-using-fixedeffects-jl/117113)

<div class="topic-metadata">

**Author:** [@shilong-sun](https://discourse.julialang.org/u/shilong-sun)\
**Replies:** 2\
**Last updated:** [July 17, 2024, 2:16am UTC](https://discourse.julialang.org/t/multiple-fixed-effects-using-fixedeffects-jl/117113 "2024-07-17T02:16:30Z")

</div>

Hi I’m using FixedEffects.jl to residualize matrices with fixed effects. I might be missing something with the syntax, but I couldn’t get the same results using a simple regression approach. Below is the code from the r…

---

## [Lazy constraints are not supported by SCIP.jl while JuMP doesn't mention it](https://discourse.julialang.org/t/lazy-constraints-are-not-supported-by-scip-jl-while-jump-doesnt-mention-it/117110)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 2\
**Last updated:** [July 16, 2024, 10:11pm UTC](https://discourse.julialang.org/t/lazy-constraints-are-not-supported-by-scip-jl-while-jump-doesnt-mention-it/117110 "2024-07-16T22:11:04Z")

</div>

Dear Julia Discourse community, When running my Unit tests to make my package solver-agnostic: import RingStarProblems as RSP using Test @testset "RingStarProblems.jl" begin # Write your tests here. include("a…

---

## [How to get subtree from symbolic expression? in ModelingToolkit.jl](https://discourse.julialang.org/t/how-to-get-subtree-from-symbolic-expression-in-modelingtoolkit-jl/117070)

<div class="topic-metadata">

**Author:** [@jogama](https://discourse.julialang.org/u/jogama)\
**Replies:** 2\
**Last updated:** [July 16, 2024, 9:42pm UTC](https://discourse.julialang.org/t/how-to-get-subtree-from-symbolic-expression-in-modelingtoolkit-jl/117070 "2024-07-16T21:42:07Z")

</div>

My apologies if this has already been addressed. Let’s say we have using ModelingToolkit @variables t x(t) y(t) z(t) ex = x \* y + z How should I extract the sub-expression x \* y from ex? It’s not clear to me how I’d …

---

## [Equation constraints not working in NLopt](https://discourse.julialang.org/t/equation-constraints-not-working-in-nlopt/116883)

<div class="topic-metadata">

**Author:** [@dannygold](https://discourse.julialang.org/u/dannygold)\
**Replies:** 5\
**Last updated:** [July 16, 2024, 5:46pm UTC](https://discourse.julialang.org/t/equation-constraints-not-working-in-nlopt/116883 "2024-07-16T17:46:09Z")

</div>

I’m trying to optimize a likelihood function of three parameters (call them a, b, and c) using the NLopt package. Currently, I have the following: opt = Opt(:LN\_COBYLA, length(θ₀)) function c(result::Vector, x::Vector…

---

## [NLsolve, preallocated ForwardDiff Dual](https://discourse.julialang.org/t/nlsolve-preallocated-forwarddiff-dual/13950)

<div class="topic-metadata">

**Author:** [@nhipsman](https://discourse.julialang.org/u/nhipsman)\
**Replies:** 3\
**Last updated:** [July 16, 2024, 5:19pm UTC](https://discourse.julialang.org/t/nlsolve-preallocated-forwarddiff-dual/13950 "2024-07-16T17:19:50Z")

</div>

I’m trying to use NLsolve (using ForwardDiff) to solve a system of equations that produces intermediate output. For performance, I’m trying to preallocate arrays for it to store that intermediate output, but I’m not sur…

---

## [Add metadata to categorical array](https://discourse.julialang.org/t/add-metadata-to-categorical-array/116547)

<div class="topic-metadata">

**Author:** [@croberts](https://discourse.julialang.org/u/croberts)\
**Replies:** 4\
**Last updated:** [July 16, 2024, 3:41pm UTC](https://discourse.julialang.org/t/add-metadata-to-categorical-array/116547 "2024-07-16T15:41:07Z")

</div>

Dataframes.jl has a nice feature for adding metadata to a table: Metadata · DataFrames.jl (juliadata.org) This is useful because often you want to use shorter variable names when coding but you want to be able to conve…

---

## [Second (non-linear) X-Axis](https://discourse.julialang.org/t/second-non-linear-x-axis/117082)

<div class="topic-metadata">

**Author:** [@jprenderg](https://discourse.julialang.org/u/jprenderg)\
**Replies:** 11\
**Last updated:** [July 16, 2024, 1:50pm UTC](https://discourse.julialang.org/t/second-non-linear-x-axis/117082 "2024-07-16T13:50:30Z")

</div>

Hello, Does anyone know how to make a plot with a second x-axis (on the top edge of the plot). I’d like to make values of the second x-axis a user supplied function of values on the primary x-axis. Thanks, Joe

---

## [GRAPE code for Khaneja et al. "Optimal Control of Coupled Spin Dynamics: Design of NMR Pulse Sequences by Gradient Ascent Algorithms"](https://discourse.julialang.org/t/grape-code-for-khaneja-et-al-optimal-control-of-coupled-spin-dynamics-design-of-nmr-pulse-sequences-by-gradient-ascent-algorithms/117085)

<div class="topic-metadata">

**Author:** [@fqguo](https://discourse.julialang.org/u/fqguo)\
**Replies:** 6\
**Last updated:** [July 16, 2024, 1:13pm UTC](https://discourse.julialang.org/t/grape-code-for-khaneja-et-al-optimal-control-of-coupled-spin-dynamics-design-of-nmr-pulse-sequences-by-gradient-ascent-algorithms/117085 "2024-07-16T13:13:55Z")

</div>

I want to write gradient ascent pulse engineering (GRAPE) and I try the simple Hamiltonian H=\\Omega\*|0\\rangle\\langle 1| + \\Omega\*|1\\rangle\\langle 0|. The initial state is |0\\rangle\\langle 0| and the final state is |1\\ran…

---

## [Large interpolation error for exponential integrators in DifferentialEquations](https://discourse.julialang.org/t/large-interpolation-error-for-exponential-integrators-in-differentialequations/117047)

<div class="topic-metadata">

**Author:** [@RayleighLord](https://discourse.julialang.org/u/RayleighLord)\
**Replies:** 2\
**Last updated:** [July 16, 2024, 7:11am UTC](https://discourse.julialang.org/t/large-interpolation-error-for-exponential-integrators-in-differentialequations/117047 "2024-07-16T07:11:10Z")

</div>

I was recently working with SplitODEProblem using exponential integrators and I noticed a huge error when doing the interpolation of the solution, which I think is wrong. I began to notice this since, by default, the so…

---

## [Suggestion: abstraction for integrated GPUs?](https://discourse.julialang.org/t/suggestion-abstraction-for-integrated-gpus/117061)

<div class="topic-metadata">

**Author:** [@bremez](https://discourse.julialang.org/u/bremez)\
**Replies:** 7\
**Last updated:** [July 16, 2024, 7:06am UTC](https://discourse.julialang.org/t/suggestion-abstraction-for-integrated-gpus/117061 "2024-07-16T07:06:16Z")

</div>

I have had the following thought: many people do not have regular access to HPC or high-end GPUs (where Nvidia seems most popular), and/or prioritize the benefit of interactive sessions on their personal laptops and low …

---

## [LoadError: \`llvmcall\` must be compiled to be called when calling Zygote.Jacobian](https://discourse.julialang.org/t/loaderror-llvmcall-must-be-compiled-to-be-called-when-calling-zygote-jacobian/116974)

<div class="topic-metadata">

**Author:** [@Baptiste\_Fabre](https://discourse.julialang.org/u/Baptiste_Fabre)\
**Replies:** 2\
**Last updated:** [July 15, 2024, 9:28pm UTC](https://discourse.julialang.org/t/loaderror-llvmcall-must-be-compiled-to-be-called-when-calling-zygote-jacobian/116974 "2024-07-15T21:28:37Z")

</div>

Dear all, I am facing a problem when trying to use Zygote.Jacobian to train a network. Here is the function that I am using to get the Jacobian of a network function dSCustomNonLinear(model, px::CuArray{T}, py::CuArra…

---

## [Tracking population vs agent level attributes in Agents.jl](https://discourse.julialang.org/t/tracking-population-vs-agent-level-attributes-in-agents-jl/117050)

<div class="topic-metadata">

**Author:** [@amynang](https://discourse.julialang.org/u/amynang)\
**Replies:** 3\
**Last updated:** [July 15, 2024, 7:23pm UTC](https://discourse.julialang.org/t/tracking-population-vs-agent-level-attributes-in-agents-jl/117050 "2024-07-15T19:23:55Z")

</div>

I am translating an ABM model from NetLogo to Julia (i.e. Agents.jl). The model, “particle world” is described in Paul Smaldino’s Modeling Social Behavior, where it is used to introduce basic NetLogo functionality. Agen…

---

## [Condition Turing model on a variable created within the model](https://discourse.julialang.org/t/condition-turing-model-on-a-variable-created-within-the-model/116994)

<div class="topic-metadata">

**Author:** [@DominiqueMakowski](https://discourse.julialang.org/u/DominiqueMakowski)\
**Replies:** 4\
**Last updated:** [July 15, 2024, 4:19pm UTC](https://discourse.julialang.org/t/condition-turing-model-on-a-variable-created-within-the-model/116994 "2024-07-15T16:19:17Z")

</div>

Assuming I have the following variable \[0, 1\] using Downloads, CSV, DataFrames, Random using Turing, Distributions using GLMakie using StatsFuns: logistic y = vcat(rand(Beta(2, 10), 200), rand(Uniform(0, 1), 100), …

---

## [Hcubature + spherical from CoordinateTransformations](https://discourse.julialang.org/t/hcubature-spherical-from-coordinatetransformations/117042)

<div class="topic-metadata">

**Author:** [@Domenico\_Lahaye](https://discourse.julialang.org/u/Domenico_Lahaye)\
**Replies:** 3\
**Last updated:** [July 15, 2024, 3:05pm UTC](https://discourse.julialang.org/t/hcubature-spherical-from-coordinatetransformations/117042 "2024-07-15T15:05:57Z")

</div>

I am trying integration over a spherical shell by combining hcubature and spherical from CoordinateTransformations. I do get a method error. Code and error message below. Advice is much appreciated. function foo(r) …

---

## [Multiple colobars](https://discourse.julialang.org/t/multiple-colobars/116970)

<div class="topic-metadata">

**Author:** [@ArneSpang](https://discourse.julialang.org/u/ArneSpang)\
**Replies:** 8\
**Last updated:** [July 15, 2024, 10:15am UTC](https://discourse.julialang.org/t/multiple-colobars/116970 "2024-07-15T10:15:53Z")

</div>

I am trying to make a plot with a heatmap in the background and contour plot of a different field on top. I could steal some ideas from this thread (Overlay a contour over a heatmap - #8 by lazarusA) and I get as far as …

---

## [Callbacks with xpress in JuMP](https://discourse.julialang.org/t/callbacks-with-xpress-in-jump/116889)

<div class="topic-metadata">

**Author:** [@Popeye](https://discourse.julialang.org/u/Popeye)\
**Replies:** 2\
**Last updated:** [July 15, 2024, 5:11am UTC](https://discourse.julialang.org/t/callbacks-with-xpress-in-jump/116889 "2024-07-15T05:11:30Z")

</div>

Hi everyone, I’m currently working on a MILP problem using the Xpress solver in JuMP. Some instances of this problem are taking considerably longer to solve to optimality, and I would like to implement solver-specific c…

---

## [Alpha keyword ignored in scatterlines](https://discourse.julialang.org/t/alpha-keyword-ignored-in-scatterlines/116954)

<div class="topic-metadata">

**Author:** [@AtomsForHire](https://discourse.julialang.org/u/AtomsForHire)\
**Replies:** 4\
**Last updated:** [July 15, 2024, 2:52am UTC](https://discourse.julialang.org/t/alpha-keyword-ignored-in-scatterlines/116954 "2024-07-15T02:52:11Z")

</div>

MWE: using CairoMakie set\_theme!(theme\_latexfonts()) update\_theme!( palette=(color=ColorSchemes.glasbey\_category10\_n256.colors,), ScatterLines=(cycle=Cycle(:color),) ) function main() f = Figure() ax =…

---

## [Metal Kernel 3D indices](https://discourse.julialang.org/t/metal-kernel-3d-indices/116429)

<div class="topic-metadata">

**Author:** [@trasor](https://discourse.julialang.org/u/trasor)\
**Replies:** 4\
**Last updated:** [July 14, 2024, 6:47pm UTC](https://discourse.julialang.org/t/metal-kernel-3d-indices/116429 "2024-07-14T18:47:19Z")

</div>

Hello together, i try to write a metal kernel that do some operations on 3D arrays like: function vadd!( nz::Int64,ny::Int64,nx::Int64, a::MtlDeviceArray{Float32, 3, 1}, b::MtlDeviceArray{Float32, 3, 1}, c::MtlDeviceArr…

---

## [Max of a vector as an objective for JuMP?](https://discourse.julialang.org/t/max-of-a-vector-as-an-objective-for-jump/116911)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 11\
**Last updated:** [July 14, 2024, 6:13pm UTC](https://discourse.julialang.org/t/max-of-a-vector-as-an-objective-for-jump/116911 "2024-07-14T18:13:10Z")

</div>

Hi Everyone, I have an optimization problem similar to this one, except my objective is now the maximum element in a vector (which I want to minimize). Can JuMP handle this as an objective, and if so, what’s the best wa…

---

## [Fullscreen doesn't work in GLMakie](https://discourse.julialang.org/t/fullscreen-doesnt-work-in-glmakie/117014)

<div class="topic-metadata">

**Author:** [@marcsgil](https://discourse.julialang.org/u/marcsgil)\
**Replies:** 1\
**Last updated:** [July 14, 2024, 6:23am UTC](https://discourse.julialang.org/t/fullscreen-doesnt-work-in-glmakie/117014 "2024-07-14T06:23:11Z")

</div>

I’m trying to display a fullscreen image in GLMakie, but it isn’t working. I’m running the following code: using GLMakie GLMakie.activate!(decorated=false, fullscreen=true) w, h = 2560, 1080 # my monitor's resolution i…

---

## [Create custom shapes in Makie.jl](https://discourse.julialang.org/t/create-custom-shapes-in-makie-jl/117000)

<div class="topic-metadata">

**Author:** [@albertomercurio](https://discourse.julialang.org/u/albertomercurio)\
**Replies:** 2\
**Last updated:** [July 13, 2024, 4:49pm UTC](https://discourse.julialang.org/t/create-custom-shapes-in-makie-jl/117000 "2024-07-13T16:49:30Z")

</div>

Hello, I would like to create a custom shape using Makie.jl. Something like the figure below This is basically a rectangle with one curved side instead of strainght. I have no clue if it is possible to create such a…

---

## [Weird behaviour of steadystate.eigenvector function returns any while it should return the type operator](https://discourse.julialang.org/t/weird-behaviour-of-steadystate-eigenvector-function-returns-any-while-it-should-return-the-type-operator/117002)

<div class="topic-metadata">

**Author:** [@Arpan\_Chatterjee1](https://discourse.julialang.org/u/Arpan_Chatterjee1)\
**Replies:** 0\
**Last updated:** [July 13, 2024, 3:36pm UTC](https://discourse.julialang.org/t/weird-behaviour-of-steadystate-eigenvector-function-returns-any-while-it-should-return-the-type-operator/117002 "2024-07-13T15:36:40Z")

</div>

I was doing a simulation of calculating the population of a 3-state system interacting with a cavity mode. Part of the code is given as follows function pop(g, Ω23, Ω12, Δ23\_list, Δ12\_list, Δ, Γ31, Γ32, κ, a,…

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

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