# Specific Domains

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

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

**Page:** 233

---

## [Dash Julia: Processing Multiple Near-Simultaneous Requests](https://discourse.julialang.org/t/dash-julia-processing-multiple-near-simultaneous-requests/72106)

<div class="topic-metadata">

**Author:** [@grahamstark](https://discourse.julialang.org/u/grahamstark)\
**Replies:** 5\
**Last updated:** [November 25, 2022, 10:09pm UTC](https://discourse.julialang.org/t/dash-julia-processing-multiple-near-simultaneous-requests/72106 "2022-11-25T22:09:41Z")

</div>

Hi, I have a little simulation in Dash that takes ~20 seconds to run. Is there a trick that would allow the Dash app to run multiple requests simultaneously? From what I can see, Dash just queues up multiple requests an…

---

## [Hlines!() xmin/xmax do not accept Observable list in GLMakie](https://discourse.julialang.org/t/hlines-xmin-xmax-do-not-accept-observable-list-in-glmakie/90788)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 2\
**Last updated:** [November 25, 2022, 9:26pm UTC](https://discourse.julialang.org/t/hlines-xmin-xmax-do-not-accept-observable-list-in-glmakie/90788 "2022-11-25T21:26:58Z")

</div>

I’m trying to plot horizontal (or vertical) lines using GLMakie, but I need both the lines and the endpoints to be an Observable of a list. I want to do something very similar to the documentation for hlines and vlines, …

---

## [How to get the results and gradients when using ForwardDiff.jl](https://discourse.julialang.org/t/how-to-get-the-results-and-gradients-when-using-forwarddiff-jl/90525)

<div class="topic-metadata">

**Author:** [@Frankiewaang](https://discourse.julialang.org/u/Frankiewaang)\
**Replies:** 9\
**Last updated:** [November 25, 2022, 4:21pm UTC](https://discourse.julialang.org/t/how-to-get-the-results-and-gradients-when-using-forwarddiff-jl/90525 "2022-11-25T16:21:24Z")

</div>

I did some research and found out that if I want to get both the value of a function and its gradients I could use the API from DiffResults. But if the result from a function returns a tuple(instead of a scalar) where th…

---

## [Performance issues sampling a multimomial logit (slightly modified) with Turing.jl](https://discourse.julialang.org/t/performance-issues-sampling-a-multimomial-logit-slightly-modified-with-turing-jl/90730)

<div class="topic-metadata">

**Author:** [@sarkispa](https://discourse.julialang.org/u/sarkispa)\
**Replies:** 6\
**Last updated:** [November 25, 2022, 3:36pm UTC](https://discourse.julialang.org/t/performance-issues-sampling-a-multimomial-logit-slightly-modified-with-turing-jl/90730 "2022-11-25T15:36:54Z")

</div>

Hi all, I’m essentially trying to sample from a Bayesian multinomial logit with a few complexities: choices have characteristics and choices might not be available in all time periods (no time series here). Choice proba…

---

## [DimensionMismatch: The size of a distance matrix ((1, 440)) doesn't match the length of assignment vector (440)](https://discourse.julialang.org/t/dimensionmismatch-the-size-of-a-distance-matrix-1-440-doesnt-match-the-length-of-assignment-vector-440/90807)

<div class="topic-metadata">

**Author:** [@JUL1A](https://discourse.julialang.org/u/JUL1A)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 3:36pm UTC](https://discourse.julialang.org/t/dimensionmismatch-the-size-of-a-distance-matrix-1-440-doesnt-match-the-length-of-assignment-vector-440/90807 "2022-11-25T15:36:13Z")

</div>

How to fix this: using Clustering using VectorizedStatistics function MyKmeans(Train::Vector{Float64}, k::Int64) the\_mat = Train' model = kmeans(the\_mat, k) return vmean(silhouettes(assignments(model), cou…

---

## [Mosek does not give the optimal value derived by simplex methods](https://discourse.julialang.org/t/mosek-does-not-give-the-optimal-value-derived-by-simplex-methods/90727)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 10\
**Last updated:** [November 25, 2022, 1:34pm UTC](https://discourse.julialang.org/t/mosek-does-not-give-the-optimal-value-derived-by-simplex-methods/90727 "2022-11-25T13:34:54Z")

</div>

I have a linear Polynomial Optimization problem (DSOS) programming, and I want to solve it with Mosek. Mosek first does the interior point method (IPM) and then switches to simplex method and reoptimizes it with simplex …

---

## [CUDA How to limit the gpu memory available?](https://discourse.julialang.org/t/cuda-how-to-limit-the-gpu-memory-available/90599)

<div class="topic-metadata">

**Author:** [@Ludovic\_Dumoulin](https://discourse.julialang.org/u/Ludovic_Dumoulin)\
**Replies:** 7\
**Last updated:** [November 25, 2022, 9:56am UTC](https://discourse.julialang.org/t/cuda-how-to-limit-the-gpu-memory-available/90599 "2022-11-25T09:56:12Z")

</div>

Hello, With other lab members we share a jupyter hub server with a single gpu (A30). The problem is that when one is using FFTW or CuArray operations he fills the entire memory. When one runs a code with only low leve…

---

## [Warm start Mosek in a linear polynomial optimization problem](https://discourse.julialang.org/t/warm-start-mosek-in-a-linear-polynomial-optimization-problem/90478)

<div class="topic-metadata">

**Author:** [@Khashayar-Neshat](https://discourse.julialang.org/u/Khashayar-Neshat)\
**Replies:** 2\
**Last updated:** [November 25, 2022, 8:27am UTC](https://discourse.julialang.org/t/warm-start-mosek-in-a-linear-polynomial-optimization-problem/90478 "2022-11-25T08:27:02Z")

</div>

Hi, I have a polynomial optimization which is a linear programming (DSOS programming) and I want to use Mosek with warm start. In the following, I have two optimizations “m” and “m1”. I want to use the answer of Optimiz…

---

## [Flux RNN training giving \`BoundsError\`](https://discourse.julialang.org/t/flux-rnn-training-giving-boundserror/90723)

<div class="topic-metadata">

**Author:** [@mjyshin](https://discourse.julialang.org/u/mjyshin)\
**Replies:** 3\
**Last updated:** [November 25, 2022, 3:12am UTC](https://discourse.julialang.org/t/flux-rnn-training-giving-boundserror/90723 "2022-11-25T03:12:01Z")

</div>

I was originally trying to train a network with recurrence using GRUs but I kept getting this BoundsError: attempt to access Tuple{} at index \[0\]. So I gave up and tried running the rnn-char example in the model-zoo, wit…

---

## [Input to Neural Network](https://discourse.julialang.org/t/input-to-neural-network/90770)

<div class="topic-metadata">

**Author:** [@Kuldeep](https://discourse.julialang.org/u/Kuldeep)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 9:11pm UTC](https://discourse.julialang.org/t/input-to-neural-network/90770 "2022-11-24T21:11:21Z")

</div>

Hi, I am new to both Julia and deep learning. Suppose we define a following network: using Flux nn\_width = 10 m = Chain(Dense(1,nn\_width,tanh), Dense(nn\_width,nn\_width,tanh), Dense(nn\_width,1…

---

## [Multiple linear regression model using Flux.jl](https://discourse.julialang.org/t/multiple-linear-regression-model-using-flux-jl/90775)

<div class="topic-metadata">

**Author:** [@moataz-sabry](https://discourse.julialang.org/u/moataz-sabry)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 8:57pm UTC](https://discourse.julialang.org/t/multiple-linear-regression-model-using-flux-jl/90775 "2022-11-24T20:57:23Z")

</div>

Hello everyone, I’m new to machine learning and I was trying to extend the basic example from Flux documentation to a multiple linear regression model where the input S and the output V are both vectors with 3 elements …

---

## [How to turn a dot into simple scaler expressions for nonlinear optimization using JUMP](https://discourse.julialang.org/t/how-to-turn-a-dot-into-simple-scaler-expressions-for-nonlinear-optimization-using-jump/90776)

<div class="topic-metadata">

**Author:** [@elliot000319](https://discourse.julialang.org/u/elliot000319)\
**Replies:** 1\
**Last updated:** [November 24, 2022, 8:40pm UTC](https://discourse.julialang.org/t/how-to-turn-a-dot-into-simple-scaler-expressions-for-nonlinear-optimization-using-jump/90776 "2022-11-24T20:40:31Z")

</div>

I want to turn the dot notation in this code to simple scaler operations for NLconstraint. I’ve checked the examples in JUMP’s documentation, but I could not get it to work. The following is the part that’s causing the…

---

## [How to use Combinatorics.jl for permutations](https://discourse.julialang.org/t/how-to-use-combinatorics-jl-for-permutations/90766)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 7:43pm UTC](https://discourse.julialang.org/t/how-to-use-combinatorics-jl-for-permutations/90766 "2022-11-24T19:43:02Z")

</div>

I would like to gather all permutations of a certain number of elements of a set. I read that Combinatorics.jl can be used for that. However, I do not know how to use it. I do the following using Combinatorics: permutat…

---

## [Workaround for: Sum of binary Matrix as Index for Input Matrix](https://discourse.julialang.org/t/workaround-for-sum-of-binary-matrix-as-index-for-input-matrix/90769)

<div class="topic-metadata">

**Author:** [@JNSDVD](https://discourse.julialang.org/u/JNSDVD)\
**Replies:** 3\
**Last updated:** [November 24, 2022, 7:18pm UTC](https://discourse.julialang.org/t/workaround-for-sum-of-binary-matrix-as-index-for-input-matrix/90769 "2022-11-24T19:18:13Z")

</div>

Hey people, I am new here, any help is much appreciated!! @variable( bilap, X\[1:2,u=1:4,1:3\], Bin) I want to use the sum of all 1s per each u in X as an Input (Index) for the matrix shown above. @constraint( bilap…

---

## [How to model a 2 dimensional drone using JUMP, and lpopt](https://discourse.julialang.org/t/how-to-model-a-2-dimensional-drone-using-jump-and-lpopt/90703)

<div class="topic-metadata">

**Author:** [@elliot000319](https://discourse.julialang.org/u/elliot000319)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 6:39pm UTC](https://discourse.julialang.org/t/how-to-model-a-2-dimensional-drone-using-jump-and-lpopt/90703 "2022-11-24T18:39:10Z")

</div>

I want to model a drone? (consider a drone) that has a fixed thrust. It needs to control its body angle and thrust value to balance itself against the gravity to arrive at the desired destination. I might have made some …

---

## [ParetoSmooth.jl psis\_loo crashes with ERROR: The number of lines in \`row\_names\` must match the number of lines in the matrix](https://discourse.julialang.org/t/paretosmooth-jl-psis-loo-crashes-with-error-the-number-of-lines-in-row-names-must-match-the-number-of-lines-in-the-matrix/90489)

<div class="topic-metadata">

**Author:** [@SebastianCallh](https://discourse.julialang.org/u/SebastianCallh)\
**Replies:** 5\
**Last updated:** [November 24, 2022, 6:34pm UTC](https://discourse.julialang.org/t/paretosmooth-jl-psis-loo-crashes-with-error-the-number-of-lines-in-row-names-must-match-the-number-of-lines-in-the-matrix/90489 "2022-11-24T18:34:53Z")

</div>

Hi! I found an example use of ParetoSmooth.jl psis\_loo here, but when I try to run the example it crashes with \[ Info: No source provided for samples; variables are assumed to be from a Markov Chain. If the samples are…

---

## [PyPlot broken under 1.7?](https://discourse.julialang.org/t/pyplot-broken-under-1-7/72971)

<div class="topic-metadata">

**Author:** [@Bardo](https://discourse.julialang.org/u/Bardo)\
**Replies:** 9\
**Last updated:** [November 24, 2022, 4:02pm UTC](https://discourse.julialang.org/t/pyplot-broken-under-1-7/72971 "2022-11-24T16:02:46Z")

</div>

Pkg.add shows errors in PyCall and PyPlot, requesting precompiling. Pkg.precompile throws errors and requests Pkg.build(“PyCall”) This then throws the erros below. Julia Version 1.7.0 Commit 3bf9d17731 (2021-11-30 12:…

---

## [Incorrect objective type when using MA57 with Ipopt in JuMP](https://discourse.julialang.org/t/incorrect-objective-type-when-using-ma57-with-ipopt-in-jump/90578)

<div class="topic-metadata">

**Author:** [@this\_josh](https://discourse.julialang.org/u/this_josh)\
**Replies:** 14\
**Last updated:** [November 24, 2022, 8:38am UTC](https://discourse.julialang.org/t/incorrect-objective-type-when-using-ma57-with-ipopt-in-jump/90578 "2022-11-24T08:38:27Z")

</div>

I’d like minimise the sum of a variable using JuMP, here is a MWE: UB= rand(1:9, (67,24)) # not really necessary model = Model() @variable(model, 0 ≤ x\[i= 1:67, j=1:24\] ≤ UB\[i,j\]) @objective(model, Min, sum(x\[ii, jj\] f…

---

## [Unstable performance of MILP with JuMP](https://discourse.julialang.org/t/unstable-performance-of-milp-with-jump/90715)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 2\
**Last updated:** [November 24, 2022, 2:47am UTC](https://discourse.julialang.org/t/unstable-performance-of-milp-with-jump/90715 "2022-11-24T02:47:07Z")

</div>

It occasionally happens that the running time in solving a fixed MILP problem varies between a few seconds and a few minutes. The scenario remains the same regardless of the solver: I have tried Gurobi, Cbc, and HiGHS. T…

---

## [Problem installing Makie package](https://discourse.julialang.org/t/problem-installing-makie-package/90643)

<div class="topic-metadata">

**Author:** [@healyp](https://discourse.julialang.org/u/healyp)\
**Replies:** 4\
**Last updated:** [November 23, 2022, 6:50pm UTC](https://discourse.julialang.org/t/problem-installing-makie-package/90643 "2022-11-23T18:50:17Z")

</div>

In my class one particular student is having a difficulty installing Makie. This is strange as all of the others appear to have installed it fine on identical hardware in a school lab. If I’m reading it correctly the i…

---

## [PlotlyJS.jl question](https://discourse.julialang.org/t/plotlyjs-jl-question/90403)

<div class="topic-metadata">

**Author:** [@Djamil\_Lakhdar-Hamin](https://discourse.julialang.org/u/Djamil_Lakhdar-Hamin)\
**Replies:** 7\
**Last updated:** [November 23, 2022, 5:43pm UTC](https://discourse.julialang.org/t/plotlyjs-jl-question/90403 "2022-11-23T17:43:20Z")

</div>

What if I am trying to animate the evolution of a surface after the execution of some command that modifies the z component of the surface? I have written the following but the trace does not update when you run the code…

---

## [Delay Differential Equation Interruptions](https://discourse.julialang.org/t/delay-differential-equation-interruptions/90704)

<div class="topic-metadata">

**Author:** [@Mark\_Williams](https://discourse.julialang.org/u/Mark_Williams)\
**Replies:** 1\
**Last updated:** [November 23, 2022, 4:57pm UTC](https://discourse.julialang.org/t/delay-differential-equation-interruptions/90704 "2022-11-23T16:57:55Z")

</div>

I’m trying to simulate a Covid model using a delay differential equation in DifferentialEquations.jl but I’m having a bit of difficultly getting it to work. I’m not sure If I’m applying the methods correctly. The model …

---

## [Agents.jl: why use it?](https://discourse.julialang.org/t/agents-jl-why-use-it/90711)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [November 23, 2022, 2:26pm UTC](https://discourse.julialang.org/t/agents-jl-why-use-it/90711 "2022-11-23T14:26:18Z")

</div>

Hi there… many years ago I worked in C++ creating my own agent-based model. Today, in the Julia world, which do you think is the main advantage of using an ABM framework as Agents.jl instead of coding the agents manuall…

---

## [DomainError while solving ODE](https://discourse.julialang.org/t/domainerror-while-solving-ode/53199)

<div class="topic-metadata">

**Author:** [@zamk](https://discourse.julialang.org/u/zamk)\
**Replies:** 10\
**Last updated:** [November 23, 2022, 12:14pm UTC](https://discourse.julialang.org/t/domainerror-while-solving-ode/53199 "2022-11-23T12:14:26Z")

</div>

I have been trying to estimate the parameters of the model included in the code below. When I run the code below, it solves for random parameters it generates. However, sometimes I get this: ERROR: DomainError with -0.11…

---

## [Equivalent to matplotlib kwarg "origin" in Plots.jl](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670)

<div class="topic-metadata">

**Author:** [@ClarkGuilty](https://discourse.julialang.org/u/ClarkGuilty)\
**Replies:** 4\
**Last updated:** [November 23, 2022, 7:08am UTC](https://discourse.julialang.org/t/equivalent-to-matplotlib-kwarg-origin-in-plots-jl/90670 "2022-11-23T07:08:38Z")

</div>

Hello everyone, In matplotlib you can control the origin of imshow plots using the “origin” kwarg: plt.imshow(image,origin='lower') In Julia you can show an image using Plots.heatmap(image). But, is there an equivalen…

---

## [Problem with IncompleteLU.jl](https://discourse.julialang.org/t/problem-with-incompletelu-jl/90636)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 4\
**Last updated:** [November 22, 2022, 9:57pm UTC](https://discourse.julialang.org/t/problem-with-incompletelu-jl/90636 "2022-11-22T21:57:22Z")

</div>

I use the file transient.mtx from the SuiteSparse Matrix Collection, see https://suitesparse-collection-website.herokuapp.com/MM/Freescale/transient.tar.gz. Then I try to define an incomplete LU factorization that I app…

---

## [Turing.jl - NUTS gets stuck in "The current proposal will be rejected... isfinite.((θ, r, ℓπ, ℓκ)) = (true, true, false, true)"](https://discourse.julialang.org/t/turing-jl-nuts-gets-stuck-in-the-current-proposal-will-be-rejected-isfinite-r-true-true-false-true/81428)

<div class="topic-metadata">

**Author:** [@rkmalaiya](https://discourse.julialang.org/u/rkmalaiya)\
**Replies:** 7\
**Last updated:** [November 22, 2022, 8:37pm UTC](https://discourse.julialang.org/t/turing-jl-nuts-gets-stuck-in-the-current-proposal-will-be-rejected-isfinite-r-true-true-false-true/81428 "2022-11-22T20:37:22Z")

</div>

I am trying to implement a model similar to Maas et al 2011 - equation 12 and 13 (details of my implementation below). The issue I am facing is that I am not able to use NUTS with this model. I get repeated numerical in…

---

## [Distributed Julia, ClusterMangers package, Slurm, and CUDA on a shared file system](https://discourse.julialang.org/t/distributed-julia-clustermangers-package-slurm-and-cuda-on-a-shared-file-system/90663)

<div class="topic-metadata">

**Author:** [@asaxton](https://discourse.julialang.org/u/asaxton)\
**Replies:** 4\
**Last updated:** [November 22, 2022, 8:27pm UTC](https://discourse.julialang.org/t/distributed-julia-clustermangers-package-slurm-and-cuda-on-a-shared-file-system/90663 "2022-11-22T20:27:36Z")

</div>

Hello, I’m running Julia 1.7.3 on a cluster using Slurm to launch batch jobs. The cluster has a shared filesystem. I’m using the Slurm cluster manager from the ClusterManagers package to call addproc(...). The node I’m …

---

## [Saving data tables at different timepoints](https://discourse.julialang.org/t/saving-data-tables-at-different-timepoints/89267)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 6\
**Last updated:** [November 22, 2022, 8:09pm UTC](https://discourse.julialang.org/t/saving-data-tables-at-different-timepoints/89267 "2022-11-22T20:09:27Z")

</div>

I have a data-frame like this: julia\> df = DataFrame(A=\[1,2,3\], B=\[:x,:y,:z\], C=\[(1,3), (-2,1),(4,4)\]) 3×3 DataFrame Row │ A B C │ Int64 Symbol Tuple… ─────┼──────────────────────── 1 │ …

---

## [@NLexpression involving multilinear algebra](https://discourse.julialang.org/t/nlexpression-involving-multilinear-algebra/90656)

<div class="topic-metadata">

**Author:** [@Thomas](https://discourse.julialang.org/u/Thomas)\
**Replies:** 3\
**Last updated:** [November 22, 2022, 6:12pm UTC](https://discourse.julialang.org/t/nlexpression-involving-multilinear-algebra/90656 "2022-11-22T18:12:25Z")

</div>

What is the recommended way to implement @NLexpression(model, tr(kron(A,B)\*kron(C,D,E)) where A,B,C,D,E are (references of) matrices of JuMP variables created by @variable of compatible sizes (so matrix multiplication …

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

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