# Specific Domains

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

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

**Page:** 410

---

## [Printing Jump NLexpression during solution](https://discourse.julialang.org/t/printing-jump-nlexpression-during-solution/49928)

<div class="topic-metadata">

**Author:** [@floswald](https://discourse.julialang.org/u/floswald)\
**Replies:** 1\
**Last updated:** [November 11, 2020, 9:59pm UTC](https://discourse.julialang.org/t/printing-jump-nlexpression-during-solution/49928 "2020-11-11T21:59:38Z")

</div>

i’m having trouble debugging my NL model in Jump. Here is a MWE: using JuMP, Ipopt function j\_test(a) m = Model(Ipopt.Optimizer) @variable(m,x \>= 1.0) @variable(m,y) @NLexpression(m, q, x^a + log(x + a) ) …

---

## [Increment elements of array by index](https://discourse.julialang.org/t/increment-elements-of-array-by-index/49694)

<div class="topic-metadata">

**Author:** [@dfdx](https://discourse.julialang.org/u/dfdx)\
**Replies:** 10\
**Last updated:** [November 11, 2020, 9:51pm UTC](https://discourse.julialang.org/t/increment-elements-of-array-by-index/49694 "2020-11-11T21:51:52Z")

</div>

Given an array A, indices I and values v, I want to add elements of v to A at I. Something like this: A = zeros(4) I = \[1, 3\] v = \[1, 1\] # partial solution A\[I\] .+= v Now the hard part: Indices may repeat, e.g. I = …

---

## [How do I use eigen! with my input matrix?](https://discourse.julialang.org/t/how-do-i-use-eigen-with-my-input-matrix/49997)

<div class="topic-metadata">

**Author:** [@Noel\_Araujo](https://discourse.julialang.org/u/Noel_Araujo)\
**Replies:** 4\
**Last updated:** [November 11, 2020, 7:42pm UTC](https://discourse.julialang.org/t/how-do-i-use-eigen-with-my-input-matrix/49997 "2020-11-11T19:42:35Z")

</div>

Hello I have an idea, but i don’t know how to implemented it. I would like to pass a temporary variables to store the eigenvectors of eigen! - by default eigen! uses the original matrix. I am confident that this is pos…

---

## [Sparse Gradient using Zygote & Optim](https://discourse.julialang.org/t/sparse-gradient-using-zygote-optim/49087)

<div class="topic-metadata">

**Author:** [@sobhan](https://discourse.julialang.org/u/sobhan)\
**Replies:** 2\
**Last updated:** [November 11, 2020, 3:59pm UTC](https://discourse.julialang.org/t/sparse-gradient-using-zygote-optim/49087 "2020-11-11T15:59:31Z")

</div>

I’m trying to minimize a function and i use Zygote to calculate the derivatives to minimize it with BFGS(from Optim), Can i get sparse gradient/hessiens and use them with optim. I really need to switch to sparse since on…

---

## [Make a webapp framework/ecosystem as awesome as R's Shiny: a challenge to Julia's community](https://discourse.julialang.org/t/make-a-webapp-framework-ecosystem-as-awesome-as-rs-shiny-a-challenge-to-julias-community/9533)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 61\
**Last updated:** [November 11, 2020, 8:17am UTC](https://discourse.julialang.org/t/make-a-webapp-framework-ecosystem-as-awesome-as-rs-shiny-a-challenge-to-julias-community/9533 "2020-11-11T08:17:44Z")

</div>

I quickly whip up this Shiny app and published as webapp for anyone to access within 5mins. https://xiaodai.shinyapps.io/shiny\_lang\_trends/ It plots the trends of programming languages and decompose the google trends t…

---

## [Set up Pandocs](https://discourse.julialang.org/t/set-up-pandocs/49965)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 0\
**Last updated:** [November 11, 2020, 4:29am UTC](https://discourse.julialang.org/t/set-up-pandocs/49965 "2020-11-11T04:29:53Z")

</div>

How do I set up Pandocs in VS Code, to convert Markdown files. I already have Weave.

---

## [Plotting Implicit Functions using ImplicitEquations.jl](https://discourse.julialang.org/t/plotting-implicit-functions-using-implicitequations-jl/49708)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 28\
**Last updated:** [November 11, 2020, 2:44am UTC](https://discourse.julialang.org/t/plotting-implicit-functions-using-implicitequations-jl/49708 "2020-11-11T02:44:31Z")

</div>

I’m trying to plot an implicit function using Plots, ImplicitEquations f(x,y)= sqrt((x^2+144)+(y^2+144)) and I get ERROR: Cannot convert Num to series data for plotting perhaps it’s because I have x and y as symbols …

---

## [JuMP to Convex](https://discourse.julialang.org/t/jump-to-convex/49957)

<div class="topic-metadata">

**Author:** [@faisal\_moh](https://discourse.julialang.org/u/faisal_moh)\
**Replies:** 1\
**Last updated:** [November 10, 2020, 11:57pm UTC](https://discourse.julialang.org/t/jump-to-convex/49957 "2020-11-10T23:57:52Z")

</div>

Hi, I’m new to Julia. Working on converting an optimization model from JuMP to Convex. m = Model(Ipopt.Optimizer) variable(m, x1 \>= 0) variable(m, x2 \>= 0) NLobjective(m, Max, 126x1 - 9x2^2 + 182x2 - 13x2^2) constr…

---

## [Unable to install Gurobi 9.1](https://discourse.julialang.org/t/unable-to-install-gurobi-9-1/49915)

<div class="topic-metadata">

**Author:** [@hassanis](https://discourse.julialang.org/u/hassanis)\
**Replies:** 2\
**Last updated:** [November 10, 2020, 11:58pm UTC](https://discourse.julialang.org/t/unable-to-install-gurobi-9-1/49915 "2020-11-10T23:58:31Z")

</div>

I’m having trouble installing Gurobi 9.1. My license is up to date and the new Gurobi has been installed in the correct location. I’ve also added the correct path prior to building the package: ENV\["GUROBI\_HOME"\] = "/Lib…

---

## [Using DifferentialEquations.jl Fminbox with multiple parameters](https://discourse.julialang.org/t/using-differentialequations-jl-fminbox-with-multiple-parameters/49829)

<div class="topic-metadata">

**Author:** [@claudio20497](https://discourse.julialang.org/u/claudio20497)\
**Replies:** 7\
**Last updated:** [November 10, 2020, 11:23pm UTC](https://discourse.julialang.org/t/using-differentialequations-jl-fminbox-with-multiple-parameters/49829 "2020-11-10T23:23:57Z")

</div>

Hello, I’m using the following SIRD eipdemiological model. This model takes into account 16 age classes. The last dD\_tot compartment, an array of 16 components all equal is a trick to later calibrate with respect to cu…

---

## [Bug detected in deconvolution operation deconv()](https://discourse.julialang.org/t/bug-detected-in-deconvolution-operation-deconv/49546)

<div class="topic-metadata">

**Author:** [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)\
**Replies:** 4\
**Last updated:** [November 10, 2020, 9:34pm UTC](https://discourse.julialang.org/t/bug-detected-in-deconvolution-operation-deconv/49546 "2020-11-10T21:34:17Z")

</div>

The DSP package contains some routines very vital and basic to Fourier analysis. However the simple deconvultion operation is not working. Consider the following simple code using DSP; a = zeros( Float64, 5); a\[3\]=10; b…

---

## [CUDA v2 - performance regression on matrix multiplication](https://discourse.julialang.org/t/cuda-v2-performance-regression-on-matrix-multiplication/49763)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 14\
**Last updated:** [November 10, 2020, 8:55pm UTC](https://discourse.julialang.org/t/cuda-v2-performance-regression-on-matrix-multiplication/49763 "2020-11-10T20:55:38Z")

</div>

Following upgrade of Flux from CUDA 1 to CUDA 2, operations running on CUDA appear to allocate more as well as being slightly slower. For example, on a LSTM, with CUDA 2.1 : 8.572 s (16390042 allocations: 3.92 GiB) CU…

---

## [Any way to auto-reformat Binary without extra tail "000s..."](https://discourse.julialang.org/t/any-way-to-auto-reformat-binary-without-extra-tail-000s/49944)

<div class="topic-metadata">

**Author:** [@teriiju](https://discourse.julialang.org/u/teriiju)\
**Replies:** 1\
**Last updated:** [November 10, 2020, 8:44pm UTC](https://discourse.julialang.org/t/any-way-to-auto-reformat-binary-without-extra-tail-000s/49944 "2020-11-10T20:44:02Z")

</div>

Hi, using the Dec to Bin convertion, I’ve pickup this lines of codes which seem to do the job : dek = 21 string(bswap(dek), base = 2) "1010100000........." Now, in this way I’m getting a very long format : Out\[9\]: “1…

---

## [Plots printed abnormally big](https://discourse.julialang.org/t/plots-printed-abnormally-big/49906)

<div class="topic-metadata">

**Author:** [@daorse](https://discourse.julialang.org/u/daorse)\
**Replies:** 5\
**Last updated:** [November 10, 2020, 6:50pm UTC](https://discourse.julialang.org/t/plots-printed-abnormally-big/49906 "2020-11-10T18:50:29Z")

</div>

Hello, since I rebuilt Plots (v.1.8.0) in order to solve another issue (“GKS: character ignored due to unicode error”) my plots are now by default printed in a huge format and even when a smaller size is specified, all…

---

## [JuliaGPU CI moving to Buildkite](https://discourse.julialang.org/t/juliagpu-ci-moving-to-buildkite/49925)

<div class="topic-metadata">

**Author:** [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Replies:** 0\
**Last updated:** [November 10, 2020, 5:03pm UTC](https://discourse.julialang.org/t/juliagpu-ci-moving-to-buildkite/49925 "2020-11-10T17:03:40Z")

</div>

Hi all, Because of GitLab limitations (no CI for external PRs, needs a repository mirror that can lose its sync, no real Julia support, only reuse of code through include, etc), Julia’s community GPU CI is moving to Bui…

---

## [Simplex solver](https://discourse.julialang.org/t/simplex-solver/49827)

<div class="topic-metadata">

**Author:** [@fusion809](https://discourse.julialang.org/u/fusion809)\
**Replies:** 6\
**Last updated:** [November 10, 2020, 11:38am UTC](https://discourse.julialang.org/t/simplex-solver/49827 "2020-11-10T11:38:12Z")

</div>

I have just completed an operations research subject in which I was taught the simplex method and a foundation programming subject in which I was taught JavaScript/HTML. During these subjects, I wrote this webpage (sourc…

---

## [VegaLite.jl: How to pass in a DataFrame and apply data parameters](https://discourse.julialang.org/t/vegalite-jl-how-to-pass-in-a-dataframe-and-apply-data-parameters/49901)

<div class="topic-metadata">

**Author:** [@venaptor](https://discourse.julialang.org/u/venaptor)\
**Replies:** 0\
**Last updated:** [November 10, 2020, 9:30am UTC](https://discourse.julialang.org/t/vegalite-jl-how-to-pass-in-a-dataframe-and-apply-data-parameters/49901 "2020-11-10T09:30:01Z")

</div>

When I pipe a DataFrame into @vlplot I’m not able to call the additional configuration parameters as the data isn’t inline. Below is what I want to achieve, but using an external DataFrame as the values: data = { …

---

## [Reading a non-uniform CSV file](https://discourse.julialang.org/t/reading-a-non-uniform-csv-file/49886)

<div class="topic-metadata">

**Author:** [@ash](https://discourse.julialang.org/u/ash)\
**Replies:** 1\
**Last updated:** [November 10, 2020, 8:40am UTC](https://discourse.julialang.org/t/reading-a-non-uniform-csv-file/49886 "2020-11-10T08:40:48Z")

</div>

I am using CSV.jl to read a file of this format: # 60 lines of completely random unformatted crap here 1 1 Te 5S 1 0 0.5 -0.5 1 1 0.0000000000 1 2 0.0024000000 …

---

## [Least Square Means or Adjusted Means](https://discourse.julialang.org/t/least-square-means-or-adjusted-means/49707)

<div class="topic-metadata">

**Author:** [@younghan-lee](https://discourse.julialang.org/u/younghan-lee)\
**Replies:** 7\
**Last updated:** [November 10, 2020, 8:22am UTC](https://discourse.julialang.org/t/least-square-means-or-adjusted-means/49707 "2020-11-10T08:22:41Z")

</div>

Hello, I am trying to get least square means or adjusted means in Julia from my dataset. I’ve been using ‘emmeans’ in R or ‘lsmean’ in SAS, equivalently. Would there be any Julia package or way to do it in Julia? Tha…

---

## [AnSchorfheide() example model in DSGE.jl](https://discourse.julialang.org/t/anschorfheide-example-model-in-dsge-jl/49872)

<div class="topic-metadata">

**Author:** [@caiodantas](https://discourse.julialang.org/u/caiodantas)\
**Replies:** 1\
**Last updated:** [November 10, 2020, 2:52am UTC](https://discourse.julialang.org/t/anschorfheide-example-model-in-dsge-jl/49872 "2020-11-10T02:52:22Z")

</div>

I am trying to estimate the AnSchorfheide() example model in DSGE.jl, but after the Metropolis-Hastings algorithm is executed I get the message: ERROR: LoadError: UndefVarError: load\_draws not defined Stacktrace: \[1\] m…

---

## [Condition for particular index in array to be maximum](https://discourse.julialang.org/t/condition-for-particular-index-in-array-to-be-maximum/49846)

<div class="topic-metadata">

**Author:** [@shashankchahar](https://discourse.julialang.org/u/shashankchahar)\
**Replies:** 2\
**Last updated:** [November 9, 2020, 10:28pm UTC](https://discourse.julialang.org/t/condition-for-particular-index-in-array-to-be-maximum/49846 "2020-11-09T22:28:19Z")

</div>

Hi, I am new to Julia and trying to solve a fitting problem. I have a transition matrix that I am trying to fit. I have got some results but they are non-intutive as the probability of being in state i,i should be the g…

---

## [Integrating ODE system over gridded data](https://discourse.julialang.org/t/integrating-ode-system-over-gridded-data/49853)

<div class="topic-metadata">

**Author:** [@archermarx](https://discourse.julialang.org/u/archermarx)\
**Replies:** 1\
**Last updated:** [November 9, 2020, 8:32pm UTC](https://discourse.julialang.org/t/integrating-ode-system-over-gridded-data/49853 "2020-11-09T20:32:24Z")

</div>

Hi all, I’m trying to use the julia DifferentialEquations package to integrate an ODE system over gridded data. The system is something like the following: \\frac{dU\_1}{dx} = f(\\underline{U}, \\vec{\\underline{Y}}, \\under…

---

## [Multithreading unstable with JuMP](https://discourse.julialang.org/t/multithreading-unstable-with-jump/49494)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 15\
**Last updated:** [November 9, 2020, 6:18pm UTC](https://discourse.julialang.org/t/multithreading-unstable-with-jump/49494 "2020-11-09T18:18:53Z")

</div>

Hi, I am trying to use multithreading to make a loop parallel. That loop makes a call to a function to build the model and then optimise it. So individual iterations are independent, except that results are stored in arr…

---

## [Array variable - matrix multplication in JuMP](https://discourse.julialang.org/t/array-variable-matrix-multplication-in-jump/49801)

<div class="topic-metadata">

**Author:** [@shashankchahar](https://discourse.julialang.org/u/shashankchahar)\
**Replies:** 2\
**Last updated:** [November 9, 2020, 1:12pm UTC](https://discourse.julialang.org/t/array-variable-matrix-multplication-in-jump/49801 "2020-11-09T13:12:30Z")

</div>

Hello, I am new to Julia and trying to convert one of the tasks that I used to do in Excel into Julia. I need to find a matrix X. Matrix X represents discrete Markov model transition probabilities with the final column …

---

## [Simulating a stopping time in SDE without using a fixed time span?](https://discourse.julialang.org/t/simulating-a-stopping-time-in-sde-without-using-a-fixed-time-span/45608)

<div class="topic-metadata">

**Author:** [@tzxiong](https://discourse.julialang.org/u/tzxiong)\
**Replies:** 6\
**Last updated:** [November 9, 2020, 9:27am UTC](https://discourse.julialang.org/t/simulating-a-stopping-time-in-sde-without-using-a-fixed-time-span/45608 "2020-11-09T09:27:44Z")

</div>

Hi everyone, I am trying to simulate a stochastic process on \[0,1\] that will hit the boundary with probability 1 in a finite amount of time. The package I am using is the SDE solver in DifferentialEquation.jl. However, …

---

## [How do I reset a variable value in a loop?](https://discourse.julialang.org/t/how-do-i-reset-a-variable-value-in-a-loop/49821)

<div class="topic-metadata">

**Author:** [@carlos](https://discourse.julialang.org/u/carlos)\
**Replies:** 2\
**Last updated:** [November 9, 2020, 9:19am UTC](https://discourse.julialang.org/t/how-do-i-reset-a-variable-value-in-a-loop/49821 "2020-11-09T09:19:47Z")

</div>

Let’s say I have a model like this: using JuMP using CPLEX model = Model(CPLEX.Optimizer) for k = 1:3 @variables(model, begin sigma x\[1:3\]\>=0 end) @constraints(model,begin sigma == sum(x\[i\]…

---

## [Converting from 24-bit image as byte array to RGB](https://discourse.julialang.org/t/converting-from-24-bit-image-as-byte-array-to-rgb/49806)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 3\
**Last updated:** [November 9, 2020, 8:45am UTC](https://discourse.julialang.org/t/converting-from-24-bit-image-as-byte-array-to-rgb/49806 "2020-11-09T08:45:17Z")

</div>

I am working on Data-exchange Julia-LabView - #13 by Eben60 . Now I’m trying to send image data to Julia. I get image now as 3xMxN array of UInt8. How to convert it to RGB? The following works, but it must be possible to…

---

## [CUDA/Flux installation error ubuntu 20, cuda toolkit 11, julia 1.5.2](https://discourse.julialang.org/t/cuda-flux-installation-error-ubuntu-20-cuda-toolkit-11-julia-1-5-2/49812)

<div class="topic-metadata">

**Author:** [@Neurovium](https://discourse.julialang.org/u/Neurovium)\
**Replies:** 4\
**Last updated:** [November 9, 2020, 1:54am UTC](https://discourse.julialang.org/t/cuda-flux-installation-error-ubuntu-20-cuda-toolkit-11-julia-1-5-2/49812 "2020-11-09T01:54:35Z")

</div>

Hi I have updated ubuntu t0 20.04, julia to 1.5.2 and cuda toolkit to 111, and I have trouble with both CUDA and Flux. They both get installed but do not pass test or compile. I removed one tried the other, changed the…

---

## [Reading mps file with MathProgBase](https://discourse.julialang.org/t/reading-mps-file-with-mathprogbase/49776)

<div class="topic-metadata">

**Author:** [@Pierre-Louis\_Poirion](https://discourse.julialang.org/u/Pierre-Louis_Poirion)\
**Replies:** 3\
**Last updated:** [November 8, 2020, 8:14pm UTC](https://discourse.julialang.org/t/reading-mps-file-with-mathprogbase/49776 "2020-11-08T20:14:01Z")

</div>

Hi, I am trying to read a mps file using the following code: using JuMP using MathProgBase using Gurobi … function readLP(s) m\_internal = MathProgBase.LinearQuadraticModel(GurobiSolver()) MathProgBase.loadproblem…

---

## [Julia 1.5.2 Distributed seeking workaround](https://discourse.julialang.org/t/julia-1-5-2-distributed-seeking-workaround/49757)

<div class="topic-metadata">

**Author:** [@threadedblue](https://discourse.julialang.org/u/threadedblue)\
**Replies:** 2\
**Last updated:** [November 8, 2020, 2:57pm UTC](https://discourse.julialang.org/t/julia-1-5-2-distributed-seeking-workaround/49757 "2020-11-08T14:57:25Z")

</div>

On macOS Julia 1.5.2. I am trying to run addprocs where the remote machine is linux. I get the following error: sh: 1: cd: can’t cd to /Users/ Apparently, something on the remote is trying to cd to the same path as my…

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

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