# Specific Domains

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

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

**Page:** 55

---

## [ModelingToolkitDesigner Example issue](https://discourse.julialang.org/t/modelingtoolkitdesigner-example-issue/126705)

<div class="topic-metadata">

**Author:** [@jaksaa](https://discourse.julialang.org/u/jaksaa)\
**Replies:** 1\
**Last updated:** [March 8, 2025, 8:10pm UTC](https://discourse.julialang.org/t/modelingtoolkitdesigner-example-issue/126705 "2025-03-08T20:10:49Z")

</div>

ModelingToolkitDesigner example: ModelingToolkitDesigner.jl/examples/electrical.jl at master · bradcarman/ModelingToolkitDesigner.jl · GitHub Copied the example into a file.jl Then did include(“file.jl”) The linking …

---

## [\`setsockopt\` not defined](https://discourse.julialang.org/t/setsockopt-not-defined/126704)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 1\
**Last updated:** [March 8, 2025, 7:30am UTC](https://discourse.julialang.org/t/setsockopt-not-defined/126704 "2025-03-08T07:30:17Z")

</div>

Hello, I want to build the julia version of Futu API referring to this python version, and asked the Grok, ChatGPT, etc and got the function below: sock = Sockets.TCPSocket() # Set receive buffer setsoc…

---

## [WGLMakie zoom with export\_static](https://discourse.julialang.org/t/wglmakie-zoom-with-export-static/126585)

<div class="topic-metadata">

**Author:** [@bjarthur](https://discourse.julialang.org/u/bjarthur)\
**Replies:** 4\
**Last updated:** [March 7, 2025, 11:01pm UTC](https://discourse.julialang.org/t/wglmakie-zoom-with-export-static/126585 "2025-03-07T23:01:56Z")

</div>

when a WGLMakie App is served with Bonito, zooming in on a plot works, but when a standalone .html file is created with export\_static, it doesn’t. presumably a Julia server is needed for this functionality. i post beca…

---

## [NonlinearSolve stalls when Jacobian is specified](https://discourse.julialang.org/t/nonlinearsolve-stalls-when-jacobian-is-specified/126659)

<div class="topic-metadata">

**Author:** [@clm](https://discourse.julialang.org/u/clm)\
**Replies:** 4\
**Last updated:** [March 7, 2025, 9:58pm UTC](https://discourse.julialang.org/t/nonlinearsolve-stalls-when-jacobian-is-specified/126659 "2025-03-07T21:58:50Z")

</div>

I’m currently trying to solve a non-linear system, but I get a stalled retcode when I specify a jacobian. Specifically, I’d trying to solve a discretized PDE using a home-made backward Euler stepper. The spatial domain …

---

## [Solving the Heat Equation, changing the boundary conditions](https://discourse.julialang.org/t/solving-the-heat-equation-changing-the-boundary-conditions/126698)

<div class="topic-metadata">

**Author:** [@roflmaostc](https://discourse.julialang.org/u/roflmaostc)\
**Replies:** 2\
**Last updated:** [March 7, 2025, 10:08pm UTC](https://discourse.julialang.org/t/solving-the-heat-equation-changing-the-boundary-conditions/126698 "2025-03-07T22:08:24Z")

</div>

Hi, I am trying to solve the heat equation with the SciML ecosystem. I found these docs as a good starting point. Despite reading the docs and old posts I couldn’t manage to reproduce the simple case from Wikipedia. T…

---

## [MOF \`read\_from\_file\` fails when using MOI.Parameter and non-linear constraints](https://discourse.julialang.org/t/mof-read-from-file-fails-when-using-moi-parameter-and-non-linear-constraints/126688)

<div class="topic-metadata">

**Author:** [@andrewrosemberg](https://discourse.julialang.org/u/andrewrosemberg)\
**Replies:** 3\
**Last updated:** [March 7, 2025, 9:13pm UTC](https://discourse.julialang.org/t/mof-read-from-file-fails-when-using-moi-parameter-and-non-linear-constraints/126688 "2025-03-07T21:13:17Z")

</div>

I am trying read\_from\_file and solve a model with MOI.Parameter but failing when I have non-linear constraints: using JuMP using MathOptInterface using Ipopt model = JuMP.Model(Ipopt.Optimizer) set\_silent(model) # …

---

## [Switch in equations using ContinuousCallback is handled by Rodas5() but not QNDF()](https://discourse.julialang.org/t/switch-in-equations-using-continuouscallback-is-handled-by-rodas5-but-not-qndf/126690)

<div class="topic-metadata">

**Author:** [@sass-jacob](https://discourse.julialang.org/u/sass-jacob)\
**Replies:** 5\
**Last updated:** [March 7, 2025, 9:08pm UTC](https://discourse.julialang.org/t/switch-in-equations-using-continuouscallback-is-handled-by-rodas5-but-not-qndf/126690 "2025-03-07T21:08:05Z")

</div>

Here I have a problem where I’d like a constraint equation to switch once a constraint has been met for one of the auxiliary variables. This is a buildup to a large, stiff system that benefits greatly in performance fro…

---

## [Determinant constraints in JuMP](https://discourse.julialang.org/t/determinant-constraints-in-jump/126664)

<div class="topic-metadata">

**Author:** [@Rick](https://discourse.julialang.org/u/Rick)\
**Replies:** 1\
**Last updated:** [March 7, 2025, 6:33pm UTC](https://discourse.julialang.org/t/determinant-constraints-in-jump/126664 "2025-03-07T18:33:10Z")

</div>

Hi! I have a question about using imposing determinant as a constraint in JuMP. Currently, I am trying to solve a problem that involve constraints of the form \\det(A) = c \\det(B), where c is a given scalar. A and B a…

---

## [Kronrod error when using QuadGK w/ symbolic inputs](https://discourse.julialang.org/t/kronrod-error-when-using-quadgk-w-symbolic-inputs/126587)

<div class="topic-metadata">

**Author:** [@JarodMcCormick](https://discourse.julialang.org/u/JarodMcCormick)\
**Replies:** 4\
**Last updated:** [March 7, 2025, 6:30pm UTC](https://discourse.julialang.org/t/kronrod-error-when-using-quadgk-w-symbolic-inputs/126587 "2025-03-07T18:30:14Z")

</div>

I am running a script where I’m calculating some values using ModelingToolkit with some code that I’ve developed. I register my functions using the @register\_symbolic macro, and these functions work on their own through …

---

## [Catalyst.jl: pure jump process solution now has Float64 trajectories?](https://discourse.julialang.org/t/catalyst-jl-pure-jump-process-solution-now-has-float64-trajectories/126649)

<div class="topic-metadata">

**Author:** [@lmshk](https://discourse.julialang.org/u/lmshk)\
**Replies:** 2\
**Last updated:** [March 7, 2025, 8:58am UTC](https://discourse.julialang.org/t/catalyst-jl-pure-jump-process-solution-now-has-float64-trajectories/126649 "2025-03-07T08:58:58Z")

</div>

(Catalyst v14.4.1, JumpProcesses v9.14.2) I recently updated dependencies for the first time in a while, and I am surprised to find that the solutions for pure jump process problems with all-Int64 initial states now con…

---

## [Poisson solver using BSpline Galerkin method on a 2D grid](https://discourse.julialang.org/t/poisson-solver-using-bspline-galerkin-method-on-a-2d-grid/126524)

<div class="topic-metadata">

**Author:** [@Sagar\_123](https://discourse.julialang.org/u/Sagar_123)\
**Replies:** 8\
**Last updated:** [March 6, 2025, 10:00pm UTC](https://discourse.julialang.org/t/poisson-solver-using-bspline-galerkin-method-on-a-2d-grid/126524 "2025-03-06T22:00:15Z")

</div>

Hello! I am trying to implement a poisson solver (in a reduced form) using BSplines and Galerkin method. Form of the equation is : where \\phi is potential and differential operation is in 2D : Now, if I were to ex…

---

## [Creating DataFrame from vector of rows, and fixing type](https://discourse.julialang.org/t/creating-dataframe-from-vector-of-rows-and-fixing-type/126591)

<div class="topic-metadata">

**Author:** [@digital\_carver](https://discourse.julialang.org/u/digital_carver)\
**Replies:** 2\
**Last updated:** [March 6, 2025, 7:38pm UTC](https://discourse.julialang.org/t/creating-dataframe-from-vector-of-rows-and-fixing-type/126591 "2025-03-06T19:38:17Z")

</div>

I have some data in a Vector{Vector{SubString{String}}} that I wanted to turn into a DataFrame. While DataFrame constructor accepts a vector of vectors, it seems that it assumes the inner vectors are columns (which is se…

---

## [Makie 3D "flatten" scatter points in x-y axis](https://discourse.julialang.org/t/makie-3d-flatten-scatter-points-in-x-y-axis/126589)

<div class="topic-metadata">

**Author:** [@cmdenis](https://discourse.julialang.org/u/cmdenis)\
**Replies:** 3\
**Last updated:** [March 6, 2025, 2:19pm UTC](https://discourse.julialang.org/t/makie-3d-flatten-scatter-points-in-x-y-axis/126589 "2025-03-06T14:19:02Z")

</div>

Hi there, I’m trying to make a 3D plot with Makie, and I’d like to plot some scatter points “flat” on the x-y plane of the plot. Here is the M(not)WE I have so far: using CairoMakie # Initialize figure fig = Figure(s…

---

## [Best data structure for mapping between nodes and (known) cliques in a graph, that is easily updated after bisection?](https://discourse.julialang.org/t/best-data-structure-for-mapping-between-nodes-and-known-cliques-in-a-graph-that-is-easily-updated-after-bisection/126622)

<div class="topic-metadata">

**Author:** [@MarkusGabl](https://discourse.julialang.org/u/MarkusGabl)\
**Replies:** 4\
**Last updated:** [March 6, 2025, 3:38pm UTC](https://discourse.julialang.org/t/best-data-structure-for-mapping-between-nodes-and-known-cliques-in-a-graph-that-is-easily-updated-after-bisection/126622 "2025-03-06T15:38:45Z")

</div>

Hi Julia community I have a question regrading the best data structure for a certain purpose. I have a graph with of nodes i=1,…,n and edges and from the way I construct the graph I know all the maximum cliques c=1,…,k…

---

## [Help with workaround a mutation in an optimization problem](https://discourse.julialang.org/t/help-with-workaround-a-mutation-in-an-optimization-problem/126624)

<div class="topic-metadata">

**Author:** [@abhinav](https://discourse.julialang.org/u/abhinav)\
**Replies:** 1\
**Last updated:** [March 6, 2025, 10:36am UTC](https://discourse.julialang.org/t/help-with-workaround-a-mutation-in-an-optimization-problem/126624 "2025-03-06T10:36:58Z")

</div>

Hi everyone, I’m running into an issue with an optimization problem utilizing gradient-based updates using Zygote where an in-place mutation appears to be causing problems. Specifically, when I update my parameter vecto…

---

## [Wagner model for total tardiness minimization](https://discourse.julialang.org/t/wagner-model-for-total-tardiness-minimization/126603)

<div class="topic-metadata">

**Author:** [@Victor\_Neto](https://discourse.julialang.org/u/Victor_Neto)\
**Replies:** 3\
**Last updated:** [March 6, 2025, 10:35am UTC](https://discourse.julialang.org/t/wagner-model-for-total-tardiness-minimization/126603 "2025-03-06T10:35:22Z")

</div>

Dear friends, I hope this message finds you all well. I am working on a Wagner family model with positional decision variables for the job shop scheduling problem, aiming to minimize total tardiness. For the toy model …

---

## [Help with a new routine to add labels to the tail of each plot](https://discourse.julialang.org/t/help-with-a-new-routine-to-add-labels-to-the-tail-of-each-plot/126484)

<div class="topic-metadata">

**Author:** [@dgleich](https://discourse.julialang.org/u/dgleich)\
**Replies:** 9\
**Last updated:** [March 5, 2025, 2:00am UTC](https://discourse.julialang.org/t/help-with-a-new-routine-to-add-labels-to-the-tail-of-each-plot/126484 "2025-03-05T02:00:32Z")

</div>

I’m trying to implement a ‘tail\_labels’ function that labels the tail of the plot with the text label. It handles all the messy layout details for you. Here is an example from a prototype: But there are a bunch of t…

---

## [Interpolate 2d function](https://discourse.julialang.org/t/interpolate-2d-function/96914)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 14\
**Last updated:** [March 4, 2025, 4:29pm UTC](https://discourse.julialang.org/t/interpolate-2d-function/96914 "2025-03-04T16:29:32Z")

</div>

I want to interpolate 2d data. I have a function f(x, y) that is sampled as follows. For any y value in some array y\_arr, I have the a set of points x\_arr. Note that x\_arr is different for any y, and even the boundaries …

---

## [How should the scope of variables be embedded in ModelingToolkit?](https://discourse.julialang.org/t/how-should-the-scope-of-variables-be-embedded-in-modelingtoolkit/126373)

<div class="topic-metadata">

**Author:** [@ysyecust](https://discourse.julialang.org/u/ysyecust)\
**Replies:** 2\
**Last updated:** [March 4, 2025, 5:27am UTC](https://discourse.julialang.org/t/how-should-the-scope-of-variables-be-embedded-in-modelingtoolkit/126373 "2025-03-04T05:27:23Z")

</div>

When using ModelingToolkit to model and using NonlinearSolve to solve, I find that the variable range I have set seems to be ineffective. @variables z\[1:numcomp\] \[bounds = (0,1),guess=0.2\] @variables x\[1:numcomp\] \[boun…

---

## [Making a button grid with Makie?](https://discourse.julialang.org/t/making-a-button-grid-with-makie/126468)

<div class="topic-metadata">

**Author:** [@Hezzeki](https://discourse.julialang.org/u/Hezzeki)\
**Replies:** 4\
**Last updated:** [March 4, 2025, 5:02am UTC](https://discourse.julialang.org/t/making-a-button-grid-with-makie/126468 "2025-03-04T05:02:16Z")

</div>

I wanted to make a button grid that parallels the physical device I am plotting against, I am currently using code like this for the button section: ... fig\_volt = Figure() ... elec\_vis = fig\_volt\[2, 1:2\] = GridLayout(h…

---

## [Error with maximum likelihood estimation using Optimization](https://discourse.julialang.org/t/error-with-maximum-likelihood-estimation-using-optimization/126370)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 8\
**Last updated:** [March 4, 2025, 1:31am UTC](https://discourse.julialang.org/t/error-with-maximum-likelihood-estimation-using-optimization/126370 "2025-03-04T01:31:40Z")

</div>

using OptimizationOptimisers using Optimization loss(θ) = norm((predict(θ) - data\_train) .\* weights) optf = OptimizationFunction((x, p) -\> loss(x), AutoReverseDiff(true)) optprob = OptimizationProblem(optf, θ) opt = Ada…

---

## [DifferentialEquations.jl SavingCallback but dont build the whole solution](https://discourse.julialang.org/t/differentialequations-jl-savingcallback-but-dont-build-the-whole-solution/126430)

<div class="topic-metadata">

**Author:** [@svretina](https://discourse.julialang.org/u/svretina)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 10:39pm UTC](https://discourse.julialang.org/t/differentialequations-jl-savingcallback-but-dont-build-the-whole-solution/126430 "2025-03-03T22:39:43Z")

</div>

Hi all, is it possible to turn off the solution building, meaning to construct the whole object spanning (n\_timesteps, n\_statevector) ? I would like to minimize the strain on the RAM by saving the statevector at each ti…

---

## [Lux + Enzyme and Zygote + NeuralODE, segmentation fault](https://discourse.julialang.org/t/lux-enzyme-and-zygote-neuralode-segmentation-fault/123645)

<div class="topic-metadata">

**Author:** [@vleon1234](https://discourse.julialang.org/u/vleon1234)\
**Replies:** 6\
**Last updated:** [March 3, 2025, 10:26pm UTC](https://discourse.julialang.org/t/lux-enzyme-and-zygote-neuralode-segmentation-fault/123645 "2025-03-03T22:26:40Z")

</div>

Hi all, I’m using Julia v1.11.2, and installed the used packages on 12/6 (last Friday), so I assume I have the most recent package versions. I’ve been following along the SciML tutorials for Neural ordinary differentia…

---

## [Constructing callbacks on observed variables with symbolic indexing of an MTK model](https://discourse.julialang.org/t/constructing-callbacks-on-observed-variables-with-symbolic-indexing-of-an-mtk-model/126510)

<div class="topic-metadata">

**Author:** [@sass-jacob](https://discourse.julialang.org/u/sass-jacob)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 9:22pm UTC](https://discourse.julialang.org/t/constructing-callbacks-on-observed-variables-with-symbolic-indexing-of-an-mtk-model/126510 "2025-03-03T21:22:22Z")

</div>

I am trying to figure out how to use the Symbolic indexing with callback functions. There is already the continuous events support within MTK which is quite nice and has worked for this MWE. When the variable goes to obs…

---

## [Initialize variables in Bonmin](https://discourse.julialang.org/t/initialize-variables-in-bonmin/126500)

<div class="topic-metadata">

**Author:** [@BCC](https://discourse.julialang.org/u/BCC)\
**Replies:** 1\
**Last updated:** [March 3, 2025, 9:07pm UTC](https://discourse.julialang.org/t/initialize-variables-in-bonmin/126500 "2025-03-03T21:07:15Z")

</div>

I have an MINLP model implemented in BONMIN. The model functions correctly; however, since it is applied to distribution power systems, its complexity increases as the number of nodes grows. For this reason, I have attem…

---

## [How to insert nested/composite types into DuckDB from a DataFrame?](https://discourse.julialang.org/t/how-to-insert-nested-composite-types-into-duckdb-from-a-dataframe/126440)

<div class="topic-metadata">

**Author:** [@slwu89](https://discourse.julialang.org/u/slwu89)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 7:01pm UTC](https://discourse.julialang.org/t/how-to-insert-nested-composite-types-into-duckdb-from-a-dataframe/126440 "2025-03-03T19:01:04Z")

</div>

Hi all, it seems DuckDB can support composite types as in Redirecting… I want to know how to insert into columns with one of these types from a DataFrame. I’ve tried the Appender API and directly using prepared statemen…

---

## [Extracting the coefficient of a nonlinear term in a JuMP model](https://discourse.julialang.org/t/extracting-the-coefficient-of-a-nonlinear-term-in-a-jump-model/126438)

<div class="topic-metadata">

**Author:** [@handahye](https://discourse.julialang.org/u/handahye)\
**Replies:** 2\
**Last updated:** [March 3, 2025, 6:20pm UTC](https://discourse.julialang.org/t/extracting-the-coefficient-of-a-nonlinear-term-in-a-jump-model/126438 "2025-03-03T18:20:49Z")

</div>

For a generic nonlinear constraint, is there a way for me to extract the coefficient of a nonlinear term (e.g., multilinear terms)? e.g., model = Model() @variable(model, x\[1:3\]) @constraint(model, (x\[1\] - (((3\* ((x\[2\]…

---

## [How to do integration testing with HTTP.jl?](https://discourse.julialang.org/t/how-to-do-integration-testing-with-http-jl/21573)

<div class="topic-metadata">

**Author:** [@non-Jedi](https://discourse.julialang.org/u/non-Jedi)\
**Replies:** 5\
**Last updated:** [March 3, 2025, 1:57pm UTC](https://discourse.julialang.org/t/how-to-do-integration-testing-with-http-jl/21573 "2025-03-03T13:57:33Z")

</div>

I’m building out a package that wraps an API using HTTP.jl. One thing I’m having trouble with is figuring out how to do integration testing. In the past, I’ve used python requests and just used mocking with responses to …

---

## [Profiling CUDA kernels on the Jetson](https://discourse.julialang.org/t/profiling-cuda-kernels-on-the-jetson/126120)

<div class="topic-metadata">

**Author:** [@CaG21](https://discourse.julialang.org/u/CaG21)\
**Replies:** 3\
**Last updated:** [March 3, 2025, 11:13am UTC](https://discourse.julialang.org/t/profiling-cuda-kernels-on-the-jetson/126120 "2025-03-03T11:13:57Z")

</div>

I am trying to profile a CUDA kernel (using CUDA.jl) on a Jetson AGX Orin DevKit. However, when I try to do so, for example by running using CUDA a = CUDA.rand(1024,1024,1024); CUDA.@profile sin.(a) I get the error ERR…

---

## [How to load a raster of a NC file with multiple monthly bands](https://discourse.julialang.org/t/how-to-load-a-raster-of-a-nc-file-with-multiple-monthly-bands/126487)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 4\
**Last updated:** [March 3, 2025, 9:18am UTC](https://discourse.julialang.org/t/how-to-load-a-raster-of-a-nc-file-with-multiple-monthly-bands/126487 "2025-03-03T09:18:30Z")

</div>

I am using the chelsa\_cmip6 script to download climatic data, and the output is a NC file with the data embedded in monthly series, like in this (small) example of precipitations. How do I load it into a vector of raste…

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

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