# Specific Domains

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

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

**Page:** 429

---

## [Resetting TimeLimit of Gurobi Optimizer](https://discourse.julialang.org/t/resetting-timelimit-of-gurobi-optimizer/26627)

<div class="topic-metadata">

**Author:** [@TheLoooser](https://discourse.julialang.org/u/TheLoooser)\
**Replies:** 4\
**Last updated:** [August 12, 2020, 11:23am UTC](https://discourse.julialang.org/t/resetting-timelimit-of-gurobi-optimizer/26627 "2020-08-12T11:23:06Z")

</div>

I am currently using JuMP with the Gurobi Solver to optimise a tournament schedule. I use a local search heuristic to try and solve each round in a given time limit after having found a first feasible solution. The probl…

---

## [Flux in Julia 1.5](https://discourse.julialang.org/t/flux-in-julia-1-5/44428)

<div class="topic-metadata">

**Author:** [@Ruan\_Stander](https://discourse.julialang.org/u/Ruan_Stander)\
**Replies:** 4\
**Last updated:** [August 12, 2020, 10:01am UTC](https://discourse.julialang.org/t/flux-in-julia-1-5/44428 "2020-08-12T10:01:54Z")

</div>

downloaded Julia 1.5 added Flux first time using Flux gives this error Any advice o how to get Flux going on Julia 1.5? julia\> using Flux \[ Info: Precompiling Flux \[587475ba-b771-5e3f-ad9e-33799f191a9c\] Downloading…

---

## [JuMP constraints independent of a particular model](https://discourse.julialang.org/t/jump-constraints-independent-of-a-particular-model/38314)

<div class="topic-metadata">

**Author:** [@Tomas\_Uribe](https://discourse.julialang.org/u/Tomas_Uribe)\
**Replies:** 9\
**Last updated:** [August 12, 2020, 9:46am UTC](https://discourse.julialang.org/t/jump-constraints-independent-of-a-particular-model/38314 "2020-08-12T09:46:19Z")

</div>

Is there a way to represent a JuMP constraint independently of a specific model (even if it is purely syntactic)? The macros for creating variables and constraints require a model, of course… What would be a convenient m…

---

## [Error using Turing + ReverseDiff with PyJulia](https://discourse.julialang.org/t/error-using-turing-reversediff-with-pyjulia/44791)

<div class="topic-metadata">

**Author:** [@vyasakanksha](https://discourse.julialang.org/u/vyasakanksha)\
**Replies:** 0\
**Last updated:** [August 12, 2020, 8:55am UTC](https://discourse.julialang.org/t/error-using-turing-reversediff-with-pyjulia/44791 "2020-08-12T08:55:41Z")

</div>

I am getting an error when I use Turing and Reverse Diff with Pyjulia, shown below. Does anyone have any experience getting this to work? Also created a MWE here: https://gist.github.com/vyasakanksha/500d611a28e02c18a31…

---

## [Stochastic DDEs?](https://discourse.julialang.org/t/stochastic-ddes/24338)

<div class="topic-metadata">

**Author:** [@maedoc](https://discourse.julialang.org/u/maedoc)\
**Replies:** 9\
**Last updated:** [August 12, 2020, 7:12am UTC](https://discourse.julialang.org/t/stochastic-ddes/24338 "2020-08-12T07:12:04Z")

</div>

hi I’m new to Julia, but looking to port a neural mass network model with both delays & (linear additive) stochastic forcing (which I’ve solved elsewhere by adding delays by hand to typical SDE methods). Looking throug…

---

## [Does Query.jl have a good way to implement mutations that depend on each other?](https://discourse.julialang.org/t/does-query-jl-have-a-good-way-to-implement-mutations-that-depend-on-each-other/44643)

<div class="topic-metadata">

**Author:** [@ilyagr](https://discourse.julialang.org/u/ilyagr)\
**Replies:** 3\
**Last updated:** [August 11, 2020, 8:26pm UTC](https://discourse.julialang.org/t/does-query-jl-have-a-good-way-to-implement-mutations-that-depend-on-each-other/44643 "2020-08-11T20:26:16Z")

</div>

The following doesn’t work because latter definitions can’t depend on previous ones: DataFrame(bad=\[1,2\], good=\[0, 3\]) |\> @map(( count = \_.bad + \_.good, bad\_rate = \_.bad/\_.count, bad\_pct =round(\_.bad\_rate\*100;d…

---

## [Static array Julia for Optim.jl](https://discourse.julialang.org/t/static-array-julia-for-optim-jl/44711)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 3\
**Last updated:** [August 11, 2020, 1:07am UTC](https://discourse.julialang.org/t/static-array-julia-for-optim-jl/44711 "2020-08-11T01:07:02Z")

</div>

Hello, I am using Optim.jl for the nonlinear optimization of a set of coefficients (dim \<30). Can I expect some speed-up if I use StaticArrays to compute the gradients, store the coefficients?

---

## [DifferentialEquations; how to simulate limit stops](https://discourse.julialang.org/t/differentialequations-how-to-simulate-limit-stops/44376)

<div class="topic-metadata">

**Author:** [@klaff](https://discourse.julialang.org/u/klaff)\
**Replies:** 10\
**Last updated:** [August 10, 2020, 10:22pm UTC](https://discourse.julialang.org/t/differentialequations-how-to-simulate-limit-stops/44376 "2020-08-10T22:22:17Z")

</div>

I’m trying to simulate a spring mass system in which the mass is constrained by limits stops or walls. There’s a driving force which, if it pushes the mass to one wall or the other, essentially halts the system until th…

---

## [Matrix Formatting in JSON.print()](https://discourse.julialang.org/t/matrix-formatting-in-json-print/44714)

<div class="topic-metadata">

**Author:** [@bdoolittle](https://discourse.julialang.org/u/bdoolittle)\
**Replies:** 0\
**Last updated:** [August 10, 2020, 10:15pm UTC](https://discourse.julialang.org/t/matrix-formatting-in-json-print/44714 "2020-08-10T22:15:15Z")

</div>

I would like to print a JSON structure which includes nicely formed matrices. The goal is for data to be human-readable. Ideally, the dictionary Dict("matrix" =\> \[1 2 3;4 5 6;7 8 9\]) would be printed like, { "mat…

---

## [Experience with Baron](https://discourse.julialang.org/t/experience-with-baron/44707)

<div class="topic-metadata">

**Author:** [@mayar](https://discourse.julialang.org/u/mayar)\
**Replies:** 0\
**Last updated:** [August 10, 2020, 8:38pm UTC](https://discourse.julialang.org/t/experience-with-baron/44707 "2020-08-10T20:38:30Z")

</div>

“Baron from the optimization firm” Hello, Since this is a commercial solver that I am considering these days to buy,I would like to know more on the experience with Baron from the optimization firm, especially with jum…

---

## [Passing too long tuples into CUDA kernel causes an error](https://discourse.julialang.org/t/passing-too-long-tuples-into-cuda-kernel-causes-an-error/44239)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 3\
**Last updated:** [August 10, 2020, 3:02pm UTC](https://discourse.julialang.org/t/passing-too-long-tuples-into-cuda-kernel-causes-an-error/44239 "2020-08-10T15:02:55Z")

</div>

Consider the following code where I create a tuple of structures and pass it into the GPU kernel: import CUDA struct Foo{T} a :: T b :: T end function func(u, foos) N = length(u) function get\_config…

---

## [Run a julia application at large scale (on thousands of nodes)](https://discourse.julialang.org/t/run-a-julia-application-at-large-scale-on-thousands-of-nodes/23873)

<div class="topic-metadata">

**Author:** [@samo](https://discourse.julialang.org/u/samo)\
**Replies:** 8\
**Last updated:** [August 10, 2020, 2:52pm UTC](https://discourse.julialang.org/t/run-a-julia-application-at-large-scale-on-thousands-of-nodes/23873 "2020-08-10T14:52:52Z")

</div>

Overall context I am preparing a weak scaling test of a distributed Julia application. The test will use up to a couple of thousands of compute nodes and will need to run multiple times for each configuration (to obtain…

---

## [JUMP - store solution](https://discourse.julialang.org/t/jump-store-solution/44663)

<div class="topic-metadata">

**Author:** [@Tmart](https://discourse.julialang.org/u/Tmart)\
**Replies:** 1\
**Last updated:** [August 10, 2020, 10:06am UTC](https://discourse.julialang.org/t/jump-store-solution/44663 "2020-08-10T10:06:23Z")

</div>

Hello, I was wondering if there was a way to store the solution of an optimization problem solved using JUMP. Thank you in advance, KR

---

## [Going beyond MNIST with Flux/Zygote and CUDA and Graph Neural Networks](https://discourse.julialang.org/t/going-beyond-mnist-with-flux-zygote-and-cuda-and-graph-neural-networks/44593)

<div class="topic-metadata">

**Author:** [@jamblejoe](https://discourse.julialang.org/u/jamblejoe)\
**Replies:** 4\
**Last updated:** [August 9, 2020, 8:18pm UTC](https://discourse.julialang.org/t/going-beyond-mnist-with-flux-zygote-and-cuda-and-graph-neural-networks/44593 "2020-08-09T20:18:44Z")

</div>

Hi, I normally try to be very specific in titles, but as good practice in some ML communities I am catchy this time. I want to learn more about how ML works in Julia and I worked through some of the examples in Flux’s …

---

## [Loading a png file inside a package](https://discourse.julialang.org/t/loading-a-png-file-inside-a-package/44632)

<div class="topic-metadata">

**Author:** [@simonschoelly](https://discourse.julialang.org/u/simonschoelly)\
**Replies:** 1\
**Last updated:** [August 9, 2020, 5:53pm UTC](https://discourse.julialang.org/t/loading-a-png-file-inside-a-package/44632 "2020-08-09T17:53:45Z")

</div>

In one of my packages I want to load a png file using FileIO. When I try to do that, I get an error message: t.qpa.xcb: QXcbConnection: XCB error: 5 (BadAtom), sequence: 498, resource id: 0, major code: 20 (GetProperty)…

---

## [ModelingToolkit.jl and differential equations with step/pulse inputs](https://discourse.julialang.org/t/modelingtoolkit-jl-and-differential-equations-with-step-pulse-inputs/40272)

<div class="topic-metadata">

**Author:** [@DR59](https://discourse.julialang.org/u/DR59)\
**Replies:** 17\
**Last updated:** [August 9, 2020, 4:42pm UTC](https://discourse.julialang.org/t/modelingtoolkit-jl-and-differential-equations-with-step-pulse-inputs/40272 "2020-08-09T16:42:52Z")

</div>

In lots of differential equations applications, we want to solve a ‘forced’ DE whose evolution depends upon some input u(t). For instance we can consider a harmonic oscillator with a forcing term. The equation below make…

---

## [Pointer to CuArray as a parameter for DifferentialEquations right-hand-side function](https://discourse.julialang.org/t/pointer-to-cuarray-as-a-parameter-for-differentialequations-right-hand-side-function/44125)

<div class="topic-metadata">

**Author:** [@fedoroff](https://discourse.julialang.org/u/fedoroff)\
**Replies:** 9\
**Last updated:** [August 9, 2020, 9:58am UTC](https://discourse.julialang.org/t/pointer-to-cuarray-as-a-parameter-for-differentialequations-right-hand-side-function/44125 "2020-08-09T09:58:31Z")

</div>

I would like to pass a pointer to CuArray (or one of its sections) as a parameter for DifferentialEquations right-hand-side function which is defined as a GPU kernel function. Why do I need it? I have a differential equ…

---

## [Get variable's value in JuMP](https://discourse.julialang.org/t/get-variables-value-in-jump/44596)

<div class="topic-metadata">

**Author:** [@Rasoul](https://discourse.julialang.org/u/Rasoul)\
**Replies:** 2\
**Last updated:** [August 9, 2020, 5:41am UTC](https://discourse.julialang.org/t/get-variables-value-in-jump/44596 "2020-08-09T05:41:19Z")

</div>

Hi All, I have solved an optimization problem using Julia (1.3.1) and JuMP (0.21.3). I can print the model and see the constraints. I also can get the objective function’s value using (objective\_value(model)) . However,…

---

## [How can I plot violin plots at specific x-axis labels if my data is not in a dataframe?](https://discourse.julialang.org/t/how-can-i-plot-violin-plots-at-specific-x-axis-labels-if-my-data-is-not-in-a-dataframe/44544)

<div class="topic-metadata">

**Author:** [@pjentsch0](https://discourse.julialang.org/u/pjentsch0)\
**Replies:** 4\
**Last updated:** [August 8, 2020, 5:04pm UTC](https://discourse.julialang.org/t/how-can-i-plot-violin-plots-at-specific-x-axis-labels-if-my-data-is-not-in-a-dataframe/44544 "2020-08-08T17:04:55Z")

</div>

For instance, the following code makes this figure: julia\> d = Normal() julia\> a = rand(d,10,1000) julia\> violin(collect(eachrow(a)),legend = false) If I have a vector of 10 x-axis points, say x\_pts = 1:10:100, then t…

---

## [Specifying loss functions in Flux.jl](https://discourse.julialang.org/t/specifying-loss-functions-in-flux-jl/44586)

<div class="topic-metadata">

**Author:** [@s-baumann](https://discourse.julialang.org/u/s-baumann)\
**Replies:** 8\
**Last updated:** [August 8, 2020, 10:03pm UTC](https://discourse.julialang.org/t/specifying-loss-functions-in-flux-jl/44586 "2020-08-08T22:03:04Z")

</div>

I am trying to write loss functions for use in a simple Neural Network training. As I understand from the documentation loss functions should have the signature loss(ŷ, y). So to my mind something like loss(ŷ, y) = m…

---

## [Implementing discrete factor products](https://discourse.julialang.org/t/implementing-discrete-factor-products/44564)

<div class="topic-metadata">

**Author:** [@mroavi](https://discourse.julialang.org/u/mroavi)\
**Replies:** 0\
**Last updated:** [August 8, 2020, 11:47am UTC](https://discourse.julialang.org/t/implementing-discrete-factor-products/44564 "2020-08-08T11:47:29Z")

</div>

I have an algorithm that involves computations over multidimensional arrays. I came across this blog post by Tim Holy: Multidimensional algorithms and iteration). I’m wondering whether the CartesianIndices data structu…

---

## [Geting the image pixel using ImageView](https://discourse.julialang.org/t/geting-the-image-pixel-using-imageview/44555)

<div class="topic-metadata">

**Author:** [@kobied](https://discourse.julialang.org/u/kobied)\
**Replies:** 4\
**Last updated:** [August 8, 2020, 6:59pm UTC](https://discourse.julialang.org/t/geting-the-image-pixel-using-imageview/44555 "2020-08-08T18:59:50Z")

</div>

Hello, I need to create a gui which has an image and some controllers. I’m using Gtk and ImageView, my quastion is, how can i get the image pixle that the mouse courser is clicked on? Thanks in ahead

---

## [Manipulating HTML DOM using Julia](https://discourse.julialang.org/t/manipulating-html-dom-using-julia/31765)

<div class="topic-metadata">

**Author:** [@Rajesh\_Talluri](https://discourse.julialang.org/u/Rajesh_Talluri)\
**Replies:** 3\
**Last updated:** [August 8, 2020, 5:47pm UTC](https://discourse.julialang.org/t/manipulating-html-dom-using-julia/31765 "2020-08-08T17:47:06Z")

</div>

Hi, I am trying to manipulate the DOM elements(e.g. adding a parent node and changing hierarchy of some nodes) of a HTML document. I could parse the HTML using Gumbo.jl. However, I could not manipulate the DOM using that…

---

## [How to pass auxiliary variables and constraints as "Defined variables" of AMPL in JuMP?](https://discourse.julialang.org/t/how-to-pass-auxiliary-variables-and-constraints-as-defined-variables-of-ampl-in-jump/44547)

<div class="topic-metadata">

**Author:** [@SOtani](https://discourse.julialang.org/u/SOtani)\
**Replies:** 2\
**Last updated:** [August 8, 2020, 4:42pm UTC](https://discourse.julialang.org/t/how-to-pass-auxiliary-variables-and-constraints-as-defined-variables-of-ampl-in-jump/44547 "2020-08-08T16:42:19Z")

</div>

I am considering how to pass auxiliary variables as “Defined variables” of AMPL in JuMP. Sample code model = JuMP.Model(optimizer\_with\_attributes(Ipopt.Optimizer)) @variable(model, x) @variable(model, y) @variable(mode…

---

## [License error for JuMP](https://discourse.julialang.org/t/license-error-for-jump/44576)

<div class="topic-metadata">

**Author:** [@Rasoul](https://discourse.julialang.org/u/Rasoul)\
**Replies:** 1\
**Last updated:** [August 8, 2020, 4:34pm UTC](https://discourse.julialang.org/t/license-error-for-jump/44576 "2020-08-08T16:34:20Z")

</div>

Hi All, I have installed JuMP (“0.18.5”) and Gurobi (“0.6.0”). I have put a valid license for Gurobi in its corresponding folder. However, I get the following error when I want to solve my optimization problem. Can you …

---

## [Issues with AD of Hypergeometric function in narrow parameter band](https://discourse.julialang.org/t/issues-with-ad-of-hypergeometric-function-in-narrow-parameter-band/44523)

<div class="topic-metadata">

**Author:** [@cgeoga](https://discourse.julialang.org/u/cgeoga)\
**Replies:** 6\
**Last updated:** [August 8, 2020, 1:38pm UTC](https://discourse.julialang.org/t/issues-with-ad-of-hypergeometric-function-in-narrow-parameter-band/44523 "2020-08-08T13:38:59Z")

</div>

Hello— Using AD with the Gauss 2F1 function has come up in some work I am doing. I am incredibly impressed by the performance and functionality of HypergeometricFunctions.jl, but I’m having a strange issue where only fo…

---

## [Dimensions of minibatch](https://discourse.julialang.org/t/dimensions-of-minibatch/44316)

<div class="topic-metadata">

**Author:** [@raoulg](https://discourse.julialang.org/u/raoulg)\
**Replies:** 3\
**Last updated:** [August 7, 2020, 7:41pm UTC](https://discourse.julialang.org/t/dimensions-of-minibatch/44316 "2020-08-07T19:41:40Z")

</div>

I’m sort of struggling with the same issue as here , but the answer isn’t really clear to me. What I’m trying to do is to make a basic timeseries forecasting with a RNN architecture with minibatches. I got the minibatc…

---

## [JuMPeR installation problem with JuliaPro 1.0.5-2](https://discourse.julialang.org/t/jumper-installation-problem-with-juliapro-1-0-5-2/44508)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 1\
**Last updated:** [August 7, 2020, 6:25pm UTC](https://discourse.julialang.org/t/jumper-installation-problem-with-juliapro-1-0-5-2/44508 "2020-08-07T18:25:28Z")

</div>

This is the error message that appears to me when I try to install JuMPer julia\> Pkg.add("JuMPeR") Updating registry at \`C:\\Users\\raque\\.juliapro\\JuliaPro\_v1.0.5-2\\registries\\JuliaPro\` Updating git-repo \`https://pkg…

---

## [Custom Likelihood Distribution/increment likelihood](https://discourse.julialang.org/t/custom-likelihood-distribution-increment-likelihood/44292)

<div class="topic-metadata">

**Author:** [@jdselwyn](https://discourse.julialang.org/u/jdselwyn)\
**Replies:** 7\
**Last updated:** [August 7, 2020, 3:59pm UTC](https://discourse.julialang.org/t/custom-likelihood-distribution-increment-likelihood/44292 "2020-08-07T15:59:08Z")

</div>

Hi, I’m fairly new to Julia so my apologies if this is an obvious question. I’m trying to create a model to sample from the below log-likelihood function. The C matrix is a constant and Δ follows a Dirichlet distribution…

---

## [Best Practices for Parallel implementation of Gibbs Sampler algorithm](https://discourse.julialang.org/t/best-practices-for-parallel-implementation-of-gibbs-sampler-algorithm/44503)

<div class="topic-metadata">

**Author:** [@deburgess](https://discourse.julialang.org/u/deburgess)\
**Replies:** 0\
**Last updated:** [August 7, 2020, 2:53pm UTC](https://discourse.julialang.org/t/best-practices-for-parallel-implementation-of-gibbs-sampler-algorithm/44503 "2020-08-07T14:53:05Z")

</div>

Thanks in advance for your comments and advice. Would someone comment on how to improve my coding? In particular: did I use @sync properly? Did I use Distributed arrays efficiently? How does random number generation w…

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

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