# Specific Domains

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

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

**Page:** 253

---

## [Approaches to find optimal X on large simulation model when you have only (X,Y) (no gradient, hessian,...)](https://discourse.julialang.org/t/approaches-to-find-optimal-x-on-large-simulation-model-when-you-have-only-x-y-no-gradient-hessian/86925)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 15\
**Last updated:** [September 9, 2022, 11:47am UTC](https://discourse.julialang.org/t/approaches-to-find-optimal-x-on-large-simulation-model-when-you-have-only-x-y-no-gradient-hessian/86925 "2022-09-09T11:47:39Z")

</div>

I have a large (i.e. 1 hour run time, 1 core) bio-economic simulation model and I want to find which combination of some inputs minimise the sum of this inputs given a fixed output of the model. In practice, I want to f…

---

## [Saving models in MLJ - only final ones without data](https://discourse.julialang.org/t/saving-models-in-mlj-only-final-ones-without-data/86873)

<div class="topic-metadata">

**Author:** [@julien\_goo](https://discourse.julialang.org/u/julien_goo)\
**Replies:** 3\
**Last updated:** [September 9, 2022, 5:58am UTC](https://discourse.julialang.org/t/saving-models-in-mlj-only-final-ones-without-data/86873 "2022-09-09T05:58:23Z")

</div>

Hi all, I have built ML pipelines using MLJ to predict on live data (randomforest models for now + time serie crossval + grid search of hyperparams). It works like a charm. However, I have a question. I have to seriali…

---

## [How to extract the right-hand side function from a differential equation solution?](https://discourse.julialang.org/t/how-to-extract-the-right-hand-side-function-from-a-differential-equation-solution/86764)

<div class="topic-metadata">

**Author:** [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Replies:** 8\
**Last updated:** [September 8, 2022, 8:26pm UTC](https://discourse.julialang.org/t/how-to-extract-the-right-hand-side-function-from-a-differential-equation-solution/86764 "2022-09-08T20:26:31Z")

</div>

Hey, Basically, I want to extract the right hand side function f from the solution of a differential equation \\dot{x} = f(x). For a minimum working example consider the following julia\> using DifferentialEquations ju…

---

## [An object of name x is already attached to this model. If this is intended, consider using the anonymous construction syntax](https://discourse.julialang.org/t/an-object-of-name-x-is-already-attached-to-this-model-if-this-is-intended-consider-using-the-anonymous-construction-syntax/86896)

<div class="topic-metadata">

**Author:** [@Eric.O](https://discourse.julialang.org/u/Eric.O)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 7:33pm UTC](https://discourse.julialang.org/t/an-object-of-name-x-is-already-attached-to-this-model-if-this-is-intended-consider-using-the-anonymous-construction-syntax/86896 "2022-09-08T19:33:22Z")

</div>

I am using Ipopt to solve the non linear optimization problem. My code is running but gives an error when the final solution is to be dispalyed as " An object of name x is already attached to this model. If this is inten…

---

## [Setting miter limit in Makie](https://discourse.julialang.org/t/setting-miter-limit-in-makie/86952)

<div class="topic-metadata">

**Author:** [@Michael\_Young](https://discourse.julialang.org/u/Michael_Young)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 5:16pm UTC](https://discourse.julialang.org/t/setting-miter-limit-in-makie/86952 "2022-09-08T17:16:44Z")

</div>

Hello, I was wondering if there was a way to set the miter limit in Makie? I couldn’t find this in the documentation. The default for CairoMakie appears to be 10 which leads to a lot of artifacts when i have lines with a…

---

## [Frédéric Goualard found an inexactness in our rand()](https://discourse.julialang.org/t/frederic-goualard-found-an-inexactness-in-our-rand/85274)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 19\
**Last updated:** [September 8, 2022, 11:59am UTC](https://discourse.julialang.org/t/frederic-goualard-found-an-inexactness-in-our-rand/85274 "2022-09-08T11:59:09Z")

</div>

The paper, with analysis and a recommended approach (Julia is not alone) Drawing random floating-point numbers from an interval

---

## [GLMakie \`recordframe!\` not working with \`MeshViz\`](https://discourse.julialang.org/t/glmakie-recordframe-not-working-with-meshviz/86921)

<div class="topic-metadata">

**Author:** [@lucifer1004](https://discourse.julialang.org/u/lucifer1004)\
**Replies:** 6\
**Last updated:** [September 8, 2022, 11:15am UTC](https://discourse.julialang.org/t/glmakie-recordframe-not-working-with-meshviz/86921 "2022-09-08T11:15:46Z")

</div>

I implemented a cloth-simulation algorithm in Julia and visualized the results using MeshViz and GLMakie. The GUI worked fluently and here are some screenshots: The problem is that I was unable to record a movie. …

---

## [Voicebot / NLP packages](https://discourse.julialang.org/t/voicebot-nlp-packages/86841)

<div class="topic-metadata">

**Author:** [@davide445](https://discourse.julialang.org/u/davide445)\
**Replies:** 1\
**Last updated:** [September 8, 2022, 8:11am UTC](https://discourse.julialang.org/t/voicebot-nlp-packages/86841 "2022-09-08T08:11:18Z")

</div>

For a specific project where is needed a system to ask a series of questions and evaluate if the human tell the needed informations, was looking around to understand if in the Julia ecosystem there is anything relevant. …

---

## [Return from Websockets.open do block](https://discourse.julialang.org/t/return-from-websockets-open-do-block/86879)

<div class="topic-metadata">

**Author:** [@Tharsalys](https://discourse.julialang.org/u/Tharsalys)\
**Replies:** 3\
**Last updated:** [September 8, 2022, 5:35am UTC](https://discourse.julialang.org/t/return-from-websockets-open-do-block/86879 "2022-09-08T05:35:12Z")

</div>

I have a scenario in which I’m intentionally sending a wrong message to a websocket and it returns me the right input; I need to parse and store the right input and use it across the application. But I can’t return it. H…

---

## [On the format of the Palmer Penguins dataset](https://discourse.julialang.org/t/on-the-format-of-the-palmer-penguins-dataset/86915)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 11:15pm UTC](https://discourse.julialang.org/t/on-the-format-of-the-palmer-penguins-dataset/86915 "2022-09-07T23:15:02Z")

</div>

Hello all! Sorry for this basic question. I have been trying to understand whether PalmerPenguins dataset comes as a long or wide format. I would appreciate if you could check the following: As each row corresponds uni…

---

## [Storing an MTK model in JLD2 fails on load](https://discourse.julialang.org/t/storing-an-mtk-model-in-jld2-fails-on-load/86916)

<div class="topic-metadata">

**Author:** [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 10:21pm UTC](https://discourse.julialang.org/t/storing-an-mtk-model-in-jld2-fails-on-load/86916 "2022-09-07T22:21:48Z")

</div>

I have an MTK model solution that I want to store temporarily. For that I can easily use Serialization.jl and it works nicely. However, when I want to store the solution object using JLD2 it saves the object, but on loa…

---

## [LsqFit: strange DomainError](https://discourse.julialang.org/t/lsqfit-strange-domainerror/86907)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 5\
**Last updated:** [September 7, 2022, 9:49pm UTC](https://discourse.julialang.org/t/lsqfit-strange-domainerror/86907 "2022-09-07T21:49:13Z")

</div>

I am using LsqFit to fit the data for some correlation function. I am not going to go into details, but it is convenient for me to actually fit the logarithm of the correlation function. using LsqFit g(x, N, ξ, α, β) = …

---

## [Corner plots with AoG](https://discourse.julialang.org/t/corner-plots-with-aog/86849)

<div class="topic-metadata">

**Author:** [@martinmestre](https://discourse.julialang.org/u/martinmestre)\
**Replies:** 4\
**Last updated:** [September 7, 2022, 9:11pm UTC](https://discourse.julialang.org/t/corner-plots-with-aog/86849 "2022-09-07T21:11:38Z")

</div>

Hello, I am looking for any example/template of how to make a corner plot with AoG preferentially (otherwise with plain Makie). Thank you very much.

---

## [How to create a patch/shape with a color gradient in a simple 2d plot?](https://discourse.julialang.org/t/how-to-create-a-patch-shape-with-a-color-gradient-in-a-simple-2d-plot/62607)

<div class="topic-metadata">

**Author:** [@philihp](https://discourse.julialang.org/u/philihp)\
**Replies:** 12\
**Last updated:** [September 7, 2022, 6:52pm UTC](https://discourse.julialang.org/t/how-to-create-a-patch-shape-with-a-color-gradient-in-a-simple-2d-plot/62607 "2022-09-07T18:52:23Z")

</div>

Hi, I am trying to add a rectangle with a color gradient to a plot to indicate a special region that should fade out, i.e. have a color gradient to white. So far I have tried hpatch() and vpatch(), which give me the rect…

---

## [Alpine+JuMP gives error for quadratic functions](https://discourse.julialang.org/t/alpine-jump-gives-error-for-quadratic-functions/70321)

<div class="topic-metadata">

**Author:** [@blob](https://discourse.julialang.org/u/blob)\
**Replies:** 4\
**Last updated:** [September 7, 2022, 5:54pm UTC](https://discourse.julialang.org/t/alpine-jump-gives-error-for-quadratic-functions/70321 "2022-09-07T17:54:54Z")

</div>

I am using Alpine with JuMP and Alpine fails for quadratic functions. Using the example from nlp3 here: https://github.com/lanl-ansi/Alpine.jl/blob/master/examples/MINLPs/nlp.jl, I have a working example: #Working examp…

---

## [Parquet2 RFC: removing \`CacheVector\`](https://discourse.julialang.org/t/parquet2-rfc-removing-cachevector/86903)

<div class="topic-metadata">

**Author:** [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 5:13pm UTC](https://discourse.julialang.org/t/parquet2-rfc-removing-cachevector/86903 "2022-09-07T17:13:41Z")

</div>

When I wrote Parquet2.jl, I had what at the time I thought was a terribly clever idea about only loading specific subsets of the full buffer. My motivation for this was based on the observation that, while parquet is al…

---

## [\[PowerModelsDistribution\] Error in indexing during Kron reduction with 1ph loads](https://discourse.julialang.org/t/powermodelsdistribution-error-in-indexing-during-kron-reduction-with-1ph-loads/86900)

<div class="topic-metadata">

**Author:** [@apigott](https://discourse.julialang.org/u/apigott)\
**Replies:** 0\
**Last updated:** [September 7, 2022, 4:10pm UTC](https://discourse.julialang.org/t/powermodelsdistribution-error-in-indexing-during-kron-reduction-with-1ph-loads/86900 "2022-09-07T16:10:24Z")

</div>

Back again with another question! I’m trying to implement the IEEE-13 bus in PMD and I’m getting an issue with indexing when using the test case defined in the OpenDSS program files. On import, before adding the vbounds…

---

## [Distributed.jl, DistributedArray.jl with InfiniBand cluster](https://discourse.julialang.org/t/distributed-jl-distributedarray-jl-with-infiniband-cluster/80049)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 19\
**Last updated:** [September 7, 2022, 3:51pm UTC](https://discourse.julialang.org/t/distributed-jl-distributedarray-jl-with-infiniband-cluster/80049 "2022-09-07T15:51:54Z")

</div>

I’m developing an algorithm using Distributed.jl and DistributedArrays.jl, and I’m supposed to run this algorithm on a cluster supercomputer. I’ve recently been told that it uses Infiniband to connect internal nodes with…

---

## [Memory challenges for Flux on Resnet](https://discourse.julialang.org/t/memory-challenges-for-flux-on-resnet/85385)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 8\
**Last updated:** [September 7, 2022, 3:22pm UTC](https://discourse.julialang.org/t/memory-challenges-for-flux-on-resnet/85385 "2022-09-07T15:22:55Z")

</div>

I’m attempting to reproduce Resnet (from Metalhead.jl) on ImageNet performance through simple demos for a single GPU setup (I’m on a RTX A4000, 16Bg, ~6000 CUDA cores) and stumbled upon 2 memory related challenges. A fi…

---

## [Need some help in understanding zygote gradient](https://discourse.julialang.org/t/need-some-help-in-understanding-zygote-gradient/86781)

<div class="topic-metadata">

**Author:** [@tiZ](https://discourse.julialang.org/u/tiZ)\
**Replies:** 2\
**Last updated:** [September 7, 2022, 3:18pm UTC](https://discourse.julialang.org/t/need-some-help-in-understanding-zygote-gradient/86781 "2022-09-07T15:18:27Z")

</div>

Hi, I met some troubles in understanding zygote gradient. for example: I plan to get the gradient for f(x) = x^2 at x = 5, and also sum the result of f(x) for each time let result = 0 f(x) = begin a = x^2 …

---

## [Nonorthogonal axes in Makie (or maybe in other plotting package)](https://discourse.julialang.org/t/nonorthogonal-axes-in-makie-or-maybe-in-other-plotting-package/86749)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 14\
**Last updated:** [September 7, 2022, 3:05pm UTC](https://discourse.julialang.org/t/nonorthogonal-axes-in-makie-or-maybe-in-other-plotting-package/86749 "2022-09-07T15:05:45Z")

</div>

Is it possible to make a plot (both in 2d and 3d) using non-orthogonal axes? Something similar to this (link) or this (link) (though here simple image transformation is not enough for me; I want the axes transform…

---

## [Speedup optimization in nested for loop](https://discourse.julialang.org/t/speedup-optimization-in-nested-for-loop/86880)

<div class="topic-metadata">

**Author:** [@tsojtc](https://discourse.julialang.org/u/tsojtc)\
**Replies:** 1\
**Last updated:** [September 7, 2022, 12:05pm UTC](https://discourse.julialang.org/t/speedup-optimization-in-nested-for-loop/86880 "2022-09-07T12:05:43Z")

</div>

I have adapted some python code that takes data which is G x N, and returns the (strictly upper triangular) matrix cost\_permuted whose (i,j)-th entry represents the minimum of cooscillation\_distance(data\[i, :\], data\[j, :…

---

## [Should 1^x == 1?](https://discourse.julialang.org/t/should-1-x-1/77529)

<div class="topic-metadata">

**Author:** [@Andrea\_Pagnani](https://discourse.julialang.org/u/Andrea_Pagnani)\
**Replies:** 6\
**Last updated:** [September 7, 2022, 9:51am UTC](https://discourse.julialang.org/t/should-1-x-1/77529 "2022-09-07T09:51:54Z")

</div>

Dearests, using Symbolics @variables p, α, N D = Differential(α) D((p^α + 1 - p)^N) / log(p) |\> expand\_derivatives |\> x -\> substitute(x, α =\> 1) |\> simplify correctly returns N\*p\*(1^(N - 1)). I was wondering if a subs…

---

## [Solving 2D poisson equation in polar coordinates (finite differences)](https://discourse.julialang.org/t/solving-2d-poisson-equation-in-polar-coordinates-finite-differences/74280)

<div class="topic-metadata">

**Author:** [@Aran](https://discourse.julialang.org/u/Aran)\
**Replies:** 19\
**Last updated:** [June 7, 2022, 1:47am UTC](https://discourse.julialang.org/t/solving-2d-poisson-equation-in-polar-coordinates-finite-differences/74280 "2022-06-07T01:47:03Z")

</div>

Hello all, I am looking to solve the following poisson equation \\nabla^2 \\psi = -\\omega \\quad \\text{and} \\quad \\nabla^2 = \\frac{\\partial ^2}{{\\partial \\rho^2 }} + \\frac{1}{\\rho }\\frac{\\partial}{\\partial \\rho} + \\frac{…

---

## [JuMP element wise \`latex\_formulation\`](https://discourse.julialang.org/t/jump-element-wise-latex-formulation/86842)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 3\
**Last updated:** [September 6, 2022, 7:22pm UTC](https://discourse.julialang.org/t/jump-element-wise-latex-formulation/86842 "2022-09-06T19:22:18Z")

</div>

I have some large JuMP models which I’d like to convert to latex, however, this quickly becomes impractical. Given a model using JuMP model = Model() @variable(model, x\[1:10\]) @constraint(model, x\_min, x .≤ 10) @cons…

---

## [How to save static svg with plotly](https://discourse.julialang.org/t/how-to-save-static-svg-with-plotly/4225)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 16\
**Last updated:** [September 6, 2022, 9:27am UTC](https://discourse.julialang.org/t/how-to-save-static-svg-with-plotly/4225 "2022-09-06T09:27:07Z")

</div>

julia\> using Plots julia\> plotly() Plots.PlotlyBackend() julia\> savefig(plot(1:5,1:5), "/tmp/x.svg") produces a HTML snippet. Is there a way to get a static SVG? Note: I know how to do this for PlotlyJS, but that doe…

---

## [How to have condition on SimpleWeightedDiGraph function?](https://discourse.julialang.org/t/how-to-have-condition-on-simpleweighteddigraph-function/86735)

<div class="topic-metadata">

**Author:** [@A\_Green\_Leave](https://discourse.julialang.org/u/A_Green_Leave)\
**Replies:** 7\
**Last updated:** [September 5, 2022, 7:43pm UTC](https://discourse.julialang.org/t/how-to-have-condition-on-simpleweighteddigraph-function/86735 "2022-09-05T19:43:10Z")

</div>

Hi Guys According to the documentation the way SimpleWeightedDiGraph works is something like a g = SimpleWeightedDiGraph(heads, tails, weights). If so and if having a three list of requirements: heads = \[ 62, 17, 15, 2…

---

## [Customising the legend display order in Plots.jl](https://discourse.julialang.org/t/customising-the-legend-display-order-in-plots-jl/86779)

<div class="topic-metadata">

**Author:** [@jmair](https://discourse.julialang.org/u/jmair)\
**Replies:** 1\
**Last updated:** [September 5, 2022, 1:59pm UTC](https://discourse.julialang.org/t/customising-the-legend-display-order-in-plots-jl/86779 "2022-09-05T13:59:56Z")

</div>

I am using Plots.jl with the pgfplotsx() backend and I want to have a somewhat custom legend, which has two columns and shows the marker for the expected curve next to actual samples on that curve. A MWE is given below: …

---

## [Fast non dominated sorting](https://discourse.julialang.org/t/fast-non-dominated-sorting/24164)

<div class="topic-metadata">

**Author:** [@Igor\_Douven](https://discourse.julialang.org/u/Igor_Douven)\
**Replies:** 21\
**Last updated:** [September 5, 2022, 8:38am UTC](https://discourse.julialang.org/t/fast-non-dominated-sorting/24164 "2022-09-05T08:38:42Z")

</div>

I need a fast implementation of the so-called non dominated sorting algorithm. The best I could come up with so far is the following (the sorting is to be done on the basis of three criteria): dominates(x, y) = all(x .\<=…

---

## [Indexing variables by vectors not working in JuMPv1.2.x](https://discourse.julialang.org/t/indexing-variables-by-vectors-not-working-in-jumpv1-2-x/86652)

<div class="topic-metadata">

**Author:** [@BatyLeo](https://discourse.julialang.org/u/BatyLeo)\
**Replies:** 4\
**Last updated:** [September 4, 2022, 11:47pm UTC](https://discourse.julialang.org/t/indexing-variables-by-vectors-not-working-in-jumpv1-2-x/86652 "2022-09-04T23:47:34Z")

</div>

Hello, a bug appeared in my package when I updated JuMP to v1.2.1 from v1.1.1. Here is a minimum (non) working example: using GLPK using JuMP paths = \[ \[1, 2, 15, 3, 20\], \[1, 9, 16, 20\], \[1, 2, 20\] \] mode…

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

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