# Specific Domains

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

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

**Page:** 150

---

## [Errors using Makie plots with Observable metadata Vectors of variable length](https://discourse.julialang.org/t/errors-using-makie-plots-with-observable-metadata-vectors-of-variable-length/89469)

<div class="topic-metadata">

**Author:** [@jpdoane](https://discourse.julialang.org/u/jpdoane)\
**Replies:** 8\
**Last updated:** [December 5, 2023, 6:16pm UTC](https://discourse.julialang.org/t/errors-using-makie-plots-with-observable-metadata-vectors-of-variable-length/89469 "2023-12-05T18:16:48Z")

</div>

I would like to generate a Makie animation that has a variable number of points and polygons per frame, and am running into some odd behavior. I am using scatter() and poly() with Observables holding the data points, an…

---

## [Can't solve a problem with nonlinear terms like x^0.7 or x^3 using JuMP with Gurobi 11](https://discourse.julialang.org/t/cant-solve-a-problem-with-nonlinear-terms-like-x-0-7-or-x-3-using-jump-with-gurobi-11/106896)

<div class="topic-metadata">

**Author:** [@JackaChou](https://discourse.julialang.org/u/JackaChou)\
**Replies:** 8\
**Last updated:** [December 5, 2023, 3:09pm UTC](https://discourse.julialang.org/t/cant-solve-a-problem-with-nonlinear-terms-like-x-0-7-or-x-3-using-jump-with-gurobi-11/106896 "2023-12-05T15:09:21Z")

</div>

I have installed Gurobi 11 and Gurobi 1.2.0.jl, and it’s believed that Gurobi now supports solving general nonlinear programming like x^0.7 or x^3, but I cannot solve it with JuMP using Gurobi, if I switch the solve to …

---

## [Computing common components in KNITRO callbacks](https://discourse.julialang.org/t/computing-common-components-in-knitro-callbacks/107014)

<div class="topic-metadata">

**Author:** [@fimiller](https://discourse.julialang.org/u/fimiller)\
**Replies:** 7\
**Last updated:** [December 5, 2023, 1:35pm UTC](https://discourse.julialang.org/t/computing-common-components-in-knitro-callbacks/107014 "2023-12-05T13:35:31Z")

</div>

I am using KNITRO.jl to solve a particular optimization problem. In my optimization problem, there is a common calculation done across the constraint, jacobian for the constraint, and the hessian for the constraint. Cur…

---

## [Mutable structs in DifferentialEquations.jl parameters to cache data](https://discourse.julialang.org/t/mutable-structs-in-differentialequations-jl-parameters-to-cache-data/107029)

<div class="topic-metadata">

**Author:** [@jondavis847](https://discourse.julialang.org/u/jondavis847)\
**Replies:** 13\
**Last updated:** [December 5, 2023, 12:15am UTC](https://discourse.julialang.org/t/mutable-structs-in-differentialequations-jl-parameters-to-cache-data/107029 "2023-12-05T00:15:24Z")

</div>

Hello, I have a model implemented in DifferentialEquations.jl that saves lot of states. Some are just temporary for calculation or history, some are required for saving. Only a small subset of the states are the minimum…

---

## [@synchronize causing silent failures in function](https://discourse.julialang.org/t/synchronize-causing-silent-failures-in-function/106919)

<div class="topic-metadata">

**Author:** [@erasedbird](https://discourse.julialang.org/u/erasedbird)\
**Replies:** 4\
**Last updated:** [December 4, 2023, 9:41pm UTC](https://discourse.julialang.org/t/synchronize-causing-silent-failures-in-function/106919 "2023-12-04T21:41:28Z")

</div>

Hello! I’ve been having this strange issue. Running the following code in a Jupyter notebook causes it to be forever stuck on the last line: using KernelAbstractions using CUDA @kernel function tile\_lu\_factor!(A, n) …

---

## [ERROR: LoadError: UndefVarError: \`StatelessTableTransform\` not defined](https://discourse.julialang.org/t/error-loaderror-undefvarerror-statelesstabletransform-not-defined/107130)

<div class="topic-metadata">

**Author:** [@chadagreene](https://discourse.julialang.org/u/chadagreene)\
**Replies:** 2\
**Last updated:** [December 4, 2023, 9:17pm UTC](https://discourse.julialang.org/t/error-loaderror-undefvarerror-statelesstabletransform-not-defined/107130 "2023-12-04T21:17:21Z")

</div>

I’m trying to use GeoStats.jl, but I keep hitting this error. Any tips? julia\> using GeoStatsBase \[ Info: Precompiling GeoStatsBase \[323cb8eb-fbf6-51c0-afd0-f8fba70507b2\] WARNING: could not import TableTransforms.Statel…

---

## [Nesting the GLM.jl in the objective function when formulating the ReverseDiff gradient generates StackOverflowError](https://discourse.julialang.org/t/nesting-the-glm-jl-in-the-objective-function-when-formulating-the-reversediff-gradient-generates-stackoverflowerror/107050)

<div class="topic-metadata">

**Author:** [@xxxxx](https://discourse.julialang.org/u/xxxxx)\
**Replies:** 5\
**Last updated:** [December 4, 2023, 8:01pm UTC](https://discourse.julialang.org/t/nesting-the-glm-jl-in-the-objective-function-when-formulating-the-reversediff-gradient-generates-stackoverflowerror/107050 "2023-12-04T20:01:54Z")

</div>

Hi, in formulating my objective function for optimization, in one of the steps, the parameters will enter a Poisson regression as the weight, which I implemented through GLM.jl package. However, when generating the gradi…

---

## [SDDP.jl without any uncertainty](https://discourse.julialang.org/t/sddp-jl-without-any-uncertainty/106964)

<div class="topic-metadata">

**Author:** [@Sorooshsa](https://discourse.julialang.org/u/Sorooshsa)\
**Replies:** 5\
**Last updated:** [December 4, 2023, 5:19pm UTC](https://discourse.julialang.org/t/sddp-jl-without-any-uncertainty/106964 "2023-12-04T17:19:03Z")

</div>

Hello everyone, I was experimenting with SDDP.jl, changing parameters to see how it behaved. I defined a random variable but parametrized it equally (9 equal realizations), so the problem became deterministic and was s…

---

## [Any way to efficiently run Poisson regression thousands of times?](https://discourse.julialang.org/t/any-way-to-efficiently-run-poisson-regression-thousands-of-times/106727)

<div class="topic-metadata">

**Author:** [@xxxxx](https://discourse.julialang.org/u/xxxxx)\
**Replies:** 23\
**Last updated:** [December 4, 2023, 3:44pm UTC](https://discourse.julialang.org/t/any-way-to-efficiently-run-poisson-regression-thousands-of-times/106727 "2023-12-04T15:44:18Z")

</div>

I need to run Poisson regression around 3000 times with the same set of Y and X but different weights. I’m currently using GLM.jl with a for-loop. The whole thing takes about 58 seconds. I was wondering if there are more…

---

## [Distributed parallel loops](https://discourse.julialang.org/t/distributed-parallel-loops/107047)

<div class="topic-metadata">

**Author:** [@sam\_ttp](https://discourse.julialang.org/u/sam_ttp)\
**Replies:** 0\
**Last updated:** [December 2, 2023, 3:58pm UTC](https://discourse.julialang.org/t/distributed-parallel-loops/107047 "2023-12-02T15:58:55Z")

</div>

I have been trying to learn how to perform distributed parallel programming in Julia and would like to clarify some (beginner) doubts. using Distributed addprocs(4) @everywhere function foo(n) sleep(0.001) re…

---

## [Light shading for 'inverted' surface plot in GLMakie](https://discourse.julialang.org/t/light-shading-for-inverted-surface-plot-in-glmakie/107064)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 2\
**Last updated:** [December 4, 2023, 8:28am UTC](https://discourse.julialang.org/t/light-shading-for-inverted-surface-plot-in-glmakie/107064 "2023-12-04T08:28:27Z")

</div>

If I want to plot an ‘inverted’ surface, like the cupcake mold in the top figure below. I set the light directions to be lights = \[ AmbientLight(RGBf(1, 1, 1)), SpotLight(0.4\*RGBf(1, 1, 1), Point3f(10, …

---

## [Zygote error when using Nonconvex.jl: Mutating arrays is not supported](https://discourse.julialang.org/t/zygote-error-when-using-nonconvex-jl-mutating-arrays-is-not-supported/107067)

<div class="topic-metadata">

**Author:** [@AP\_profile](https://discourse.julialang.org/u/AP_profile)\
**Replies:** 2\
**Last updated:** [December 3, 2023, 1:59pm UTC](https://discourse.julialang.org/t/zygote-error-when-using-nonconvex-jl-mutating-arrays-is-not-supported/107067 "2023-12-03T13:59:18Z")

</div>

Hi all, I am new to Julia and trying to use SLSQP Nonconvex. The optimization code is as follows: using Nonconvex Nonconvex.@load NLopt start\_vec = zeros(11) gamma\_vec = range(start=-7, stop=7, length=40) rho = 0.58 t…

---

## [Debugging an anonymous function passed to DynamicalSystems](https://discourse.julialang.org/t/debugging-an-anonymous-function-passed-to-dynamicalsystems/106890)

<div class="topic-metadata">

**Author:** [@Niall](https://discourse.julialang.org/u/Niall)\
**Replies:** 8\
**Last updated:** [December 3, 2023, 11:14am UTC](https://discourse.julialang.org/t/debugging-an-anonymous-function-passed-to-dynamicalsystems/106890 "2023-12-03T11:14:58Z")

</div>

HI. This question is a continuation of a previous topic here, on constructing anonymous functions dynamically. In my case, these functions are intended to form the dynamical rule used for initialising CoupledODEs from a …

---

## [Does this output look like SCIP has fallen into an infinite loop?](https://discourse.julialang.org/t/does-this-output-look-like-scip-has-fallen-into-an-infinite-loop/107061)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [December 2, 2023, 11:21pm UTC](https://discourse.julialang.org/t/does-this-output-look-like-scip-has-fallen-into-an-infinite-loop/107061 "2023-12-02T23:21:13Z")

</div>

I’m using SCIP.jl, and the SCIP solver seems like it maybe enters an infinite loop, judging by the output it’s producing: 897s|591200 |476649 |685013 | 1.2 | 3574M | 241 |1212 | 651 | 390 | 213k| 1 | 1 | 21 | 0…

---

## [A small "API" I made for ModelingToolkit/MoL, need feedback on the general API structure](https://discourse.julialang.org/t/a-small-api-i-made-for-modelingtoolkit-mol-need-feedback-on-the-general-api-structure/107039)

<div class="topic-metadata">

**Author:** [@Qfl3x](https://discourse.julialang.org/u/Qfl3x)\
**Replies:** 4\
**Last updated:** [December 2, 2023, 2:28pm UTC](https://discourse.julialang.org/t/a-small-api-i-made-for-modelingtoolkit-mol-need-feedback-on-the-general-api-structure/107039 "2023-12-02T14:28:03Z")

</div>

Essentially the API is “functional”, where parameterized functions are defined which give the variables, parameters, equations…etc of the model. The goal is to have a nice easy way to do experiments that involve changi…

---

## [Time to find the best solution in a mixed-integer linear programming model with JuMP](https://discourse.julialang.org/t/time-to-find-the-best-solution-in-a-mixed-integer-linear-programming-model-with-jump/106985)

<div class="topic-metadata">

**Author:** [@baprata](https://discourse.julialang.org/u/baprata)\
**Replies:** 2\
**Last updated:** [December 2, 2023, 10:28am UTC](https://discourse.julialang.org/t/time-to-find-the-best-solution-in-a-mixed-integer-linear-programming-model-with-jump/106985 "2023-12-02T10:28:53Z")

</div>

I am solving a mixed-integer linear programming model with JuMP and CPLEX. How could I measure the time required to find the best solution? Sometimes, the global optimal solution is found, but the solver continues the s…

---

## [Can't get gpu recognized: AMDGPU.functional(:MIOpen) returns false](https://discourse.julialang.org/t/cant-get-gpu-recognized-amdgpu-functional-miopen-returns-false/107032)

<div class="topic-metadata">

**Author:** [@Tetrakai](https://discourse.julialang.org/u/Tetrakai)\
**Replies:** 3\
**Last updated:** [December 2, 2023, 4:46am UTC](https://discourse.julialang.org/t/cant-get-gpu-recognized-amdgpu-functional-miopen-returns-false/107032 "2023-12-02T04:46:02Z")

</div>

I got the FastAI example from the readme running on cpu, so now tried to move to gpu after installing ROCm 5.7.1. It still reverted to CPU: fitonecycle!(learner, 1) ┌ Info: The GPU function is being called but the GPU i…

---

## [Problems saving/opening ODESolution from SciML with JLD2](https://discourse.julialang.org/t/problems-saving-opening-odesolution-from-sciml-with-jld2/106958)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 12\
**Last updated:** [December 2, 2023, 12:49am UTC](https://discourse.julialang.org/t/problems-saving-opening-odesolution-from-sciml-with-jld2/106958 "2023-12-02T00:49:40Z")

</div>

I define a custom struct to hold the parameters for the coupled ODEs I’m solving with OrdinaryDiffEq.jl, which typically stores various numbers and arrays (1D or 2D), as well as vectors of dualcache vectors in par.dualca…

---

## [Binary latent variable for occupancy modelling using Turing](https://discourse.julialang.org/t/binary-latent-variable-for-occupancy-modelling-using-turing/106090)

<div class="topic-metadata">

**Author:** [@VLucet](https://discourse.julialang.org/u/VLucet)\
**Replies:** 4\
**Last updated:** [December 1, 2023, 10:08pm UTC](https://discourse.julialang.org/t/binary-latent-variable-for-occupancy-modelling-using-turing/106090 "2023-12-01T22:08:45Z")

</div>

I am trying to implement a simple species occupancy model, which makes use of a latent binary variable. I’ve tried to get inspiration from this repository, but got confused by the approach and tried to start from even si…

---

## [Comparison to numpyro](https://discourse.julialang.org/t/comparison-to-numpyro/106495)

<div class="topic-metadata">

**Author:** [@spragud2](https://discourse.julialang.org/u/spragud2)\
**Replies:** 9\
**Last updated:** [December 1, 2023, 7:42pm UTC](https://discourse.julialang.org/t/comparison-to-numpyro/106495 "2023-12-01T19:42:53Z")

</div>

Curious if anyone else has tried comparing Turing with Numpyro? I am working with a dataset of about N = 5,000 and fitting a bayesian MLP on top of a fine-tuned language model which I am viewing as a fixed feature extrac…

---

## [Notify not working when triggered by a button](https://discourse.julialang.org/t/notify-not-working-when-triggered-by-a-button/107010)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 0\
**Last updated:** [December 1, 2023, 5:55pm UTC](https://discourse.julialang.org/t/notify-not-working-when-triggered-by-a-button/107010 "2023-12-01T17:55:09Z")

</div>

My code for updating a heatmap is not working when triggered by a button. I have tried to boil things down to a minimum working example. The expected behaviour is that at each evaluation of the cost function, one pixel …

---

## [Override or change opacity of a given RGBA color?](https://discourse.julialang.org/t/override-or-change-opacity-of-a-given-rgba-color/106880)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 4\
**Last updated:** [December 1, 2023, 5:05pm UTC](https://discourse.julialang.org/t/override-or-change-opacity-of-a-given-rgba-color/106880 "2023-12-01T17:05:24Z")

</div>

I’ve seen a construct like (:red, 0.3) to control the color and opacity separately. What I’d like to achieve here is to change the opacity of a given RGBA color. What’s the idiomatic way? At the end of this message, I …

---

## [VARMA and VARMAX time series models](https://discourse.julialang.org/t/varma-and-varmax-time-series-models/107003)

<div class="topic-metadata">

**Author:** [@Helectus](https://discourse.julialang.org/u/Helectus)\
**Replies:** 1\
**Last updated:** [December 1, 2023, 4:53pm UTC](https://discourse.julialang.org/t/varma-and-varmax-time-series-models/107003 "2023-12-01T16:53:03Z")

</div>

Is there a VARMA or VARMAX model in any package? Would it be worth it for me to develop a wrapper for pythons implementations? Maybe it has been done before and i cant find it?

---

## [Splitting and joining Flux model chains](https://discourse.julialang.org/t/splitting-and-joining-flux-model-chains/34636)

<div class="topic-metadata">

**Author:** [@fastwave](https://discourse.julialang.org/u/fastwave)\
**Replies:** 4\
**Last updated:** [December 1, 2023, 3:49pm UTC](https://discourse.julialang.org/t/splitting-and-joining-flux-model-chains/34636 "2023-12-01T15:49:54Z")

</div>

I would like to create a Flux model that splits the input into two, processes it in two different ways and then joins it together using a model. Chain does not seem to allow parallel data paths. The diagram is here:Netwo…

---

## [What is the argument to change the legend title?](https://discourse.julialang.org/t/what-is-the-argument-to-change-the-legend-title/106996)

<div class="topic-metadata">

**Author:** [@vladdez](https://discourse.julialang.org/u/vladdez)\
**Replies:** 1\
**Last updated:** [December 1, 2023, 2:58pm UTC](https://discourse.julialang.org/t/what-is-the-argument-to-change-the-legend-title/106996 "2023-12-01T14:58:27Z")

</div>

In Makie documentation I have seen this way to put a label of the legend: f\[1, 2\] = Legend(f, ax, “Trig Functions”, framevisible = false) But is there a way to assing a legend title using some kwarg (argument) like a “…

---

## [Position of axis labels and titles with Plots](https://discourse.julialang.org/t/position-of-axis-labels-and-titles-with-plots/99925)

<div class="topic-metadata">

**Author:** [@mesonepigreco](https://discourse.julialang.org/u/mesonepigreco)\
**Replies:** 2\
**Last updated:** [December 1, 2023, 8:30am UTC](https://discourse.julialang.org/t/position-of-axis-labels-and-titles-with-plots/99925 "2023-12-01T08:30:19Z")

</div>

Dear julia community, I am struggling trying to adjust the position of the x and y labels of my plots. I have a figure made by 4 heatmaps with a nearby colormap: plot\_xlim\_heat = (-3,3) plot\_xlim\_diss = (-5,5) #…

---

## [How can I move an axis in a 3d plot, so that it is shown "outside" of the grid?](https://discourse.julialang.org/t/how-can-i-move-an-axis-in-a-3d-plot-so-that-it-is-shown-outside-of-the-grid/96365)

<div class="topic-metadata">

**Author:** [@bertulli](https://discourse.julialang.org/u/bertulli)\
**Replies:** 9\
**Last updated:** [December 1, 2023, 8:02am UTC](https://discourse.julialang.org/t/how-can-i-move-an-axis-in-a-3d-plot-so-that-it-is-shown-outside-of-the-grid/96365 "2023-12-01T08:02:35Z")

</div>

Hi all, I’m making a plot using Plots.jl with the default GR backend. When I run this code # density\_matrix contains the data I want to plot p = plot(density\_matrix, st = :surface, xlabel="Binary weight", ylab…

---

## [Row wise median for julia dataframes](https://discourse.julialang.org/t/row-wise-median-for-julia-dataframes/106922)

<div class="topic-metadata">

**Author:** [@AUK1939](https://discourse.julialang.org/u/AUK1939)\
**Replies:** 18\
**Last updated:** [November 30, 2023, 10:40pm UTC](https://discourse.julialang.org/t/row-wise-median-for-julia-dataframes/106922 "2023-11-30T22:40:50Z")

</div>

I’ve been advised to ask this here vs stackoverflow I want to compute the median values of all rows in a dataframe. Some columns contain NaN values. Some rows even have all NaN values. The problem with median is if th…

---

## [MultiObjectiveAlgorithms.jl (Error Message)](https://discourse.julialang.org/t/multiobjectivealgorithms-jl-error-message/106876)

<div class="topic-metadata">

**Author:** [@IgorESMelo](https://discourse.julialang.org/u/IgorESMelo)\
**Replies:** 7\
**Last updated:** [November 30, 2023, 10:01pm UTC](https://discourse.julialang.org/t/multiobjectivealgorithms-jl-error-message/106876 "2023-11-30T22:01:52Z")

</div>

Hi everyone, I’ve modeled a simple model to assign instruments to procedures. I’ve implemented the model in JuMP using the solver Gurobi and package MOA.jl. When I tried to solve the model, the message below appear to m…

---

## [Static array with uniform distribution](https://discourse.julialang.org/t/static-array-with-uniform-distribution/106961)

<div class="topic-metadata">

**Author:** [@sand](https://discourse.julialang.org/u/sand)\
**Replies:** 2\
**Last updated:** [November 30, 2023, 8:11pm UTC](https://discourse.julialang.org/t/static-array-with-uniform-distribution/106961 "2023-11-30T20:11:50Z")

</div>

Hello, I would like to know how to generate a static array with a uniform distribution (-2, 2). Here is an example: using StaticArrays using Distributions @SVector(randn(5)) # works rand(Uniform(-2, 2), 5) # w…

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

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