# Latest

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

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

**Page:** 310

---

## [Benders decomposition](https://discourse.julialang.org/t/benders-decomposition/120734)

<div class="topic-metadata">

**Author:** [@wahadhasan](https://discourse.julialang.org/u/wahadhasan)\
**Replies:** 1\
**Last updated:** [September 30, 2024, 8:21pm UTC](https://discourse.julialang.org/t/benders-decomposition/120734 "2024-09-30T20:21:28Z")

</div>

Hi there, can anybody tell me how to take the sub-gradient here in case of an (==) constraint or (\>=) constraint instead of standard format (\<=)? Is it the same procedure or need to convert it into standard format first? …

---

## [Copy metadata between DataFrames](https://discourse.julialang.org/t/copy-metadata-between-dataframes/107293)

<div class="topic-metadata">

**Author:** [@alex-s-gardner](https://discourse.julialang.org/u/alex-s-gardner)\
**Replies:** 2\
**Last updated:** [September 30, 2024, 7:32pm UTC](https://discourse.julialang.org/t/copy-metadata-between-dataframes/107293 "2024-09-30T19:32:45Z")

</div>

Is there a method to copy all of the metadata from one DataFrame to another?

---

## [(Dis)Advantages of quintic (fifth order) vs. cubic (third order) Hermite interpolation?](https://discourse.julialang.org/t/dis-advantages-of-quintic-fifth-order-vs-cubic-third-order-hermite-interpolation/120383)

<div class="topic-metadata">

**Author:** [@Marco\_Masi](https://discourse.julialang.org/u/Marco_Masi)\
**Replies:** 18\
**Last updated:** [September 30, 2024, 5:23pm UTC](https://discourse.julialang.org/t/dis-advantages-of-quintic-fifth-order-vs-cubic-third-order-hermite-interpolation/120383 "2024-09-30T17:23:51Z")

</div>

After solving an ordinary differential equation (ODE) of a dynamical system and obtaining the solution in time with its first and second derivatives, I fit the data points with a QuinticHermiteSpline(ddu, du, u, t). It a…

---

## [Simple Hybrid Automata](https://discourse.julialang.org/t/simple-hybrid-automata/120732)

<div class="topic-metadata">

**Author:** [@Muhammad\_Arsal](https://discourse.julialang.org/u/Muhammad_Arsal)\
**Replies:** 2\
**Last updated:** [September 30, 2024, 5:23pm UTC](https://discourse.julialang.org/t/simple-hybrid-automata/120732 "2024-09-30T17:23:23Z")

</div>

I want to use jump and guard conditions for my hybrid automata. But it is not working. Can anyone help? using ReachabilityAnalysis, Symbolics # Define the variables: height (x), velocity (v), and time (t) @variables x …

---

## [Multiply two hermitian or symmetric matrices](https://discourse.julialang.org/t/multiply-two-hermitian-or-symmetric-matrices/120709)

<div class="topic-metadata">

**Author:** [@Marco-Congedo](https://discourse.julialang.org/u/Marco-Congedo)\
**Replies:** 4\
**Last updated:** [September 30, 2024, 5:09pm UTC](https://discourse.julialang.org/t/multiply-two-hermitian-or-symmetric-matrices/120709 "2024-09-30T17:09:14Z")

</div>

Hello, is there a specialized mul method in julia that can multiply efficiently Hermitian or symmetric matrices without them being of the Hermitian or Symmetric type ?

---

## [How to map rectangular lat/lon region on non-rectangular projection with GeoMakie?](https://discourse.julialang.org/t/how-to-map-rectangular-lat-lon-region-on-non-rectangular-projection-with-geomakie/103140)

<div class="topic-metadata">

**Author:** [@haffner](https://discourse.julialang.org/u/haffner)\
**Replies:** 5\
**Last updated:** [September 30, 2024, 4:06pm UTC](https://discourse.julialang.org/t/how-to-map-rectangular-lat-lon-region-on-non-rectangular-projection-with-geomakie/103140 "2024-09-30T16:06:04Z")

</div>

I’m trying to map a rectangular lat/lon polygon on a non-rectangular map projection using GeoMakie, When I use four corner points to define the region, GeoMakie draws straight lines between them. The example below show…

---

## [Quiver plots with PlotlyJS](https://discourse.julialang.org/t/quiver-plots-with-plotlyjs/120695)

<div class="topic-metadata">

**Author:** [@VivMendes](https://discourse.julialang.org/u/VivMendes)\
**Replies:** 6\
**Last updated:** [September 30, 2024, 3:50pm UTC](https://discourse.julialang.org/t/quiver-plots-with-plotlyjs/120695 "2024-09-30T15:50:57Z")

</div>

Hi. I am using a code written by @empet here to produce a quiver plot using PlotlyJS. It works very well if the ranges of the two variables are the same (in a system of differential equations). For example, the code belo…

---

## [PackageCompiler bundled libraries](https://discourse.julialang.org/t/packagecompiler-bundled-libraries/119168)

<div class="topic-metadata">

**Author:** [@Julian](https://discourse.julialang.org/u/Julian)\
**Replies:** 7\
**Last updated:** [September 30, 2024, 3:08pm UTC](https://discourse.julialang.org/t/packagecompiler-bundled-libraries/119168 "2024-09-30T15:08:57Z")

</div>

I have successfully compiled a DLL using create\_library: But its file size and the amount of bundled libraries seem a bit excessive to me: Basic DLL: 186MB Bundled libraries: 331MB I will not need most of the bund…

---

## [Incorrect \`method overwritten\` warning with optional kwargs..?](https://discourse.julialang.org/t/incorrect-method-overwritten-warning-with-optional-kwargs/120714)

<div class="topic-metadata">

**Author:** [@iago-lito](https://discourse.julialang.org/u/iago-lito)\
**Replies:** 4\
**Last updated:** [September 30, 2024, 2:56pm UTC](https://discourse.julialang.org/t/incorrect-method-overwritten-warning-with-optional-kwargs/120714 "2024-09-30T14:56:27Z")

</div>

My package exposes this caller method, whose behaviour may be controlled by consumers provided they specialize f: TestPkg/src/TestPkg.jl module TestPkg # Entry point for users. caller(a) = f(a; b = 1) export caller #…

---

## [Documentation for defining hybrid automata](https://discourse.julialang.org/t/documentation-for-defining-hybrid-automata/120719)

<div class="topic-metadata">

**Author:** [@Muhammad\_Arsal](https://discourse.julialang.org/u/Muhammad_Arsal)\
**Replies:** 3\
**Last updated:** [September 30, 2024, 1:14pm UTC](https://discourse.julialang.org/t/documentation-for-defining-hybrid-automata/120719 "2024-09-30T13:14:30Z")

</div>

Hi, I am using reachabiltyanalysis.jl for my work. I want to know if there is any documentation for that. Like there are examples but I am struggling to interpret that. Is there any user manual. Please help me ASAP.

---

## [Finding all arrays of length L that add up to a certain number](https://discourse.julialang.org/t/finding-all-arrays-of-length-l-that-add-up-to-a-certain-number/119932)

<div class="topic-metadata">

**Author:** [@AbhayGupta115](https://discourse.julialang.org/u/AbhayGupta115)\
**Replies:** 11\
**Last updated:** [September 30, 2024, 1:09pm UTC](https://discourse.julialang.org/t/finding-all-arrays-of-length-l-that-add-up-to-a-certain-number/119932 "2024-09-30T13:09:54Z")

</div>

I want to create an array of tuples where each tuple is of length L and the sum of all elements come to a defined number. I do have a solution currently, but it is not scalable till what I need, I get thrown an OutOfMem…

---

## [How to make ODESystem with DataInterpolations latex output more readable?](https://discourse.julialang.org/t/how-to-make-odesystem-with-datainterpolations-latex-output-more-readable/120700)

<div class="topic-metadata">

**Author:** [@langestefan](https://discourse.julialang.org/u/langestefan)\
**Replies:** 7\
**Last updated:** [September 30, 2024, 9:57am UTC](https://discourse.julialang.org/t/how-to-make-odesystem-with-datainterpolations-latex-output-more-readable/120700 "2024-09-30T09:57:03Z")

</div>

I have defined my model in ModelingToolkit.jl as such: # define model parameters @parameters Ci Ria Aw # define sub-model components @named C\_i = Capacitor(C=Ci) # thermal capacity of interior @named R\_ia = Resistor…

---

## [Plots and IJulia format issues](https://discourse.julialang.org/t/plots-and-ijulia-format-issues/120712)

<div class="topic-metadata">

**Author:** [@Simon\_Exner](https://discourse.julialang.org/u/Simon_Exner)\
**Replies:** 0\
**Last updated:** [September 30, 2024, 8:17am UTC](https://discourse.julialang.org/t/plots-and-ijulia-format-issues/120712 "2024-09-30T08:17:55Z")

</div>

Hello, the following MWE of a julia-jupyter notebook (rename to .ipynb) shows a problem with plots: MWE1.ipynb.jl (224.5 KB) no matter the selected output format, the cell outputs an “image/png”, “image/svg+xml” and “…

---

## [How do I extract more than a pvalue HypothesisTests.jl?](https://discourse.julialang.org/t/how-do-i-extract-more-than-a-pvalue-hypothesistests-jl/120703)

<div class="topic-metadata">

**Author:** [@Rosejoycrocker](https://discourse.julialang.org/u/Rosejoycrocker)\
**Replies:** 1\
**Last updated:** [September 30, 2024, 7:50am UTC](https://discourse.julialang.org/t/how-do-i-extract-more-than-a-pvalue-hypothesistests-jl/120703 "2024-09-30T07:50:29Z")

</div>

Hi, I’m using HypothesisTests.jl to do a series of 2 Sample Kolmogorov Smirnov tests. This means I’m looping through a large series of data sets and applying the test KS\_object = ApproximateTwoSampleKSTest(data\_set1, da…

---

## [Why re-use factorization(A) rather than inv(A)](https://discourse.julialang.org/t/why-re-use-factorization-a-rather-than-inv-a/113234)

<div class="topic-metadata">

**Author:** [@photor](https://discourse.julialang.org/u/photor)\
**Replies:** 7\
**Last updated:** [September 30, 2024, 5:45am UTC](https://discourse.julialang.org/t/why-re-use-factorization-a-rather-than-inv-a/113234 "2024-09-30T05:45:00Z")

</div>

What is the advantage of first decomposing and then left dividing every time over inverting once and multiplying the inverse every time?

---

## [Issue with FMU File Creation in FMIExport.jl: Empty Files and UndefVarError](https://discourse.julialang.org/t/issue-with-fmu-file-creation-in-fmiexport-jl-empty-files-and-undefvarerror/119949)

<div class="topic-metadata">

**Author:** [@CurioMath](https://discourse.julialang.org/u/CurioMath)\
**Replies:** 0\
**Last updated:** [September 27, 2024, 11:00am UTC](https://discourse.julialang.org/t/issue-with-fmu-file-creation-in-fmiexport-jl-empty-files-and-undefvarerror/119949 "2024-09-27T11:00:15Z")

</div>

I’ve been trying to run exact examples from the FMIExport.jl package but have been unable to generate the expected FMU file. Specifically, when working with the “BouncingBall” example, files are generated in the specifie…

---

## [Plot the confidence interval for a model fit](https://discourse.julialang.org/t/plot-the-confidence-interval-for-a-model-fit/37767)

<div class="topic-metadata">

**Author:** [@ffevotte](https://discourse.julialang.org/u/ffevotte)\
**Replies:** 20\
**Last updated:** [September 24, 2021, 12:43pm UTC](https://discourse.julialang.org/t/plot-the-confidence-interval-for-a-model-fit/37767 "2021-09-24T12:43:53Z")

</div>

I’m no data scientist, so it’s likely that my question does not make much sense… But here goes: I recently tried to do some data analysis that involved fitting models. I’m able to fit the model, compute represent a pred…

---

## [Avoid storing intermediate results from the forward pass by default](https://discourse.julialang.org/t/avoid-storing-intermediate-results-from-the-forward-pass-by-default/119694)

<div class="topic-metadata">

**Author:** [@Jakub\_Mitura](https://discourse.julialang.org/u/Jakub_Mitura)\
**Replies:** 14\
**Last updated:** [September 29, 2024, 4:10pm UTC](https://discourse.julialang.org/t/avoid-storing-intermediate-results-from-the-forward-pass-by-default/119694 "2024-09-29T16:10:01Z")

</div>

Hello, Is it possible in Zygote to change the default behavior for computing derivatives during backpropagation to use gradient checkpointing? I have a memory-constrained problem with a Lux.jl model that uses Zygote fo…

---

## [Volumetric plot?](https://discourse.julialang.org/t/volumetric-plot/119942)

<div class="topic-metadata">

**Author:** [@loisel](https://discourse.julialang.org/u/loisel)\
**Replies:** 6\
**Last updated:** [September 29, 2024, 1:27pm UTC](https://discourse.julialang.org/t/volumetric-plot/119942 "2024-09-29T13:27:20Z")

</div>

Hi, I am considering putting some simple volumetric plots in my package. A previous MATLAB version of this project had simple volumetric plots based on Gouraud-shaded 3d triangular meshes with transparency. However, I d…

---

## [Getting the parametric constructors from \`methods\`](https://discourse.julialang.org/t/getting-the-parametric-constructors-from-methods/96632)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 2\
**Last updated:** [September 29, 2024, 1:42am UTC](https://discourse.julialang.org/t/getting-the-parametric-constructors-from-methods/96632 "2024-09-29T01:42:58Z")

</div>

If I call methods(Dict), it just returns the “non-parametric constructors”: julia\> methods(Dict) # 5 methods for type constructor: \[1\] Dict() in Base at dict.jl:118 \[2\] Dict(ps::Pair{K, V}...) where {K, V} in Base at di…

---

## [How to set the frame-rate of a gif file?](https://discourse.julialang.org/t/how-to-set-the-frame-rate-of-a-gif-file/120392)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 2\
**Last updated:** [September 29, 2024, 10:41am UTC](https://discourse.julialang.org/t/how-to-set-the-frame-rate-of-a-gif-file/120392 "2024-09-29T10:41:31Z")

</div>

I have the following code: using FileIO, ImageIO, Colors, FixedPointNumbers, Images folder = "video" A = Array{Array{RGB{Normed{UInt8,8}},2},1}() files = readdir(folder) pngfiles = filter(file-\>(occursin.("png",file))…

---

## [How can you call a function inside a taylor model function for reachability analysis?](https://discourse.julialang.org/t/how-can-you-call-a-function-inside-a-taylor-model-function-for-reachability-analysis/119945)

<div class="topic-metadata">

**Author:** [@Muhammad\_Arsal](https://discourse.julialang.org/u/Muhammad_Arsal)\
**Replies:** 2\
**Last updated:** [September 29, 2024, 9:46am UTC](https://discourse.julialang.org/t/how-can-you-call-a-function-inside-a-taylor-model-function-for-reachability-analysis/119945 "2024-09-29T09:46:12Z")

</div>

I am using Jupyter Notebook. And I have a grid interploation function. Which gives me the value of a variable based upon the data of other two. But the problem is when I try to run reachability analysis, it starts throwi…

---

## [When to use \`DomainError\` instead of \`ArgumentError\`?](https://discourse.julialang.org/t/when-to-use-domainerror-instead-of-argumenterror/120556)

<div class="topic-metadata">

**Author:** [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Replies:** 7\
**Last updated:** [September 29, 2024, 8:51am UTC](https://discourse.julialang.org/t/when-to-use-domainerror-instead-of-argumenterror/120556 "2024-09-29T08:51:03Z")

</div>

For example, if an algorithm can only be used on square matrices, which error should I throw? function square\_matrix\_algorithm(A::AbstractMatrix) if size(A, 1) != size(A, 2) throw(ArgumentError("This functio…

---

## [SymbolicRegression -- two simple questions](https://discourse.julialang.org/t/symbolicregression-two-simple-questions/119908)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [September 29, 2024, 8:09am UTC](https://discourse.julialang.org/t/symbolicregression-two-simple-questions/119908 "2024-09-29T08:09:24Z")

</div>

I figured out the answers.

---

## [Customize test failure display](https://discourse.julialang.org/t/customize-test-failure-display/120610)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 2\
**Last updated:** [September 29, 2024, 6:22am UTC](https://discourse.julialang.org/t/customize-test-failure-display/120610 "2024-09-29T06:22:35Z")

</div>

I like how it shows the values of y and x here julia\> @test y \< x Test Failed at REPL\[6\]:1 Expression: y \< x Evaluated: 2 \< 1 Can I make it do that for the arguments of my custom function too? julia\> eq(x,y) = x …

---

## [Minimize Watson test function for n=12](https://discourse.julialang.org/t/minimize-watson-test-function-for-n-12/119807)

<div class="topic-metadata">

**Author:** [@Hans\_W\_Borchers](https://discourse.julialang.org/u/Hans_W_Borchers)\
**Replies:** 4\
**Last updated:** [September 29, 2024, 5:37am UTC](https://discourse.julialang.org/t/minimize-watson-test-function-for-n-12/119807 "2024-09-29T05:37:49Z")

</div>

More or less by chance I encountered the Watson function, that is test function #20, page 25, in the report “Testing Unconstrained Optimization Software” from 1991 by Moré, Garbow, and Hillstrom. See https://typeset.i…

---

## [Long division algorithm using julia code for school project](https://discourse.julialang.org/t/long-division-algorithm-using-julia-code-for-school-project/119402)

<div class="topic-metadata">

**Author:** [@Shiva\_raj](https://discourse.julialang.org/u/Shiva_raj)\
**Replies:** 6\
**Last updated:** [September 29, 2024, 4:53am UTC](https://discourse.julialang.org/t/long-division-algorithm-using-julia-code-for-school-project/119402 "2024-09-29T04:53:53Z")

</div>

Hi Team, as part of my school project work I am trying to write code for division which also display steps similar to show in image below , but I am not able to display it in a proper way, Need help and support. # Func…

---

## [Help with optimization](https://discourse.julialang.org/t/help-with-optimization/120522)

<div class="topic-metadata">

**Author:** [@lancejnelson](https://discourse.julialang.org/u/lancejnelson)\
**Replies:** 18\
**Last updated:** [September 28, 2024, 11:47pm UTC](https://discourse.julialang.org/t/help-with-optimization/120522 "2024-09-28T23:47:46Z")

</div>

I have the following function that is going to be called hundreds of thousands of times, and right now it’s running way too slow. function sample\_σ!(metrop::LJ\_metrop,data::DataSet,LJ::LJ,LJ\_next::LJ,std) for j = 1…

---

## [Collecting all output from shell commands](https://discourse.julialang.org/t/collecting-all-output-from-shell-commands/15592)

<div class="topic-metadata">

**Author:** [@jw3126](https://discourse.julialang.org/u/jw3126)\
**Replies:** 27\
**Last updated:** [September 28, 2024, 7:34pm UTC](https://discourse.julialang.org/t/collecting-all-output-from-shell-commands/15592 "2024-09-28T19:34:32Z")

</div>

I want to run a command that may or may not exit gracefully. In any case I want to get all of the following information from it: content of stdout as String content of stderr as String exit code as Int What is the rec…

---

## [When to use mutable structs?](https://discourse.julialang.org/t/when-to-use-mutable-structs/120391)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 1\
**Last updated:** [September 28, 2024, 4:57pm UTC](https://discourse.julialang.org/t/when-to-use-mutable-structs/120391 "2024-09-28T16:57:15Z")

</div>

@jameson (hope I’ve got the username right, apologies if not!) I think we were getting a bit off-topic in Ref docstring should note clearly that it's an abstract type · Issue #55321 · JuliaLang/julia · GitHub. You’ve sa…

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

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