# Specific Domains

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

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

**Page:** 129

---

## [Densitymapbox not working as expected](https://discourse.julialang.org/t/densitymapbox-not-working-as-expected/111361)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 2:49pm UTC](https://discourse.julialang.org/t/densitymapbox-not-working-as-expected/111361 "2024-03-08T14:49:04Z")

</div>

Anyone has a working example? The examples I am running don’t produce the expected result: densitymapbox doesn't generate a valid visualization · Issue #484 · JuliaPlots/PlotlyJS.jl · GitHub

---

## [Changing polynomial bases](https://discourse.julialang.org/t/changing-polynomial-bases/111238)

<div class="topic-metadata">

**Author:** [@votroto](https://discourse.julialang.org/u/votroto)\
**Replies:** 7\
**Last updated:** [March 8, 2024, 1:43pm UTC](https://discourse.julialang.org/t/changing-polynomial-bases/111238 "2024-03-08T13:43:34Z")

</div>

Hello, I noticed there is a julia package MultivariateBases.jl for finding the bases of multivariate polynomials. Is there a simple way to get the coefficients corresponding to the basis generated basis elements? Thank …

---

## [How to change parmaters for solver in GLMakie?](https://discourse.julialang.org/t/how-to-change-parmaters-for-solver-in-glmakie/111351)

<div class="topic-metadata">

**Author:** [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Replies:** 1\
**Last updated:** [March 8, 2024, 1:30pm UTC](https://discourse.julialang.org/t/how-to-change-parmaters-for-solver-in-glmakie/111351 "2024-03-08T13:30:16Z")

</div>

Hello, I am trying to make an interactive figure of a SIV system. I have implemented a parameter vector with Parsers so that each parameter is accessed by name. But how can I change such a vector with lift from GLMakie…

---

## [Is there something like the DistributionLambda layer from Keras in Flux?](https://discourse.julialang.org/t/is-there-something-like-the-distributionlambda-layer-from-keras-in-flux/111352)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 0\
**Last updated:** [March 8, 2024, 12:10pm UTC](https://discourse.julialang.org/t/is-there-something-like-the-distributionlambda-layer-from-keras-in-flux/111352 "2024-03-08T12:10:04Z")

</div>

DistributionLambda I guess it could use Distributions.jl.

---

## [Numerical computation density function from distribution with autodifferentiation](https://discourse.julialang.org/t/numerical-computation-density-function-from-distribution-with-autodifferentiation/111302)

<div class="topic-metadata">

**Author:** [@Kieran\_Marray](https://discourse.julialang.org/u/Kieran_Marray)\
**Replies:** 16\
**Last updated:** [March 8, 2024, 10:44am UTC](https://discourse.julialang.org/t/numerical-computation-density-function-from-distribution-with-autodifferentiation/111302 "2024-03-08T10:44:13Z")

</div>

I have a non-standard multivariate distribution function/copula (here, a copula in the MWE). I am trying to compute the density function by taking the cross-partial derivatives of the distribution/copula with respect to …

---

## [How do I save a TunedModel with MLJ? DeterministicTunedModel has no field artifact\_location](https://discourse.julialang.org/t/how-do-i-save-a-tunedmodel-with-mlj-deterministictunedmodel-has-no-field-artifact-location/111307)

<div class="topic-metadata">

**Author:** [@niltsz](https://discourse.julialang.org/u/niltsz)\
**Replies:** 3\
**Last updated:** [March 8, 2024, 8:03am UTC](https://discourse.julialang.org/t/how-do-i-save-a-tunedmodel-with-mlj-deterministictunedmodel-has-no-field-artifact-location/111307 "2024-03-08T08:03:44Z")

</div>

I want to train a self tuning model with MLJ. I set up my model, it trains, but when I want to save the machine, I get the error message that DeterministicTunedModel has no field artifact\_location. Any idea how to solv…

---

## [How to print solver status and reason for termination for NLopt and Optimization.jl](https://discourse.julialang.org/t/how-to-print-solver-status-and-reason-for-termination-for-nlopt-and-optimization-jl/111308)

<div class="topic-metadata">

**Author:** [@structural](https://discourse.julialang.org/u/structural)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 7:48pm UTC](https://discourse.julialang.org/t/how-to-print-solver-status-and-reason-for-termination-for-nlopt-and-optimization-jl/111308 "2024-03-07T19:48:18Z")

</div>

I am searching for a minimum using NLopt.LN\_SBPLX. The optimizer stops prematurely after ~100 iterations without throwing any errors or printing any messages. display(sol) simply returns the last parameter vector that wa…

---

## [Use WGLMakie from Genie](https://discourse.julialang.org/t/use-wglmakie-from-genie/60985)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 4\
**Last updated:** [March 8, 2024, 5:04am UTC](https://discourse.julialang.org/t/use-wglmakie-from-genie/60985 "2024-03-08T05:04:05Z")

</div>

Genie is a web framework and WGLMakie makes web-interactive graphics, normally by using JSServe.jl. Is it possible to use WGLMakie in a Genie site? How would you suggest doing it? cc @essenciary @sdanisch

---

## [\[BioSequences\] data structure to keep mutations (delta) of a sequence](https://discourse.julialang.org/t/biosequences-data-structure-to-keep-mutations-delta-of-a-sequence/111263)

<div class="topic-metadata">

**Author:** [@Marco\_Antoniotti](https://discourse.julialang.org/u/Marco_Antoniotti)\
**Replies:** 4\
**Last updated:** [March 7, 2024, 9:38pm UTC](https://discourse.julialang.org/t/biosequences-data-structure-to-keep-mutations-delta-of-a-sequence/111263 "2024-03-07T21:38:40Z")

</div>

Hi we are looking to a data structure to keep tract of the “evolution” of a sequence. What suggestions do you have in this respect? LongSubSeq views look useful, but they always refer to the the “main” sequence. What…

---

## [Changing the size of the \`target\` using MLJ's Learning Networks](https://discourse.julialang.org/t/changing-the-size-of-the-target-using-mljs-learning-networks/111002)

<div class="topic-metadata">

**Author:** [@barakber](https://discourse.julialang.org/u/barakber)\
**Replies:** 6\
**Last updated:** [March 7, 2024, 8:19pm UTC](https://discourse.julialang.org/t/changing-the-size-of-the-target-using-mljs-learning-networks/111002 "2024-03-07T20:19:51Z")

</div>

Hi. I have a Static transformer ( \<: Static ) that changes the size of the input (X). It’s using sliding windows, so that size(X\_tag)\[1\] = size(X)\[1\] - window\_size. I’m trying to figure out what’s the right way to chang…

---

## [MLJ.save() and restoring with machine() don't work](https://discourse.julialang.org/t/mlj-save-and-restoring-with-machine-dont-work/110535)

<div class="topic-metadata">

**Author:** [@Paulo\_Refosco](https://discourse.julialang.org/u/Paulo_Refosco)\
**Replies:** 11\
**Last updated:** [March 7, 2024, 8:06pm UTC](https://discourse.julialang.org/t/mlj-save-and-restoring-with-machine-dont-work/110535 "2024-03-07T20:06:47Z")

</div>

Hello! I made a simple XGBoost model with the pipeline below, fitted it with data and tried to save it and then restore it, but when restoring it (even if in the same notebook) I get error on trying to apply predict. An…

---

## [Using SciPy Optimization](https://discourse.julialang.org/t/using-scipy-optimization/111317)

<div class="topic-metadata">

**Author:** [@rtapia](https://discourse.julialang.org/u/rtapia)\
**Replies:** 2\
**Last updated:** [March 7, 2024, 7:58pm UTC](https://discourse.julialang.org/t/using-scipy-optimization/111317 "2024-03-07T19:58:21Z")

</div>

Hello, Regarding the capabilities of SciPy.jl, it seems it cannot incorporate the constraints SciPy.NonlinearConstraints? Thanks

---

## [\[JuMP\] Speeding up constraint violation inspection](https://discourse.julialang.org/t/jump-speeding-up-constraint-violation-inspection/111303)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 6:59pm UTC](https://discourse.julialang.org/t/jump-speeding-up-constraint-violation-inspection/111303 "2024-03-07T18:59:20Z")

</div>

Hello, I’m trying to make an oracle that checks for constraint violations in a solved model (ie. constraints that were not initially in the model) and add some of them to the model to then reoptimize. The inspector look…

---

## [Makie: Triangle face colour, mesh](https://discourse.julialang.org/t/makie-triangle-face-colour-mesh/18011)

<div class="topic-metadata">

**Author:** [@timmm](https://discourse.julialang.org/u/timmm)\
**Replies:** 10\
**Last updated:** [March 7, 2024, 5:06pm UTC](https://discourse.julialang.org/t/makie-triangle-face-colour-mesh/18011 "2024-03-07T17:06:13Z")

</div>

I have a question about Makie, when plotting triangulated mesh surfaces is it possible to colour with flat coloured patches? Like: Triangular surface plot - MATLAB trisurf - MathWorks Deutschland Compared to the exampl…

---

## [Citation for Turing.jl](https://discourse.julialang.org/t/citation-for-turing-jl/111288)

<div class="topic-metadata">

**Author:** [@pfarndt](https://discourse.julialang.org/u/pfarndt)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 12:41pm UTC](https://discourse.julialang.org/t/citation-for-turing-jl/111288 "2024-03-07T12:41:29Z")

</div>

In our research we heavily use Turing.jl and ForwardDiff.jl. Without these packages we would not have succeeded. Is there a publication we could cite in an upcoming publication to give some credits?

---

## [Problem with simulating SBML Model](https://discourse.julialang.org/t/problem-with-simulating-sbml-model/110942)

<div class="topic-metadata">

**Author:** [@max-de-rooij](https://discourse.julialang.org/u/max-de-rooij)\
**Replies:** 4\
**Last updated:** [March 7, 2024, 12:10pm UTC](https://discourse.julialang.org/t/problem-with-simulating-sbml-model/110942 "2024-03-07T12:10:38Z")

</div>

I am trying to solve an ODE problem from a downloaded SBML file, but I seem to get an error. I used to be able to run this file (although I do not remember the specific versions of each package I used before). My code i…

---

## [MethodOfLines & functions in BCs](https://discourse.julialang.org/t/methodoflines-functions-in-bcs/111260)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 1\
**Last updated:** [March 7, 2024, 8:45am UTC](https://discourse.julialang.org/t/methodoflines-functions-in-bcs/111260 "2024-03-07T08:45:07Z")

</div>

I’m trying to implement a distributed model using MethodOfLines with: 3 PDEs + a number of AEs within the volume a number of Boundary conditions In the boundary conditions, some flows depend on valve signals, e.g., as…

---

## [Julia Gurobi 11.0](https://discourse.julialang.org/t/julia-gurobi-11-0/108368)

<div class="topic-metadata">

**Author:** [@Z\_M](https://discourse.julialang.org/u/Z_M)\
**Replies:** 2\
**Last updated:** [January 5, 2024, 3:48am UTC](https://discourse.julialang.org/t/julia-gurobi-11-0/108368 "2024-01-05T03:48:01Z")

</div>

Hi! I want to know if Julia 1.9.2 supports Gurobi 11.0. I used Gurobi 9.5.2. Now I have updated Gurobi to 11.0. I wrote Pkg.add(“Gurobi”) in Julia, but it still uses Gurobi 9.5.2. What should I do? Thanks a lot

---

## [Issue with Live Plotting 3D Objects using Meshes.jl, Observables, and GLMakie: Bound Error on Item Removal](https://discourse.julialang.org/t/issue-with-live-plotting-3d-objects-using-meshes-jl-observables-and-glmakie-bound-error-on-item-removal/111253)

<div class="topic-metadata">

**Author:** [@ehsani63](https://discourse.julialang.org/u/ehsani63)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 7:20pm UTC](https://discourse.julialang.org/t/issue-with-live-plotting-3d-objects-using-meshes-jl-observables-and-glmakie-bound-error-on-item-removal/111253 "2024-03-06T19:20:18Z")

</div>

I’ve been exploring the use of Meshes.jl in combination with Observables and GLMakie for live plotting of 3D objects. My goal is to dynamically update a plot by adding or removing 3D objects (like Box or Ball) and visual…

---

## [Fail to update Gurobi.jl for using Gurobi 11.0](https://discourse.julialang.org/t/fail-to-update-gurobi-jl-for-using-gurobi-11-0/111225)

<div class="topic-metadata">

**Author:** [@Chunjun](https://discourse.julialang.org/u/Chunjun)\
**Replies:** 3\
**Last updated:** [March 6, 2024, 2:27pm UTC](https://discourse.julialang.org/t/fail-to-update-gurobi-jl-for-using-gurobi-11-0/111225 "2024-03-06T14:27:52Z")

</div>

Hi! I’m working with Julia 1.5.3 and Gurobi 11.0 on Atom. I’ve acquired an academic license for Gurobi 11.0 and installed the Gurobi 11.0. I’ve set the correct environment path for Gurobi and placed the license there as…

---

## [Metal.jl and Flux.jl on M1 chip](https://discourse.julialang.org/t/metal-jl-and-flux-jl-on-m1-chip/96882)

<div class="topic-metadata">

**Author:** [@Jacob\_Cahoon](https://discourse.julialang.org/u/Jacob_Cahoon)\
**Replies:** 2\
**Last updated:** [March 6, 2024, 12:50pm UTC](https://discourse.julialang.org/t/metal-jl-and-flux-jl-on-m1-chip/96882 "2024-03-06T12:50:54Z")

</div>

When my loss function is called in the train!() method, I keep getting this error and I don’t know how to fix it. I can’t use CUDA because I am using an M1 chip. Any ideas? Here’s my full code: include("data\_prep.jl") …

---

## [Error generating quiver plot with Plots.jl](https://discourse.julialang.org/t/error-generating-quiver-plot-with-plots-jl/111208)

<div class="topic-metadata">

**Author:** [@JonathanH](https://discourse.julialang.org/u/JonathanH)\
**Replies:** 0\
**Last updated:** [March 5, 2024, 5:06pm UTC](https://discourse.julialang.org/t/error-generating-quiver-plot-with-plots-jl/111208 "2024-03-05T17:06:07Z")

</div>

I am getting an error with the following MWE, which I think should work, based on the documentation for quiver in the Plots.jl package (v1.15.2). The error is: unexpected vi type Vector{Tuple{Float64, Float64}} for quive…

---

## [Suggestions needed for bound-constrained least squares solver](https://discourse.julialang.org/t/suggestions-needed-for-bound-constrained-least-squares-solver/35611)

<div class="topic-metadata">

**Author:** [@mpf01](https://discourse.julialang.org/u/mpf01)\
**Replies:** 14\
**Last updated:** [March 5, 2024, 8:42pm UTC](https://discourse.julialang.org/t/suggestions-needed-for-bound-constrained-least-squares-solver/35611 "2024-03-05T20:42:01Z")

</div>

I’m looking for suggestions for a bound-constrained least-squares solver for minimize\_x 1/2||Ax-b||^2 subj to lb ≤ x ≤ ub where A is m-by-n and “tall”, ie, m \>\> n (eg, m=1K, n=10). The solver should have low setup c…

---

## [How to show the solution of all variables when using DualDecomposition.jl](https://discourse.julialang.org/t/how-to-show-the-solution-of-all-variables-when-using-dualdecomposition-jl/110975)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 4:23pm UTC](https://discourse.julialang.org/t/how-to-show-the-solution-of-all-variables-when-using-dualdecomposition-jl/110975 "2024-03-05T16:23:08Z")

</div>

I am trying to use the DualDecomposition package to solve the farmer test case. The @show DD.primal\_solution(algo) just shows the solution for the CROPS variables. How could I show all variables including CROPS, PURCH, a…

---

## [Interactive plots with Plots.jl and VSCode](https://discourse.julialang.org/t/interactive-plots-with-plots-jl-and-vscode/111058)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 2\
**Last updated:** [March 5, 2024, 2:04pm UTC](https://discourse.julialang.org/t/interactive-plots-with-plots-jl-and-vscode/111058 "2024-03-05T14:04:39Z")

</div>

I’ve installed PythonPlot and PlotlyJS backends. A test plot with either backend displayed in VSCode pane, and I see no interactive tools. Here a link to an older topic, recommending trying to display plot in an externa…

---

## [Performance of array of structs](https://discourse.julialang.org/t/performance-of-array-of-structs/111156)

<div class="topic-metadata">

**Author:** [@PharmCat](https://discourse.julialang.org/u/PharmCat)\
**Replies:** 4\
**Last updated:** [March 5, 2024, 12:34pm UTC](https://discourse.julialang.org/t/performance-of-array-of-structs/111156 "2024-03-05T12:34:51Z")

</div>

I compared array-of-struct and struct-of-array and seems struct-of-array is faster. struct MyStr{T} Δxˣ::T Δxʸ::T Δvˣ::T Δvʸ::T ρᵢ::T ρⱼ::T end function pairs\_calk!(buff, pairs; minthreads::Int …

---

## [Comparing non-linear least squares solvers](https://discourse.julialang.org/t/comparing-non-linear-least-squares-solvers/104752)

<div class="topic-metadata">

**Author:** [@user664303](https://discourse.julialang.org/u/user664303)\
**Replies:** 37\
**Last updated:** [March 5, 2024, 9:34am UTC](https://discourse.julialang.org/t/comparing-non-linear-least-squares-solvers/104752 "2024-03-05T09:34:42Z")

</div>

I’m creating this thread as a resource for people looking to solve non-linear least squares problems in Julia, so they know what tools are available, what features they have and how well they perform. UPDATE: This compa…

---

## [How to find a snapped point to a line string from a given point?](https://discourse.julialang.org/t/how-to-find-a-snapped-point-to-a-line-string-from-a-given-point/111169)

<div class="topic-metadata">

**Author:** [@Chamika\_Kasun](https://discourse.julialang.org/u/Chamika_Kasun)\
**Replies:** 1\
**Last updated:** [March 5, 2024, 12:51am UTC](https://discourse.julialang.org/t/how-to-find-a-snapped-point-to-a-line-string-from-a-given-point/111169 "2024-03-05T00:51:29Z")

</div>

I have a line string as follows, consisting of a few points (longitude/latitude) coordinates in Paris. The task is to find the snapped point to the given line and a point line\_string = \[ \[ 145.0296835, -37.80…

---

## [TriplePC - a microsimulation model with some novel features](https://discourse.julialang.org/t/triplepc-a-microsimulation-model-with-some-novel-features/111166)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 0\
**Last updated:** [March 4, 2024, 11:36pm UTC](https://discourse.julialang.org/t/triplepc-a-microsimulation-model-with-some-novel-features/111166 "2024-03-04T23:36:16Z")

</div>

You might be interested in the Public Policy Preference calculator (TriplePC), a microsimulation tax-benefit model built in Julia with some novel features. TriplePC shows not only the conventional effects of a welfare po…

---

## [Looping in expressions](https://discourse.julialang.org/t/looping-in-expressions/111162)

<div class="topic-metadata">

**Author:** [@math\_opt](https://discourse.julialang.org/u/math_opt)\
**Replies:** 1\
**Last updated:** [March 4, 2024, 10:11pm UTC](https://discourse.julialang.org/t/looping-in-expressions/111162 "2024-03-04T22:11:26Z")

</div>

Any preferred style of looping in expressions, objectives, or constraints that is syntactically superior and less error-prone? I see all the following works: using JuMP model = Model() @variable(model, x\[1:10\] \>= 0) @…

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

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