# Specific Domains

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

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

**Page:** 70

---

## [Indexing a residual of an InitializationProblem](https://discourse.julialang.org/t/indexing-a-residual-of-an-initializationproblem/123356)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 3\
**Last updated:** [December 4, 2024, 2:11pm UTC](https://discourse.julialang.org/t/indexing-a-residual-of-an-initializationproblem/123356 "2024-12-04T14:11:42Z")

</div>

I want to check the residual of the solution of an initializationproblem as done in this example: Initialization of ODESystems · ModelingToolkit.jl However, my model is quite a bit more complex than the one in the examp…

---

## [Differential Equation Log Plot](https://discourse.julialang.org/t/differential-equation-log-plot/123435)

<div class="topic-metadata">

**Author:** [@TheLazyFarmer](https://discourse.julialang.org/u/TheLazyFarmer)\
**Replies:** 1\
**Last updated:** [December 4, 2024, 8:21am UTC](https://discourse.julialang.org/t/differential-equation-log-plot/123435 "2024-12-04T08:21:21Z")

</div>

Hello, I have some values from a differential equation I solved, I am trying to plot the y-axis as a logarithmic. However, I am unsure how to go about this approach: For reference, I have this example solution from an …

---

## [Addprocs\_slurm not connecting to all available workers](https://discourse.julialang.org/t/addprocs-slurm-not-connecting-to-all-available-workers/123149)

<div class="topic-metadata">

**Author:** [@jewh](https://discourse.julialang.org/u/jewh)\
**Replies:** 7\
**Last updated:** [December 4, 2024, 7:17am UTC](https://discourse.julialang.org/t/addprocs-slurm-not-connecting-to-all-available-workers/123149 "2024-12-04T07:17:47Z")

</div>

I’m using Distributed and ClusterManagers to run large numbers of simulations in parallel on my university HPC cluster. Scheduling and job management on the cluster is handled by Slurm. I initialise each of the parallel…

---

## [How can you get the Lagrange/KKT multipliers out of JuMP when using Ipopt?](https://discourse.julialang.org/t/how-can-you-get-the-lagrange-kkt-multipliers-out-of-jump-when-using-ipopt/123432)

<div class="topic-metadata">

**Author:** [@lamont](https://discourse.julialang.org/u/lamont)\
**Replies:** 3\
**Last updated:** [December 4, 2024, 3:46am UTC](https://discourse.julialang.org/t/how-can-you-get-the-lagrange-kkt-multipliers-out-of-jump-when-using-ipopt/123432 "2024-12-04T03:46:46Z")

</div>

CasADI has lam\_x and lam\_g outputs. I can’t find in what they’re calling in Ipopt to get these, or I’d try digging into the Ipopt.jl code to see where it was. I haven’t had any luck with the jump-dev or ipopt documenta…

---

## ["Int64" error message during Optimisation](https://discourse.julialang.org/t/int64-error-message-during-optimisation/123382)

<div class="topic-metadata">

**Author:** [@Jordie](https://discourse.julialang.org/u/Jordie)\
**Replies:** 5\
**Last updated:** [December 4, 2024, 1:19am UTC](https://discourse.julialang.org/t/int64-error-message-during-optimisation/123382 "2024-12-04T01:19:30Z")

</div>

Hi, I am trying to find multiple parameters for the optimized system which is governed by a system of equations. In my code, I need to be able to use 4 or 5 equations and determine the parameters for the optimized syste…

---

## [Complex SDEs + Sparse operations + real Wiener noise](https://discourse.julialang.org/t/complex-sdes-sparse-operations-real-wiener-noise/123396)

<div class="topic-metadata">

**Author:** [@Aaron\_Villanueva](https://discourse.julialang.org/u/Aaron_Villanueva)\
**Replies:** 2\
**Last updated:** [December 3, 2024, 6:30pm UTC](https://discourse.julialang.org/t/complex-sdes-sparse-operations-real-wiener-noise/123396 "2024-12-03T18:30:54Z")

</div>

I am trying to solve ComplexF64 Stochastic Differential Equations with m-dim real Wiener noise. The drift and diffusion functions must handle sparse operations to support large systems. I run into some troubles in maki…

---

## [Changing mass matrix in DAE with callbacks?](https://discourse.julialang.org/t/changing-mass-matrix-in-dae-with-callbacks/123403)

<div class="topic-metadata">

**Author:** [@gvdeynde](https://discourse.julialang.org/u/gvdeynde)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 6:29pm UTC](https://discourse.julialang.org/t/changing-mass-matrix-in-dae-with-callbacks/123403 "2024-12-03T18:29:48Z")

</div>

Is there an elegant and efficient way to modify the mass matrix of a DAE upon an event triggered by a ContinuousCallback? The problem I’m solving is a lumped model for flow in a system. A key parameter is the direction …

---

## [Namespacing Symbols in \`ModelingToolkit.calculate\_jacobian\`](https://discourse.julialang.org/t/namespacing-symbols-in-modelingtoolkit-calculate-jacobian/123337)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 2\
**Last updated:** [December 3, 2024, 4:41pm UTC](https://discourse.julialang.org/t/namespacing-symbols-in-modelingtoolkit-calculate-jacobian/123337 "2024-12-03T16:41:07Z")

</div>

I (think I) need to retrieve the Jacobian of an ODESystem, but with namespaces for each symbol. For example, calling calculate\_jacobian on a system below produces a matrix with symbols without namespaces. using Astrodyn…

---

## [Tolerance for numerical-rank computation](https://discourse.julialang.org/t/tolerance-for-numerical-rank-computation/123372)

<div class="topic-metadata">

**Author:** [@ajinkya-k](https://discourse.julialang.org/u/ajinkya-k)\
**Replies:** 9\
**Last updated:** [December 3, 2024, 4:21pm UTC](https://discourse.julialang.org/t/tolerance-for-numerical-rank-computation/123372 "2024-12-03T16:21:46Z")

</div>

Hi all! Sorry to revive this but what is the right tolerance to use when using pivoted cholesky to compute rank? I find that using sqrt(eps(Float64)) usually gives me the same rank as the default rank method for Matrices…

---

## [Changing EPSG values from .shp file](https://discourse.julialang.org/t/changing-epsg-values-from-shp-file/122978)

<div class="topic-metadata">

**Author:** [@ivyc](https://discourse.julialang.org/u/ivyc)\
**Replies:** 7\
**Last updated:** [December 3, 2024, 3:42pm UTC](https://discourse.julialang.org/t/changing-epsg-values-from-shp-file/122978 "2024-12-03T15:42:00Z")

</div>

I am trying to convert my .shp file from an EPSG value of 26917 to a EPSG value of 4326. These seems to be an issue with my .shp file not having the EPSG built in. I have tried changing the EPSG using the code below but …

---

## [Nonlinear differential equation struggling to solve](https://discourse.julialang.org/t/nonlinear-differential-equation-struggling-to-solve/123405)

<div class="topic-metadata">

**Author:** [@Mishal](https://discourse.julialang.org/u/Mishal)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 1:29pm UTC](https://discourse.julialang.org/t/nonlinear-differential-equation-struggling-to-solve/123405 "2024-12-03T13:29:59Z")

</div>

Hi Guys Please refer to the attached code. The code solves a set of coupled differential equations. The code seems to work well for certain input parameters, however sometimes the system seems to be very stiff and does …

---

## [OpenCV function signatures](https://discourse.julialang.org/t/opencv-function-signatures/123145)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 1\
**Last updated:** [December 3, 2024, 12:10pm UTC](https://discourse.julialang.org/t/opencv-function-signatures/123145 "2024-12-03T12:10:02Z")

</div>

I’m trying to use the camera calibration functions in OpenCV.jl, but I can’t create arguments that would fit some of the functions’ signatures. For example one of OpenCV.calibrateCamera’s method signatures is: OpenCV.c…

---

## [Changing distance between axes and x/y guides?](https://discourse.julialang.org/t/changing-distance-between-axes-and-x-y-guides/70043)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 9\
**Last updated:** [December 2, 2024, 7:29pm UTC](https://discourse.julialang.org/t/changing-distance-between-axes-and-x-y-guides/70043 "2024-12-02T19:29:23Z")

</div>

How do I change the space between the frame/ticks/ticks numbers and the x/y axis guides? E.g. in this case: plot(x -\> x^2,xguide="X-axis",yguide="Y-axis") (red markings are added to me to show what distance I want t…

---

## [Tolerance specification for pivoted Cholesky](https://discourse.julialang.org/t/tolerance-specification-for-pivoted-cholesky/6863)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 7\
**Last updated:** [November 6, 2017, 7:30pm UTC](https://discourse.julialang.org/t/tolerance-specification-for-pivoted-cholesky/6863 "2017-11-06T19:30:22Z")

</div>

In this notebook I describe evaluating the rank of a model matrix X by forming a pivoted Cholesky factorization of X'X. I use this form because the X'X matrix will be evaluated whether or not the rank is needed. I woul…

---

## [Is sharedmemory really accelerates GPU kernel?](https://discourse.julialang.org/t/is-sharedmemory-really-accelerates-gpu-kernel/123343)

<div class="topic-metadata">

**Author:** [@shatanzikou](https://discourse.julialang.org/u/shatanzikou)\
**Replies:** 1\
**Last updated:** [December 2, 2024, 1:39pm UTC](https://discourse.julialang.org/t/is-sharedmemory-really-accelerates-gpu-kernel/123343 "2024-12-02T13:39:13Z")

</div>

Hello. I’ve been learning sharedmemory from here: https://pde-on-gpu.vaw.ethz.ch/lecture10/. And I’m going through the motion to understand this. But when I benchmark the kernel I wrote based on the lecture, I found …

---

## [Functions like set\_binary, etc. does not work in a user-defined function](https://discourse.julialang.org/t/functions-like-set-binary-etc-does-not-work-in-a-user-defined-function/123325)

<div class="topic-metadata">

**Author:** [@leejm516](https://discourse.julialang.org/u/leejm516)\
**Replies:** 3\
**Last updated:** [December 2, 2024, 1:37am UTC](https://discourse.julialang.org/t/functions-like-set-binary-etc-does-not-work-in-a-user-defined-function/123325 "2024-12-02T01:37:59Z")

</div>

Hello, I created a simple function that solves a JuMP MIP model with arrays as inputs. The problem I want to solve is minimize c’\*x s.t. Ax = b l \<= x \<= u some x\[i\] in {0, 1} \[vartype is a vector that defines th…

---

## [Publishing my HTTP2.jl work](https://discourse.julialang.org/t/publishing-my-http2-jl-work/82847)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 4\
**Last updated:** [December 1, 2024, 10:41pm UTC](https://discourse.julialang.org/t/publishing-my-http2-jl-work/82847 "2024-12-01T22:41:24Z")

</div>

Last year I did a significant amount of work on HTTP2.jl which I intended as a replacement to HTTP.jl with full support for both the HTTP 2.0 and HTTP 1.1 protocols. I believe that the “core logic” of this package is la…

---

## [Makie matrix image display issue](https://discourse.julialang.org/t/makie-matrix-image-display-issue/123281)

<div class="topic-metadata">

**Author:** [@Bananthahally](https://discourse.julialang.org/u/Bananthahally)\
**Replies:** 7\
**Last updated:** [December 1, 2024, 12:16pm UTC](https://discourse.julialang.org/t/makie-matrix-image-display-issue/123281 "2024-12-01T12:16:12Z")

</div>

Hi users The following function IMAGE\_SU\_A\_METRIC, using Makie.jl and CairoMakie.jl is meant to give an image of an input matrix SU\_A\_METRX using a couple of parameters from an input structure STR\_DTA\_AMT: function IM…

---

## [Minimize f(x) with |x|=1](https://discourse.julialang.org/t/minimize-f-x-with-x-1/123307)

<div class="topic-metadata">

**Author:** [@Nichola](https://discourse.julialang.org/u/Nichola)\
**Replies:** 5\
**Last updated:** [December 1, 2024, 7:21am UTC](https://discourse.julialang.org/t/minimize-f-x-with-x-1/123307 "2024-12-01T07:21:05Z")

</div>

What is the simplest way to minimize f(x) with |x|=1 where x is a vector ? (I know the gradient of f) I’ve checked the example on Using Equality and Inequality Constraints · Optimization.jl but the solution calls AmplNL…

---

## [Solving an SDP repeatedly where the matrix data changes in each repetition](https://discourse.julialang.org/t/solving-an-sdp-repeatedly-where-the-matrix-data-changes-in-each-repetition/123271)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 4\
**Last updated:** [November 30, 2024, 10:47pm UTC](https://discourse.julialang.org/t/solving-an-sdp-repeatedly-where-the-matrix-data-changes-in-each-repetition/123271 "2024-11-30T22:47:53Z")

</div>

Dear All, I am trying to solve the following semidefinite optimization problem in JuMP that I want to solve repeatedly: \\begin{align\*} p^{\\star}(\\alpha)=\\text{minimize}\_{X,y} &\\; \\mathbf{tr}CX+\\sum\_{i=1}^{n}c\_{i}y\_{i…

---

## [Trying to clear a layout but getting stuck at nested GridLayouts](https://discourse.julialang.org/t/trying-to-clear-a-layout-but-getting-stuck-at-nested-gridlayouts/123269)

<div class="topic-metadata">

**Author:** [@AMB](https://discourse.julialang.org/u/AMB)\
**Replies:** 4\
**Last updated:** [November 30, 2024, 7:37pm UTC](https://discourse.julialang.org/t/trying-to-clear-a-layout-but-getting-stuck-at-nested-gridlayouts/123269 "2024-11-30T19:37:09Z")

</div>

I’m trying to delete the layout altogether with the code, below, because I want to regenerate the content in response to input from the user. clear\_layout(fig.layout) successfully removes all the Axes, Labels, etc, but I…

---

## [Optimizing over 3d array: adjoint not defined for Array{Float64, 3}](https://discourse.julialang.org/t/optimizing-over-3d-array-adjoint-not-defined-for-array-float64-3/123235)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 2\
**Last updated:** [November 30, 2024, 4:09pm UTC](https://discourse.julialang.org/t/optimizing-over-3d-array-adjoint-not-defined-for-array-float64-3/123235 "2024-11-30T16:09:09Z")

</div>

I’m trying to optimize over a 3d array. It seems like it doesn’t want to handle a 3d array, but I’m not sure why. Is there a solution for this? using Optimization, Optim, OptimizationOptimJL, Zygote, DifferentiationInte…

---

## [Naming JuMP constraint in a loop](https://discourse.julialang.org/t/naming-jump-constraint-in-a-loop/123238)

<div class="topic-metadata">

**Author:** [@priantop](https://discourse.julialang.org/u/priantop)\
**Replies:** 5\
**Last updated:** [November 29, 2024, 11:00pm UTC](https://discourse.julialang.org/t/naming-jump-constraint-in-a-loop/123238 "2024-11-29T23:00:29Z")

</div>

Hi, Sorry for the rookie question I am trying to find a way to name constraints inside a loop I understand that it is common to define a constraint with the base name inside the @constraint below is the MWE using Ju…

---

## [Change of return syntax for loss\_function in Optimization.jl](https://discourse.julialang.org/t/change-of-return-syntax-for-loss-function-in-optimization-jl/123224)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 8\
**Last updated:** [November 29, 2024, 7:48pm UTC](https://discourse.julialang.org/t/change-of-return-syntax-for-loss-function-in-optimization-jl/123224 "2024-11-29T19:48:19Z")

</div>

I’m using Optimization.jl to optimize conditions of ODE simulation to a given objective. Before the latest update (4.0.0), one could use this return syntax function loss\_adjoint(fullp, batch, time\_batch) pred = pre…

---

## [Zoomed inset using Makie?](https://discourse.julialang.org/t/zoomed-inset-using-makie/110717)

<div class="topic-metadata">

**Author:** [@rongcuid](https://discourse.julialang.org/u/rongcuid)\
**Replies:** 6\
**Last updated:** [November 29, 2024, 7:07pm UTC](https://discourse.julialang.org/t/zoomed-inset-using-makie/110717 "2024-11-29T19:07:39Z")

</div>

Is it possible to achieve zooming in a portion of an (already drawn) axis and display it as another axis, or as an inset? Something like this in matplotlib:

---

## [Metal.jl weird behavior above 2^27](https://discourse.julialang.org/t/metal-jl-weird-behavior-above-2-27/123261)

<div class="topic-metadata">

**Author:** [@jvsaddic](https://discourse.julialang.org/u/jvsaddic)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 6:53pm UTC](https://discourse.julialang.org/t/metal-jl-weird-behavior-above-2-27/123261 "2024-11-29T18:53:51Z")

</div>

Hi! I am new to GPU programming, and I have been experimenting with Metal.jl As practice, I wrote this little program to estimate pi using the Monte Carlo method. using Metal using Random throw\_dart(a) = (2\*a - 1)^2 d…

---

## [ERROR: UndefVarError: \`connect\` not defined in \`Main\`](https://discourse.julialang.org/t/error-undefvarerror-connect-not-defined-in-main/123244)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 3\
**Last updated:** [November 29, 2024, 1:45pm UTC](https://discourse.julialang.org/t/error-undefvarerror-connect-not-defined-in-main/123244 "2024-11-29T13:45:21Z")

</div>

Hi, I’m reproducing the Acausal Modeling for Nonlinear Control and Analysis # =========================================================== # Example from https://www.youtube.com/watch?v=l3odTEy69UU&t=2488s # ============…

---

## [ABM Agents.jl model properties as a nested dictionary](https://discourse.julialang.org/t/abm-agents-jl-model-properties-as-a-nested-dictionary/123110)

<div class="topic-metadata">

**Author:** [@elisadonati23](https://discourse.julialang.org/u/elisadonati23)\
**Replies:** 3\
**Last updated:** [November 29, 2024, 1:22pm UTC](https://discourse.julialang.org/t/abm-agents-jl-model-properties-as-a-nested-dictionary/123110 "2024-11-29T13:22:28Z")

</div>

Dear Julia and the Agents.jl community, I’m currently working on a multispecies agent-based model (ABM) with sardine and anchovy superindividuals, and I’m planning to transition to the multi-agent framework soon. My mod…

---

## [Makie mathcal boldface](https://discourse.julialang.org/t/makie-mathcal-boldface/123233)

<div class="topic-metadata">

**Author:** [@clm](https://discourse.julialang.org/u/clm)\
**Replies:** 1\
**Last updated:** [November 29, 2024, 7:04am UTC](https://discourse.julialang.org/t/makie-mathcal-boldface/123233 "2024-11-29T07:04:32Z")

</div>

Hi all, I’m having an issue using calligraphic fonts using LaTeXStrings.jl within Makie. A previous question noted that the default calligraphic fonts didn’t align between LaTeXStrings and their tex file – and this prob…

---

## [Staff Scheduling Optimization](https://discourse.julialang.org/t/staff-scheduling-optimization/123230)

<div class="topic-metadata">

**Author:** [@Honcho868](https://discourse.julialang.org/u/Honcho868)\
**Replies:** 7\
**Last updated:** [November 29, 2024, 1:12am UTC](https://discourse.julialang.org/t/staff-scheduling-optimization/123230 "2024-11-29T01:12:57Z")

</div>

So im trying to code the following model from the paper in JuMP to determine optimal number of staff for 3 shifts daily for 7 days a week where staff must work atleast 1 shift per day This is the code: using JuMP using…

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

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