# Latest

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

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

**Page:** 461

---

## [Percentages in pie plot](https://discourse.julialang.org/t/percentages-in-pie-plot/82366)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 9\
**Last updated:** [March 12, 2024, 3:03pm UTC](https://discourse.julialang.org/t/percentages-in-pie-plot/82366 "2024-03-12T15:03:02Z")

</div>

How to show percentages also in pie plot ? I want to show percentages of “Will churn” and “Will not churn”.

---

## ["immutable struct\_name" once okay in julia?](https://discourse.julialang.org/t/immutable-struct-name-once-okay-in-julia/111503)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 4\
**Last updated:** [March 12, 2024, 3:01pm UTC](https://discourse.julialang.org/t/immutable-struct-name-once-okay-in-julia/111503 "2024-03-12T15:01:51Z")

</div>

I see codes like immutable sector Sz::Int64 kx::Float64 ky::Float64 z::Int64 end in some github repository. Now it should be struct sector Sz::Int64 kx::Float64 ky::Float64 z::Int64 en…

---

## [Matrix Factorials](https://discourse.julialang.org/t/matrix-factorials/111515)

<div class="topic-metadata">

**Author:** [@ZekeMarshall](https://discourse.julialang.org/u/ZekeMarshall)\
**Replies:** 4\
**Last updated:** [March 12, 2024, 2:05pm UTC](https://discourse.julialang.org/t/matrix-factorials/111515 "2024-03-12T14:05:12Z")

</div>

Hi, I’ve been looking for a function to calculate the factorial of a matrix, but haven’t had any luck. I was wondering whether someone could point me in the right direction? Apologies if i have missed something obviou…

---

## [Broken link in unit test documentation](https://discourse.julialang.org/t/broken-link-in-unit-test-documentation/111514)

<div class="topic-metadata">

**Author:** [@madhavkrishnan](https://discourse.julialang.org/u/madhavkrishnan)\
**Replies:** 3\
**Last updated:** [March 12, 2024, 1:09pm UTC](https://discourse.julialang.org/t/broken-link-in-unit-test-documentation/111514 "2024-03-12T13:09:16Z")

</div>

I was reading the documentation on unit tests at https://docs.julialang.org/en/v1/stdlib/Test/#~:text=adding%20tests%20to%20your%20Julia%20Package.. The highligted link which resolves to https://pkgdocs.julialang.org/d…

---

## [UndefVarError: HierarchicalClustering not defined](https://discourse.julialang.org/t/undefvarerror-hierarchicalclustering-not-defined/97767)

<div class="topic-metadata">

**Author:** [@Selly\_Shivute](https://discourse.julialang.org/u/Selly_Shivute)\
**Replies:** 14\
**Last updated:** [March 12, 2024, 11:36am UTC](https://discourse.julialang.org/t/undefvarerror-hierarchicalclustering-not-defined/97767 "2024-03-12T11:36:24Z")

</div>

i m trying create a HierarchicalClustering using linkage but i m getting UndefVarError: HierarchicalClustering not defined… the package is installed

---

## [Displaying program generated markdown](https://discourse.julialang.org/t/displaying-program-generated-markdown/64997)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 8\
**Last updated:** [March 12, 2024, 11:31am UTC](https://discourse.julialang.org/t/displaying-program-generated-markdown/64997 "2024-03-12T11:31:14Z")

</div>

Apologies if this is an obvious question… I have a function that generates a big chunk of markdown with embedded newline characters. A simple version would be: function makemd() md"# HELLO\\n## Some\\n \* list\\n\* list\\n…

---

## [Inherit from a concrete type](https://discourse.julialang.org/t/inherit-from-a-concrete-type/111291)

<div class="topic-metadata">

**Author:** [@Matthijs\_1971](https://discourse.julialang.org/u/Matthijs_1971)\
**Replies:** 6\
**Last updated:** [March 12, 2024, 10:28am UTC](https://discourse.julialang.org/t/inherit-from-a-concrete-type/111291 "2024-03-12T10:28:17Z")

</div>

function func\_a(arg::Vector{\<: Bool}) println(arg) end function func\_b(arg::Vector{Bool}) println(arg) end v = \[true, false, false, true\] func\_a(v) func\_b(v) Does it make sense to use the \<: operator on a concrete…

---

## [Isposdef() true with small negative eigenvalues?](https://discourse.julialang.org/t/isposdef-true-with-small-negative-eigenvalues/111504)

<div class="topic-metadata">

**Author:** [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)\
**Replies:** 3\
**Last updated:** [March 12, 2024, 7:51am UTC](https://discourse.julialang.org/t/isposdef-true-with-small-negative-eigenvalues/111504 "2024-03-12T07:51:58Z")

</div>

Hi all, I’m puzzled by eigen() and isposdef() acting on r'r for this matrix r using LinearAlgebra r = \[ 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 -1.0 1.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 1.0 -2.…

---

## [Automatic package links are broken](https://discourse.julialang.org/t/automatic-package-links-are-broken/110780)

<div class="topic-metadata">

**Author:** [@ianfiske](https://discourse.julialang.org/u/ianfiske)\
**Replies:** 4\
**Last updated:** [March 12, 2024, 7:14am UTC](https://discourse.julialang.org/t/automatic-package-links-are-broken/110780 "2024-03-12T07:14:57Z")

</div>

The links introduced here Automatic package links - #4 by mbauman such as DifferentialEquations are currently being redirected to JuliaHub which is a 404 landing page.

---

## [What is wrong with this function](https://discourse.julialang.org/t/what-is-wrong-with-this-function/111500)

<div class="topic-metadata">

**Author:** [@jiang\_ming\_zhang](https://discourse.julialang.org/u/jiang_ming_zhang)\
**Replies:** 2\
**Last updated:** [March 12, 2024, 6:45am UTC](https://discourse.julialang.org/t/what-is-wrong-with-this-function/111500 "2024-03-12T06:45:40Z")

</div>

julia\> function setBit{I\<:Integer}(i::I,bit::Int64) return (i | (1 \<\< (bit-1)))::I end ERROR: UndefVarError: \`setBit\` not defined Stacktrace: \[1\] top-level scope @ REPL\[1\]:1 This function is from a…

---

## [How to extract number of words (for time reading a post) in franklin.jl](https://discourse.julialang.org/t/how-to-extract-number-of-words-for-time-reading-a-post-in-franklin-jl/111502)

<div class="topic-metadata">

**Author:** [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Replies:** 0\
**Last updated:** [March 12, 2024, 6:11am UTC](https://discourse.julialang.org/t/how-to-extract-number-of-words-for-time-reading-a-post-in-franklin-jl/111502 "2024-03-12T06:11:02Z")

</div>

I’m looking to improve my blog a bit with Franklin, and one thing I want to add to make it more user-friendly is something like the number of words and the approximate reading time (this as a simple calculation of propor…

---

## [Convex.jl for SDP](https://discourse.julialang.org/t/convex-jl-for-sdp/111474)

<div class="topic-metadata">

**Author:** [@iHany](https://discourse.julialang.org/u/iHany)\
**Replies:** 2\
**Last updated:** [March 12, 2024, 4:01am UTC](https://discourse.julialang.org/t/convex-jl-for-sdp/111474 "2024-03-12T04:01:56Z")

</div>

I am trying to follow up \[1, Example 1\]. This involves semidefinite programming described in Corollary 1: The following is what I’ve tried, and basically I think I need some specialized syntax for SDP. Trial Code us…

---

## [Help Plotting with Ripserer](https://discourse.julialang.org/t/help-plotting-with-ripserer/111498)

<div class="topic-metadata">

**Author:** [@empty-inch](https://discourse.julialang.org/u/empty-inch)\
**Replies:** 0\
**Last updated:** [March 12, 2024, 3:12am UTC](https://discourse.julialang.org/t/help-plotting-with-ripserer/111498 "2024-03-12T03:12:01Z")

</div>

Hello! I am trying to use the Ripserer package to do some TDA on a time series, following the example here: Sublevel Set Persistent Homology · Ripserer.jl When I finished writing this post, I stumbled across a newer ver…

---

## [How to use julia parser out of julia](https://discourse.julialang.org/t/how-to-use-julia-parser-out-of-julia/111438)

<div class="topic-metadata">

**Author:** [@hsolerkalinovski](https://discourse.julialang.org/u/hsolerkalinovski)\
**Replies:** 8\
**Last updated:** [March 11, 2024, 11:16pm UTC](https://discourse.julialang.org/t/how-to-use-julia-parser-out-of-julia/111438 "2024-03-11T23:16:00Z")

</div>

Hello, and thanks for dedicating your time at reading my question, even if you can’t help em regarding it. For the couple past months, I’ve been enrolled in a project where I must analyze code change patterns in open so…

---

## [Failed to remove pidfile on close](https://discourse.julialang.org/t/failed-to-remove-pidfile-on-close/111497)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 0\
**Last updated:** [March 12, 2024, 1:38am UTC](https://discourse.julialang.org/t/failed-to-remove-pidfile-on-close/111497 "2024-03-12T01:38:53Z")

</div>

I am trying to run a Julia script on a Linux cluster, and I see the following warning/error. I use Distributed.jl package to addprocs. It would be helpful if someone could point at the exact cause and help resolve it! …

---

## [What does manifest\_usage.toml file do?](https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 6\
**Last updated:** [November 1, 2023, 7:39pm UTC](https://discourse.julialang.org/t/what-does-manifest-usage-toml-file-do/105633 "2023-11-01T19:39:12Z")

</div>

As the title says, what’s the purpose of manifest\_usage.toml? I have a Julia project that has its own project.toml and manifest.toml. When I try to test this project, I sometimes encounter an error that says: Activatin…

---

## [Nonconvex.jl variable names](https://discourse.julialang.org/t/nonconvex-jl-variable-names/111330)

<div class="topic-metadata">

**Author:** [@rtapia](https://discourse.julialang.org/u/rtapia)\
**Replies:** 9\
**Last updated:** [March 11, 2024, 11:44pm UTC](https://discourse.julialang.org/t/nonconvex-jl-variable-names/111330 "2024-03-11T23:44:04Z")

</div>

Hello, How does Nonconvex.jl differentiate variables? To define variables the definition simply define an upper and lower bound values addvar!(model, lower, upper), so how does it differentiate between variables across …

---

## [Nonconvex JuMP model to DictModel cannot see constraints](https://discourse.julialang.org/t/nonconvex-jump-model-to-dictmodel-cannot-see-constraints/111485)

<div class="topic-metadata">

**Author:** [@rtapia](https://discourse.julialang.org/u/rtapia)\
**Replies:** 2\
**Last updated:** [March 11, 2024, 11:40pm UTC](https://discourse.julialang.org/t/nonconvex-jump-model-to-dictmodel-cannot-see-constraints/111485 "2024-03-11T23:40:15Z")

</div>

Hello, Following the example from DictModel definition · Nonconvex.jl using JuMP, Nonconvex jump\_model = JuMP.Model() @variable jump\_model 0 \<= x\[i=1:3\] \<= 1 @constraint jump\_model sum(x) \<= 1 model = DictModel(jump\_mo…

---

## [Nonconvex and Matrix Variables](https://discourse.julialang.org/t/nonconvex-and-matrix-variables/82056)

<div class="topic-metadata">

**Author:** [@chupin](https://discourse.julialang.org/u/chupin)\
**Replies:** 9\
**Last updated:** [March 11, 2024, 11:20pm UTC](https://discourse.julialang.org/t/nonconvex-and-matrix-variables/82056 "2024-03-11T23:20:01Z")

</div>

Is there any way to deal with matrix variables with Nonconvex lib ? I tried something like: using Nonconvex Nonconvex.@load Ipopt f(x) = sqrt(x\[2,2\]) g(x, a, b) = (a\*x\[1,2\] + b)^3 - x\[2,1\] model = Model(f) addvar!(mo…

---

## [Derivatives at infinity issue](https://discourse.julialang.org/t/derivatives-at-infinity-issue/111445)

<div class="topic-metadata">

**Author:** [@lrnv](https://discourse.julialang.org/u/lrnv)\
**Replies:** 15\
**Last updated:** [March 11, 2024, 10:07pm UTC](https://discourse.julialang.org/t/derivatives-at-infinity-issue/111445 "2024-03-11T22:07:39Z")

</div>

I am trying to implement L’Hôpital’s rule, and my first naive version looks like this: using ForwardDiff: derivative ∂(f) = x -\> derivative(f,x) function Hôpital(f,g,a) fₐ, gₐ = f(a), g(a) any(isnan.((fₐ,gₐ))) &&…

---

## [@btime alters subsequent @time result](https://discourse.julialang.org/t/btime-alters-subsequent-time-result/111384)

<div class="topic-metadata">

**Author:** [@chunjiw](https://discourse.julialang.org/u/chunjiw)\
**Replies:** 6\
**Last updated:** [March 11, 2024, 8:18pm UTC](https://discourse.julialang.org/t/btime-alters-subsequent-time-result/111384 "2024-03-11T20:18:31Z")

</div>

I’m trying to benchmark a struct implementation, where I encounter this. Minimal example: using BenchmarkTools struct S end (s::S)() = 1 let s = S() # @btime $s() @time s() end From which I get output 0.0…

---

## [StructuralIdentifiability Package Installation Failure](https://discourse.julialang.org/t/structuralidentifiability-package-installation-failure/111381)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 3\
**Last updated:** [March 11, 2024, 7:36pm UTC](https://discourse.julialang.org/t/structuralidentifiability-package-installation-failure/111381 "2024-03-11T19:36:12Z")

</div>

The StructuralIdentifiability package cannot be installed correctly because the following dependencies fail. I use Julia 1.10.2 in expression starting at stdin:3 ✗ BinaryProvider ✗ CxxWrap ✗ Singular ✗ GroebnerBasis …

---

## [Simulating a PID in a DAE - how to simulate a DDAE?](https://discourse.julialang.org/t/simulating-a-pid-in-a-dae-how-to-simulate-a-ddae/111320)

<div class="topic-metadata">

**Author:** [@lpz18](https://discourse.julialang.org/u/lpz18)\
**Replies:** 4\
**Last updated:** [March 11, 2024, 6:16pm UTC](https://discourse.julialang.org/t/simulating-a-pid-in-a-dae-how-to-simulate-a-ddae/111320 "2024-03-11T18:16:45Z")

</div>

I would like to run a PID controller with a nonlinear set of ODEs with 6 continous variables. I thought I could do this with delay differential algebraic equaions, since in DelayDiffEq.jl it says Covers neutral and re…

---

## [Assign variables as array of matrices in JuMP](https://discourse.julialang.org/t/assign-variables-as-array-of-matrices-in-jump/43884)

<div class="topic-metadata">

**Author:** [@umbe](https://discourse.julialang.org/u/umbe)\
**Replies:** 4\
**Last updated:** [July 30, 2020, 7:26am UTC](https://discourse.julialang.org/t/assign-variables-as-array-of-matrices-in-jump/43884 "2020-07-30T07:26:16Z")

</div>

Hello to everyone! I have a question concernig a possible way to provide the problem variables in JuMP. I would like to assign the variables in a 3-dimensional matrix, but one of the three dimensions is not constant. T…

---

## [String splatting inside comprehensions](https://discourse.julialang.org/t/string-splatting-inside-comprehensions/111464)

<div class="topic-metadata">

**Author:** [@cnaak](https://discourse.julialang.org/u/cnaak)\
**Replies:** 11\
**Last updated:** [March 11, 2024, 5:21pm UTC](https://discourse.julialang.org/t/string-splatting-inside-comprehensions/111464 "2024-03-11T17:21:52Z")

</div>

The following excerpt (taken from a julia-1.10.2 REPL) illustrates my question: julia\> src = ("Ab","Cd") ("Ab", "Cd") julia\> \[ "Ab"..., "Cd"... \] 4-element Vector{Char}: 'A': ASCII/Unicode U+0041 (category Lu: Letter,…

---

## [Compile errors on HPC](https://discourse.julialang.org/t/compile-errors-on-hpc/47264)

<div class="topic-metadata">

**Author:** [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Replies:** 11\
**Last updated:** [March 11, 2024, 4:55pm UTC](https://discourse.julialang.org/t/compile-errors-on-hpc/47264 "2024-03-11T16:55:16Z")

</div>

I am running code via slurm on an HPC. Most of the time, the code compiles without issue. Sometimes, it throws errors such as: \[lhendri@longleaf-login2 CollegeStrat\]$ cat ../log/hProdBounded.out ┌ Warning: The call to c…

---

## [Create a LaTeX style title with the content of a variable \[Solved\]](https://discourse.julialang.org/t/create-a-latex-style-title-with-the-content-of-a-variable-solved/111470)

<div class="topic-metadata">

**Author:** [@Denis\_Dardenne](https://discourse.julialang.org/u/Denis_Dardenne)\
**Replies:** 3\
**Last updated:** [March 11, 2024, 3:54pm UTC](https://discourse.julialang.org/t/create-a-latex-style-title-with-the-content-of-a-variable-solved/111470 "2024-03-11T15:54:24Z")

</div>

My aim is to title my plot with a LaTeX style. My code is the following using Plots using LaTeXStrings V= "My Title" plot(\[1,2\],\[1,2\], title=L"&(V)") But it does not work. I already used title=latexstring(V) , but th…

---

## [A JuMP Formulation for the Minimum Up/Down Time Unit Commitment constraint](https://discourse.julialang.org/t/a-jump-formulation-for-the-minimum-up-down-time-unit-commitment-constraint/111458)

<div class="topic-metadata">

**Author:** [@Mouhamed](https://discourse.julialang.org/u/Mouhamed)\
**Replies:** 2\
**Last updated:** [March 11, 2024, 3:30pm UTC](https://discourse.julialang.org/t/a-jump-formulation-for-the-minimum-up-down-time-unit-commitment-constraint/111458 "2024-03-11T15:30:33Z")

</div>

Hi I’m new to JuMP and i’m currently struggling to generate a working constraint for the Minimum Up/Down Time. Indeed these are the “mathematical” formulation of what I wanna write: Σv(i) \<= u(t) for i in range \[t-UpTi…

---

## [Make Julia complete the inference of some recursive code](https://discourse.julialang.org/t/make-julia-complete-the-inference-of-some-recursive-code/111449)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 2\
**Last updated:** [March 11, 2024, 2:44pm UTC](https://discourse.julialang.org/t/make-julia-complete-the-inference-of-some-recursive-code/111449 "2024-03-11T14:44:47Z")

</div>

Background I have a function with a real number input coming from a finite interval. To implement the function, I break down that interval into several subintervals and implement the function on each of them. Suppose, fo…

---

## [Finance and Economics Use Cases](https://discourse.julialang.org/t/finance-and-economics-use-cases/9452)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 105\
**Last updated:** [March 11, 2024, 1:25pm UTC](https://discourse.julialang.org/t/finance-and-economics-use-cases/9452 "2024-03-11T13:25:13Z")

</div>

I’m a little disappointed to see how little activity there is in the finance and economics domain, though perhaps this is just due to the lack of a “critical mass” of other people to discuss it’s use with. So, I would l…

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

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