# Latest

**URL:** https://discourse.julialang.org/latest.md?page=212

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

**Page:** 213

---

## [Dual to PSD Constraint in JuMP](https://discourse.julialang.org/t/dual-to-psd-constraint-in-jump/126352)

<div class="topic-metadata">

**Author:** [@lopenguin](https://discourse.julialang.org/u/lopenguin)\
**Replies:** 1\
**Last updated:** [February 26, 2025, 7:42pm UTC](https://discourse.julialang.org/t/dual-to-psd-constraint-in-jump/126352 "2025-02-26T19:42:46Z")

</div>

Hi all, This is my first forum post so feedback is welcome. In summary, finding the dual to a PSD constraint in JuMP is not particularly intuitive and certainly not well-documented. I show the approach that worked for m…

---

## [Bad interaction of Metal.jl and PyPlot on julia 1.11.2](https://discourse.julialang.org/t/bad-interaction-of-metal-jl-and-pyplot-on-julia-1-11-2/123759)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 1\
**Last updated:** [February 26, 2025, 6:01pm UTC](https://discourse.julialang.org/t/bad-interaction-of-metal-jl-and-pyplot-on-julia-1-11-2/123759 "2025-02-26T18:01:09Z")

</div>

Dearests, Still fighting to test the GPU on my new macbook pro M4. Fresh new environment on version 1.11.2 (TEST\_PYPLOT) pkg\> add Metal, PyPlot (TEST\_PYPLOT) pkg\> add Metal, PyPlot Resolving package versions... …

---

## [Customised Objective Function using PMD.jl](https://discourse.julialang.org/t/customised-objective-function-using-pmd-jl/126253)

<div class="topic-metadata">

**Author:** [@alireza33zz](https://discourse.julialang.org/u/alireza33zz)\
**Replies:** 2\
**Last updated:** [February 26, 2025, 5:58pm UTC](https://discourse.julialang.org/t/customised-objective-function-using-pmd-jl/126253 "2025-02-26T17:58:28Z")

</div>

Hello I am using PowerModelsDistribution.jl to solve my 3-phase OPF, how can I only change the objective function? By default it is the minimization of fuel cost, I want to replace it with a non-linear function. Thanks…

---

## [CPU time vs Wallclock](https://discourse.julialang.org/t/cpu-time-vs-wallclock/114776)

<div class="topic-metadata">

**Author:** [@ShGE](https://discourse.julialang.org/u/ShGE)\
**Replies:** 11\
**Last updated:** [February 26, 2025, 5:41pm UTC](https://discourse.julialang.org/t/cpu-time-vs-wallclock/114776 "2025-02-26T17:41:07Z")

</div>

Hello there solve\_time does not return the CPU time even if I set set\_optimizer\_attribute(model, “CPXPARAM\_ClockType”, 1) # CPU clock time when using CPLEX. is there any way to get CPU time in Jump from whatever s…

---

## [How to Collapse Dendrogram Branches to n Number of Leaves](https://discourse.julialang.org/t/how-to-collapse-dendrogram-branches-to-n-number-of-leaves/126323)

<div class="topic-metadata">

**Author:** [@ZVerdup](https://discourse.julialang.org/u/ZVerdup)\
**Replies:** 3\
**Last updated:** [February 26, 2025, 5:36pm UTC](https://discourse.julialang.org/t/how-to-collapse-dendrogram-branches-to-n-number-of-leaves/126323 "2025-02-26T17:36:43Z")

</div>

Hi, I need some guidance on how to handle the readability of dendrograms plotted using thousands of observations. I want to use to dendrogram to decide how many clusters I should use for further analysis. My current str…

---

## [Implicit differentiation of rootfinding problem (w/ numerical issues)](https://discourse.julialang.org/t/implicit-differentiation-of-rootfinding-problem-w-numerical-issues/126293)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 13\
**Last updated:** [February 26, 2025, 3:01pm UTC](https://discourse.julialang.org/t/implicit-differentiation-of-rootfinding-problem-w-numerical-issues/126293 "2025-02-26T15:01:40Z")

</div>

I have written an algorithm that solves x = \\log\\left( \\sum\_i \\exp(a\_i + z\_i y) \\right) for y given x, a\_i, z\_i. It uses Newton’s method, which is the trivial part, the difficulty was getting a cheap but reasonable in…

---

## [Segmentation Fault in REPL when using PyCall and networkx](https://discourse.julialang.org/t/segmentation-fault-in-repl-when-using-pycall-and-networkx/126334)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 11:00am UTC](https://discourse.julialang.org/t/segmentation-fault-in-repl-when-using-pycall-and-networkx/126334 "2025-02-26T11:00:09Z")

</div>

I tried to use networkx via PyCall today. This triggered a segment fault. It does not seem to be problem will running this as a script. \_ \_ \_ \_(\_)\_ | Documentation: https://docs.julialang.or…

---

## [A time-indexed MILP model for tje job shop with makespan minimization](https://discourse.julialang.org/t/a-time-indexed-milp-model-for-tje-job-shop-with-makespan-minimization/126297)

<div class="topic-metadata">

**Author:** [@baprata](https://discourse.julialang.org/u/baprata)\
**Replies:** 2\
**Last updated:** [February 26, 2025, 10:32am UTC](https://discourse.julialang.org/t/a-time-indexed-milp-model-for-tje-job-shop-with-makespan-minimization/126297 "2025-02-26T10:32:13Z")

</div>

Dear colleagues, I am coding the time-indexed model for the job shop scheduling problem as presented by Hu and Beck (Equations (10)-(15) in Redirecting), but the solution is not correct. I successfully implemented all t…

---

## [Migrating from Ansys to Julia](https://discourse.julialang.org/t/migrating-from-ansys-to-julia/126138)

<div class="topic-metadata">

**Author:** [@emil\_hedevang\_sgre](https://discourse.julialang.org/u/emil_hedevang_sgre)\
**Replies:** 6\
**Last updated:** [February 26, 2025, 10:06am UTC](https://discourse.julialang.org/t/migrating-from-ansys-to-julia/126138 "2025-02-26T10:06:38Z")

</div>

Hi all. Together with a colleague I am exploring how to migrate certain finite element computations from Ansys Mechanical to something in the Julia world. The computations are fairly standard: Suppose that a solid struc…

---

## [One colorbar for multiple axes](https://discourse.julialang.org/t/one-colorbar-for-multiple-axes/77021)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 10\
**Last updated:** [February 26, 2025, 9:53am UTC](https://discourse.julialang.org/t/one-colorbar-for-multiple-axes/77021 "2025-02-26T09:53:54Z")

</div>

I have the following single figure with multiple heatmaps: The limits of the colorbar are manually set to the minimum and maximum of the values plotted. This is bound to give an incorrect mapping if one of the heatma…

---

## [Check if optional arguments with default values of method are specified](https://discourse.julialang.org/t/check-if-optional-arguments-with-default-values-of-method-are-specified/126295)

<div class="topic-metadata">

**Author:** [@JADekker](https://discourse.julialang.org/u/JADekker)\
**Replies:** 6\
**Last updated:** [February 26, 2025, 8:57am UTC](https://discourse.julialang.org/t/check-if-optional-arguments-with-default-values-of-method-are-specified/126295 "2025-02-26T08:57:26Z")

</div>

Hi, I’m writing some simulation code in which I run simulations for various choices of parameters and save the results to some files, where file-names are generated automatically by collecting the parameter names and val…

---

## [Displaying text values of ABMObservable in Agents.jl](https://discourse.julialang.org/t/displaying-text-values-of-abmobservable-in-agents-jl/126322)

<div class="topic-metadata">

**Author:** [@ultradian](https://discourse.julialang.org/u/ultradian)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 5:57am UTC](https://discourse.julialang.org/t/displaying-text-values-of-abmobservable-in-agents-jl/126322 "2025-02-26T05:57:53Z")

</div>

I want to add display of text values and statistics in an interactive Agents model, but I can’t get it to work. As an example, if we start with the Schelling model from the Tutorial: using Agents using GLMakie space = …

---

## [Franklin.jl for engineering content](https://discourse.julialang.org/t/franklin-jl-for-engineering-content/126263)

<div class="topic-metadata">

**Author:** [@mzaffalon](https://discourse.julialang.org/u/mzaffalon)\
**Replies:** 3\
**Last updated:** [February 26, 2025, 4:30am UTC](https://discourse.julialang.org/t/franklin-jl-for-engineering-content/126263 "2025-02-26T04:30:41Z")

</div>

I am coming to my limits while trying to port this Quarto document to Franklin.jl. I have little knowledge of HTML and CSS. From reading the documentations and the GitHub issues, I did not find a way to generate a figur…

---

## [New Package: EISAnalysis.jl](https://discourse.julialang.org/t/new-package-eisanalysis-jl/126319)

<div class="topic-metadata">

**Author:** [@bdamerau](https://discourse.julialang.org/u/bdamerau)\
**Replies:** 0\
**Last updated:** [February 26, 2025, 12:58am UTC](https://discourse.julialang.org/t/new-package-eisanalysis-jl/126319 "2025-02-26T00:58:53Z")

</div>

Hi All! I’m relatively new to Julia, and I’m in the process of registering a new package, EISAnalysis.jl. The purpose is to introduce an easy syntax for generating and fitting circuit models via REPL. Specifically it is…

---

## [What are people using for notebooks?](https://discourse.julialang.org/t/what-are-people-using-for-notebooks/125810)

<div class="topic-metadata">

**Author:** [@rmfritz](https://discourse.julialang.org/u/rmfritz)\
**Replies:** 15\
**Last updated:** [February 26, 2025, 12:25am UTC](https://discourse.julialang.org/t/what-are-people-using-for-notebooks/125810 "2025-02-26T00:25:27Z")

</div>

I’ve been using Jupyter, but I know there is also Pluto, and perhaps others. Does anyone have suggestions or preferences?

---

## [Autodiffing with Enzyme through a DifferentialEquations ODEproblem](https://discourse.julialang.org/t/autodiffing-with-enzyme-through-a-differentialequations-odeproblem/126257)

<div class="topic-metadata">

**Author:** [@dameka](https://discourse.julialang.org/u/dameka)\
**Replies:** 8\
**Last updated:** [February 25, 2025, 10:19pm UTC](https://discourse.julialang.org/t/autodiffing-with-enzyme-through-a-differentialequations-odeproblem/126257 "2025-02-25T22:19:52Z")

</div>

I’m trying to autodiff an ODE problem that I’m solving with DifferentialEquations.jl. Here’s my code: begin # Import needed packages using DifferentialEquations using Enzyme #using Zygote #using SciMLSensitivity en…

---

## [Shasums in SHA](https://discourse.julialang.org/t/shasums-in-sha/126310)

<div class="topic-metadata">

**Author:** [@dimsinel](https://discourse.julialang.org/u/dimsinel)\
**Replies:** 1\
**Last updated:** [February 25, 2025, 9:05pm UTC](https://discourse.julialang.org/t/shasums-in-sha/126310 "2025-02-25T21:05:56Z")

</div>

Hello everyone. I am trying to get the shasums of a tarball through SHA\< but I just don t seem to do it right, SHA.sha256 and linux shasum give diferent results. Am I using the wrong function? Here’s what I do: julia\>…

---

## [How to Obtain Efficient Garbage Collection of C-Ptrs](https://discourse.julialang.org/t/how-to-obtain-efficient-garbage-collection-of-c-ptrs/126307)

<div class="topic-metadata">

**Author:** [@ejmeitz](https://discourse.julialang.org/u/ejmeitz)\
**Replies:** 5\
**Last updated:** [February 25, 2025, 8:52pm UTC](https://discourse.julialang.org/t/how-to-obtain-efficient-garbage-collection-of-c-ptrs/126307 "2025-02-25T20:52:22Z")

</div>

I am working with a C++ wrapper where the most common type is a wrapper around a shared pointer to memory. Essentially an array view. Lets call this type MyArray. My general question is given function which returns MyAr…

---

## [Juniper Boolean variable example with MTK](https://discourse.julialang.org/t/juniper-boolean-variable-example-with-mtk/126144)

<div class="topic-metadata">

**Author:** [@dmetivie](https://discourse.julialang.org/u/dmetivie)\
**Replies:** 3\
**Last updated:** [February 25, 2025, 7:31pm UTC](https://discourse.julialang.org/t/juniper-boolean-variable-example-with-mtk/126144 "2025-02-25T19:31:42Z")

</div>

I want to reproduce the Juniper README example (with Binary variable and nonlinear non-convex objective). It has been done with JuMP.jl, with Optimization.jl (here). But I cannot reproduce it using ModelingToolKit.jl I…

---

## [Is there anything like vmap to vectorize a computation](https://discourse.julialang.org/t/is-there-anything-like-vmap-to-vectorize-a-computation/126288)

<div class="topic-metadata">

**Author:** [@Leander](https://discourse.julialang.org/u/Leander)\
**Replies:** 10\
**Last updated:** [February 25, 2025, 6:48pm UTC](https://discourse.julialang.org/t/is-there-anything-like-vmap-to-vectorize-a-computation/126288 "2025-02-25T18:48:42Z")

</div>

I want to evaluate using julia for a project and so far it was straightforward. The setting is the following, I have a bunch of functions (moment-generating functions over different parameters), for which I want to compu…

---

## [Window values in Images.jl](https://discourse.julialang.org/t/window-values-in-images-jl/126301)

<div class="topic-metadata">

**Author:** [@fdekerme](https://discourse.julialang.org/u/fdekerme)\
**Replies:** 0\
**Last updated:** [February 25, 2025, 5:07pm UTC](https://discourse.julialang.org/t/window-values-in-images-jl/126301 "2025-02-25T17:07:36Z")

</div>

Hello :grinning:, I’m using Images.jl in Pluto.jl. I have matrix assimilated as images with values ranging from about 0 to 4. When I plot these images using Images.jl, all values greater than 1 are “clamped” to 1, and t…

---

## [CUDNN in Julia](https://discourse.julialang.org/t/cudnn-in-julia/84330)

<div class="topic-metadata">

**Author:** [@Jonas208](https://discourse.julialang.org/u/Jonas208)\
**Replies:** 6\
**Last updated:** [February 25, 2025, 5:05pm UTC](https://discourse.julialang.org/t/cudnn-in-julia/84330 "2025-02-25T17:05:17Z")

</div>

Is there any way - or what is the best way - to use CUDNN in Julia? Details: I am interested in that topic because I want do add GPU-acceleration (Nvidia) to my own little Deep Learning module (it is not available anyw…

---

## [Help using cuDNN in Julia](https://discourse.julialang.org/t/help-using-cudnn-in-julia/126232)

<div class="topic-metadata">

**Author:** [@notGiGi](https://discourse.julialang.org/u/notGiGi)\
**Replies:** 1\
**Last updated:** [February 25, 2025, 5:02pm UTC](https://discourse.julialang.org/t/help-using-cudnn-in-julia/126232 "2025-02-25T17:02:52Z")

</div>

Hello, everyone. I’m trying to use cuDNN in Julia, but so far it’s not working as expected. I’m very confused. It is supposed to be included in CUDA.jl so that I can use using CUDA.CUDNN, but when I do that, I get the er…

---

## [Non Commercial licensing in mainstream Julia Packages](https://discourse.julialang.org/t/non-commercial-licensing-in-mainstream-julia-packages/125832)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 15\
**Last updated:** [February 25, 2025, 3:57pm UTC](https://discourse.julialang.org/t/non-commercial-licensing-in-mainstream-julia-packages/125832 "2025-02-25T15:57:46Z")

</div>

Just saw my first rejection from our company’s Nexus license compatibility checker for non-commercial use license. Is there a way to adopt a philosophy to not include licenses into mainstream packages that prohibit no…

---

## [ModelingToolkit and Noise Processes for uniform noise definition](https://discourse.julialang.org/t/modelingtoolkit-and-noise-processes-for-uniform-noise-definition/126291)

<div class="topic-metadata">

**Author:** [@NinaOmejc](https://discourse.julialang.org/u/NinaOmejc)\
**Replies:** 8\
**Last updated:** [February 25, 2025, 3:50pm UTC](https://discourse.julialang.org/t/modelingtoolkit-and-noise-processes-for-uniform-noise-definition/126291 "2025-02-25T15:50:15Z")

</div>

Hi, I am using MTK to set up a hierarchical dynamical system. As the input to the (otherwise ODE) system can also be random uniform noise, I need to set up SDESystem (instead of ODESystem). However, I cannot find out ho…

---

## [Strang Splitting with SplitODEProblem](https://discourse.julialang.org/t/strang-splitting-with-splitodeproblem/126255)

<div class="topic-metadata">

**Author:** [@svretina](https://discourse.julialang.org/u/svretina)\
**Replies:** 2\
**Last updated:** [February 25, 2025, 3:27pm UTC](https://discourse.julialang.org/t/strang-splitting-with-splitodeproblem/126255 "2025-02-25T15:27:46Z")

</div>

Hi all, I am interested in implementing a split ODE problem, I am solving the wave equation with a Finite Volume scheme such as MUSCL with a discontinuous source term. I want to implement a fractional step method and …

---

## [Julia User Group Trondheim: Monthly Meeting](https://discourse.julialang.org/t/julia-user-group-trondheim-monthly-meeting/119674)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 9\
**Last updated:** [February 25, 2025, 3:20pm UTC](https://discourse.julialang.org/t/julia-user-group-trondheim-monthly-meeting/119674 "2025-02-25T15:20:47Z")

</div>

Yesterday we had the first User Group Meeting in Trondheim, thanks for everyone who participated – it was great! We discussed two points for next – and hopefully regular meetings To find a room at NTNU, so it is easi…

---

## [Ver 1.11, Global Main.FTYPE does not exist](https://discourse.julialang.org/t/ver-1-11-global-main-ftype-does-not-exist/126171)

<div class="topic-metadata">

**Author:** [@ttidrick](https://discourse.julialang.org/u/ttidrick)\
**Replies:** 4\
**Last updated:** [February 25, 2025, 3:06pm UTC](https://discourse.julialang.org/t/ver-1-11-global-main-ftype-does-not-exist/126171 "2025-02-25T15:06:57Z")

</div>

Hi All, on: Julia 1.11 code: include(“…/src/mfbd.jl”) using Main.MFBD where: MFBD is the module name for mfbd.jl yields: ErrorException; ‘Global Main.FTYPE does not exist and cannot be assigned. Declare it using g…

---

## [Using @btime and printing a Vector{Vector} yields infinite loop](https://discourse.julialang.org/t/using-btime-and-printing-a-vector-vector-yields-infinite-loop/126289)

<div class="topic-metadata">

**Author:** [@Bernd\_Blasius](https://discourse.julialang.org/u/Bernd_Blasius)\
**Replies:** 3\
**Last updated:** [February 25, 2025, 2:38pm UTC](https://discourse.julialang.org/t/using-btime-and-printing-a-vector-vector-yields-infinite-loop/126289 "2025-02-25T14:38:35Z")

</div>

The following code produces an infinite loop using BenchmarkTools v = Vector{Vector}(undef,1) @btime println(v) Is this a bug or intended behaviour?

---

## [Making Enzyme.jl work with the integrator interface of OrdinaryDiffEq.jl](https://discourse.julialang.org/t/making-enzyme-jl-work-with-the-integrator-interface-of-ordinarydiffeq-jl/126186)

<div class="topic-metadata">

**Author:** [@Rittick\_Roy](https://discourse.julialang.org/u/Rittick_Roy)\
**Replies:** 11\
**Last updated:** [February 25, 2025, 1:30pm UTC](https://discourse.julialang.org/t/making-enzyme-jl-work-with-the-integrator-interface-of-ordinarydiffeq-jl/126186 "2025-02-25T13:30:33Z")

</div>

I’m new to using autodiff in Julia and have some issues making Enzyme.jl work with OrdinaryDiffEq.jl. I want to take the a reverse mode derivative of my differential equation solution with respect to the input parameter …

[Previous page](https://discourse.julialang.org/latest.md?page=211)

[Next page](https://discourse.julialang.org/latest.md?page=213)
