# Specific Domains

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

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

**Page:** 266

---

## [Specifying model with threshold / ifelse likelihood in Turing / Soss / Tilde](https://discourse.julialang.org/t/specifying-model-with-threshold-ifelse-likelihood-in-turing-soss-tilde/83473)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 5\
**Last updated:** [July 17, 2022, 8:31pm UTC](https://discourse.julialang.org/t/specifying-model-with-threshold-ifelse-likelihood-in-turing-soss-tilde/83473 "2022-07-17T20:31:20Z")

</div>

Hi everyone, I have a model which is a simplified version of the one presented in Mulder & Hoff (2021) and looks something like this: \\begin{align} \\mathbf{z}\_{i} &\\sim \\textrm{MvNormal}(\\boldsymbol{\\theta}\_{i},\\math…

---

## [Vectorized gradient using ForwardDiff](https://discourse.julialang.org/t/vectorized-gradient-using-forwarddiff/84315)

<div class="topic-metadata">

**Author:** [@Vik1](https://discourse.julialang.org/u/Vik1)\
**Replies:** 5\
**Last updated:** [July 17, 2022, 5:45pm UTC](https://discourse.julialang.org/t/vectorized-gradient-using-forwarddiff/84315 "2022-07-17T17:45:22Z")

</div>

Hi and greetings :slight\_smile: I am trying to compute derivatives (later on up to the 3rd or 4th degree) of vectorized functions using ForwardDiff. The functions are generally in the following form: using BenchmarkToo…

---

## [Splitting polygons into narrow and wide parts](https://discourse.julialang.org/t/splitting-polygons-into-narrow-and-wide-parts/84307)

<div class="topic-metadata">

**Author:** [@Wikunia](https://discourse.julialang.org/u/Wikunia)\
**Replies:** 3\
**Last updated:** [July 16, 2022, 10:59pm UTC](https://discourse.julialang.org/t/splitting-polygons-into-narrow-and-wide-parts/84307 "2022-07-16T22:59:59Z")

</div>

Hey everyone, I’m interested in a general polygon splitting algorithm that is able to identify very narrow regions and can split up narrow from wide regions. I found this via google: and was wondering whether this is…

---

## [Dynare - "LoadError: InexactError: Int64(NaN)" for the simplest model](https://discourse.julialang.org/t/dynare-loaderror-inexacterror-int64-nan-for-the-simplest-model/84284)

<div class="topic-metadata">

**Author:** [@geekbear](https://discourse.julialang.org/u/geekbear)\
**Replies:** 7\
**Last updated:** [July 16, 2022, 8:18pm UTC](https://discourse.julialang.org/t/dynare-loaderror-inexacterror-int64-nan-for-the-simplest-model/84284 "2022-07-16T20:18:55Z")

</div>

Hi! I was computing the transition path in the perfect foresight Solow growth model from a given initial capital stock, and keep getting “LoadError: InexactError: Int64(NaN)” when I tried to run the .mod file. I can’t fi…

---

## [Simulation with Mamba.jl or something else](https://discourse.julialang.org/t/simulation-with-mamba-jl-or-something-else/84331)

<div class="topic-metadata">

**Author:** [@bwanab](https://discourse.julialang.org/u/bwanab)\
**Replies:** 0\
**Last updated:** [July 16, 2022, 7:33pm UTC](https://discourse.julialang.org/t/simulation-with-mamba-jl-or-something-else/84331 "2022-07-16T19:33:35Z")

</div>

As background, I’m going through Allen Downey’s ThinkBayes 2nd edition. My double pedagogical approach is that I’m translating all the examples and exercises to equivalent Julia code from the original python. Through cha…

---

## [Hessian matrix of a neural network vetor output](https://discourse.julialang.org/t/hessian-matrix-of-a-neural-network-vetor-output/83517)

<div class="topic-metadata">

**Author:** [@mauerflitzer](https://discourse.julialang.org/u/mauerflitzer)\
**Replies:** 3\
**Last updated:** [July 16, 2022, 1:28pm UTC](https://discourse.julialang.org/t/hessian-matrix-of-a-neural-network-vetor-output/83517 "2022-07-16T13:28:51Z")

</div>

Hello, so I have a physics informed neural network which has the same output shape as input \[batchsize x 64\]. With this output vector I have to calculate the first and second order derrivatives, which I tried to do with…

---

## [Performance LinearOperators.jl](https://discourse.julialang.org/t/performance-linearoperators-jl/84271)

<div class="topic-metadata">

**Author:** [@Dario-Rosa85](https://discourse.julialang.org/u/Dario-Rosa85)\
**Replies:** 2\
**Last updated:** [July 16, 2022, 11:56am UTC](https://discourse.julialang.org/t/performance-linearoperators-jl/84271 "2022-07-16T11:56:49Z")

</div>

I have a question on the use of the package LinearOperators.jl. I am writing a code where the performance speed is crucial. The code is based on computing many-times the action of a linear operator over a given vector. N…

---

## [ModelingToolkitStandardLibrary and Optimization](https://discourse.julialang.org/t/modelingtoolkitstandardlibrary-and-optimization/84146)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 6\
**Last updated:** [July 16, 2022, 5:15am UTC](https://discourse.julialang.org/t/modelingtoolkitstandardlibrary-and-optimization/84146 "2022-07-16T05:15:06Z")

</div>

Hi All, I want to optimize the Model created based on ModelingToolkitStandardLibrary. So I have a small RC-Model copied from the official documentation to ModelingToolkitStandardLibrary. module Grid export get\_model …

---

## [Getting the upper and lower bounds in MILP - JuMP](https://discourse.julialang.org/t/getting-the-upper-and-lower-bounds-in-milp-jump/84293)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 1\
**Last updated:** [July 16, 2022, 12:13am UTC](https://discourse.julialang.org/t/getting-the-upper-and-lower-bounds-in-milp-jump/84293 "2022-07-16T00:13:03Z")

</div>

Hello everyone, When I use JuMP v0.21.7 with the Gurobi solver and optimize a MILP, how do I get, after optimization: The value of the first upper bound (of the first incumbent solution). The value of the first lower …

---

## [Solving Boundary Value Differential Equation Problems for Economics](https://discourse.julialang.org/t/solving-boundary-value-differential-equation-problems-for-economics/72871)

<div class="topic-metadata">

**Author:** [@MainBatDealer](https://discourse.julialang.org/u/MainBatDealer)\
**Replies:** 18\
**Last updated:** [July 15, 2022, 10:44pm UTC](https://discourse.julialang.org/t/solving-boundary-value-differential-equation-problems-for-economics/72871 "2022-07-15T22:44:59Z")

</div>

Hi all, I am interested in using the BoundaryValueDiffEq part of DifferentialEquations to solve economic growth problems in continuous time. The problem is, I can’t get a relatively simple example to work! The example …

---

## [Maximize Min Objective](https://discourse.julialang.org/t/maximize-min-objective/83431)

<div class="topic-metadata">

**Author:** [@sophiepavia](https://discourse.julialang.org/u/sophiepavia)\
**Replies:** 8\
**Last updated:** [July 14, 2022, 9:00pm UTC](https://discourse.julialang.org/t/maximize-min-objective/83431 "2022-07-14T21:00:14Z")

</div>

I am working on a convex optimization problem in Julia using JuMP and Pajarito. I have three objectives that I will solve for independently. For the third objective how can I maximize the min? @NLobjective(model, Max, …

---

## [Wrapping the API for themoviedb.org](https://discourse.julialang.org/t/wrapping-the-api-for-themoviedb-org/84281)

<div class="topic-metadata">

**Author:** [@dmbates](https://discourse.julialang.org/u/dmbates)\
**Replies:** 0\
**Last updated:** [July 15, 2022, 4:22pm UTC](https://discourse.julialang.org/t/wrapping-the-api-for-themoviedb-org/84281 "2022-07-15T16:22:50Z")

</div>

While looking at the movielens.org ml-25m data set (see ml-25m - Downloading and examining the MovieLens 25m data) I encountered an online movie/tv-show database called themoviedb.org that provides a public API, API Over…

---

## [Outputting all Cycles in an undirected graph using DFS](https://discourse.julialang.org/t/outputting-all-cycles-in-an-undirected-graph-using-dfs/84222)

<div class="topic-metadata">

**Author:** [@Temi-Tory](https://discourse.julialang.org/u/Temi-Tory)\
**Replies:** 6\
**Last updated:** [July 15, 2022, 11:04am UTC](https://discourse.julialang.org/t/outputting-all-cycles-in-an-undirected-graph-using-dfs/84222 "2022-07-15T11:04:38Z")

</div>

Hi Guys, I’m hoping someone can help me figure out why my function is not working as expected. Any help is appreciated. I was going through this geek-for-geek post on how to detect and print cycles in an undircetd gr…

---

## [DatePicker event handler not working](https://discourse.julialang.org/t/datepicker-event-handler-not-working/84257)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [July 15, 2022, 8:35am UTC](https://discourse.julialang.org/t/datepicker-event-handler-not-working/84257 "2022-07-15T08:35:47Z")

</div>

I’m able to perform some action when the button is pressed but not when the daterange changes: using Stipple using StippleUI using StipplePlotly using Random palette = \[ "#e61c4c", "#004976", "#3fa535", …

---

## [How to set ticklabels for an image, within the range of x, and y](https://discourse.julialang.org/t/how-to-set-ticklabels-for-an-image-within-the-range-of-x-and-y/63637)

<div class="topic-metadata">

**Author:** [@empet](https://discourse.julialang.org/u/empet)\
**Replies:** 5\
**Last updated:** [July 15, 2022, 6:31am UTC](https://discourse.julialang.org/t/how-to-set-ticklabels-for-an-image-within-the-range-of-x-and-y/63637 "2022-07-15T06:31:41Z")

</div>

I searched this forum and the web for the Julia equivalent of extent in matplotlib.pyplot.imshow: plt.imshow(M, origin="lower", extent=\[a, b, c, d\]) but I couldn’t find any reference. I need this feature for plotting c…

---

## [New Bayesian Statistics tutorials with Turing](https://discourse.julialang.org/t/new-bayesian-statistics-tutorials-with-turing/60825)

<div class="topic-metadata">

**Author:** [@Storopoli](https://discourse.julialang.org/u/Storopoli)\
**Replies:** 25\
**Last updated:** [July 15, 2022, 5:56am UTC](https://discourse.julialang.org/t/new-bayesian-statistics-tutorials-with-turing/60825 "2022-07-15T05:56:49Z")

</div>

I’ve just made some Bayesian Statistics tutorials using Julia and Turing. The content is fully opensourced in GitHub and has a very permissive Creative Commons License (which means you can copy and alter the crap out it……

---

## [Problem with ImplicitEquation involving the incomplete gamma function](https://discourse.julialang.org/t/problem-with-implicitequation-involving-the-incomplete-gamma-function/84247)

<div class="topic-metadata">

**Author:** [@Dennis-Yang87](https://discourse.julialang.org/u/Dennis-Yang87)\
**Replies:** 2\
**Last updated:** [July 15, 2022, 1:45am UTC](https://discourse.julialang.org/t/problem-with-implicitequation-involving-the-incomplete-gamma-function/84247 "2022-07-15T01:45:38Z")

</div>

Hi everyone, I am new to Julia and trying to plot an implicit function involving incomplete gamma function Q(x, a) with the code below (gamma\_inc returns a two-element tuple and I only need the second element, so the in…

---

## [ANN: JuMP-dev 2022](https://discourse.julialang.org/t/ann-jump-dev-2022/77043)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 3\
**Last updated:** [July 15, 2022, 1:32am UTC](https://discourse.julialang.org/t/ann-jump-dev-2022/77043 "2022-07-15T01:32:11Z")

</div>

Dear all, We are pleased to announce that JuMP-dev 2022 will be co-located with JuliaCon 2022, to be held virtually July 27-29 2022. The purpose of JuMP-dev is to bring together students, researchers, and practitioners…

---

## [How to get the value of an NLconstraint in JuMP](https://discourse.julialang.org/t/how-to-get-the-value-of-an-nlconstraint-in-jump/84248)

<div class="topic-metadata">

**Author:** [@ko56](https://discourse.julialang.org/u/ko56)\
**Replies:** 3\
**Last updated:** [July 15, 2022, 12:52am UTC](https://discourse.julialang.org/t/how-to-get-the-value-of-an-nlconstraint-in-jump/84248 "2022-07-15T00:52:53Z")

</div>

The value(.) function accepts a ConstraintRef argument, so you can use it to print the value of a JuMP @constraint after the optimization is done. But if you have a @NLconstraint, whose type is e.g. NonlinearConstraintRe…

---

## [Zygote and SDE failure: cannot differentiate through Lux NN](https://discourse.julialang.org/t/zygote-and-sde-failure-cannot-differentiate-through-lux-nn/84177)

<div class="topic-metadata">

**Author:** [@evolbio](https://discourse.julialang.org/u/evolbio)\
**Replies:** 5\
**Last updated:** [July 14, 2022, 10:16pm UTC](https://discourse.julialang.org/t/zygote-and-sde-failure-cannot-differentiate-through-lux-nn/84177 "2022-07-14T22:16:08Z")

</div>

I am optimizing the parameters of a differential equation with a Lux.jl neural network (NN) component, using Optimization.jl. The code for the ODE part is below. This works well when there is no stochasticity, ie, an OD…

---

## [Pushforward in Enzyme.jl](https://discourse.julialang.org/t/pushforward-in-enzyme-jl/83921)

<div class="topic-metadata">

**Author:** [@raminammour](https://discourse.julialang.org/u/raminammour)\
**Replies:** 3\
**Last updated:** [July 14, 2022, 4:37pm UTC](https://discourse.julialang.org/t/pushforward-in-enzyme-jl/83921 "2022-07-14T16:37:54Z")

</div>

Hello is there a way to obtain the pushforward of a function using Enzyme.jl? Concretely, given the function foo below, I want the enzyme to produce the function dfoo: #output in d, mutated function foo(d,c) d.=c.^…

---

## [Custom graph typing question (Graphs.jl)](https://discourse.julialang.org/t/custom-graph-typing-question-graphs-jl/84191)

<div class="topic-metadata">

**Author:** [@RobertGregg](https://discourse.julialang.org/u/RobertGregg)\
**Replies:** 2\
**Last updated:** [July 14, 2022, 4:31pm UTC](https://discourse.julialang.org/t/custom-graph-typing-question-graphs-jl/84191 "2022-07-14T16:31:32Z")

</div>

I’ve defined a new graph type which is a subtype of Graphs.AbstractSimpleGraph to represent a grid-like structure: using Graphs mutable struct GridSpace{N, T\<:Integer} \<: Graphs.AbstractSimpleGraph{T} ne::T …

---

## [How to estimate uncertainty in a LinearMixedModel?](https://discourse.julialang.org/t/how-to-estimate-uncertainty-in-a-linearmixedmodel/84124)

<div class="topic-metadata">

**Author:** [@jar1](https://discourse.julialang.org/u/jar1)\
**Replies:** 8\
**Last updated:** [July 14, 2022, 2:14pm UTC](https://discourse.julialang.org/t/how-to-estimate-uncertainty-in-a-linearmixedmodel/84124 "2022-07-14T14:14:37Z")

</div>

In this example, I want to estimate the uncertainty around the beta value for each Cut & Clarity pair. I’m not sure how to interpret the allpars data. Is it producing a single sigma shared across all values of Cut & Clar…

---

## [Create Groupedbar in Statsplot from Dataframe with dates on the x-axis](https://discourse.julialang.org/t/create-groupedbar-in-statsplot-from-dataframe-with-dates-on-the-x-axis/84108)

<div class="topic-metadata">

**Author:** [@Freya\_the\_Goddess](https://discourse.julialang.org/u/Freya_the_Goddess)\
**Replies:** 12\
**Last updated:** [July 14, 2022, 2:09pm UTC](https://discourse.julialang.org/t/create-groupedbar-in-statsplot-from-dataframe-with-dates-on-the-x-axis/84108 "2022-07-14T14:09:04Z")

</div>

Hi all, I want to plot this csv: To become a groupedbar like this: With dates on the x-axis (do I need to change the format in the csv of 01.2015 / 02.2015?) I want to plot an entire column (e.g. Solar) and plo…

---

## [Parameter estimation problem in Turing](https://discourse.julialang.org/t/parameter-estimation-problem-in-turing/84147)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 11\
**Last updated:** [July 14, 2022, 10:16am UTC](https://discourse.julialang.org/t/parameter-estimation-problem-in-turing/84147 "2022-07-14T10:16:35Z")

</div>

Hi, I am new to Turing PPL. I have a random variable X which is Gamma distributed, i.e., X ~Ga(α, β). And the scale β parameter of X is also obeys a Gamma law, namely, β ~ Ga(α0, β0). Then I want to infer the above par…

---

## [Uneven grid layout in Makie.jl](https://discourse.julialang.org/t/uneven-grid-layout-in-makie-jl/84208)

<div class="topic-metadata">

**Author:** [@Kevin\_Kleinbeck](https://discourse.julialang.org/u/Kevin_Kleinbeck)\
**Replies:** 1\
**Last updated:** [July 14, 2022, 7:43am UTC](https://discourse.julialang.org/t/uneven-grid-layout-in-makie-jl/84208 "2022-07-14T07:43:41Z")

</div>

Hello everyone, I try to great a two row figure in Makie, where the first row contains 3 Axis elements and the second row only two and the plot legend. Sadly, I cannot figure out the logic behind Makie’s layout algorit…

---

## [Stability issue with MethodOfLines](https://discourse.julialang.org/t/stability-issue-with-methodoflines/84133)

<div class="topic-metadata">

**Author:** [@marcofrancis](https://discourse.julialang.org/u/marcofrancis)\
**Replies:** 9\
**Last updated:** [July 13, 2022, 6:33pm UTC](https://discourse.julialang.org/t/stability-issue-with-methodoflines/84133 "2022-07-13T18:33:31Z")

</div>

Hi! I’m trying to solve a (I would think) simple PDE with MethodOfLines.jl The PDE in question is: \\partial\_\\tau g(τ,x) = \\frac{1}{2}σ^2\\partial^2\_{x} g(τ,x)+ λ(\\bar{x} - x)\*\\partial\_x g(τ,x) - r\*g(τ,x) g(0,x) = e^{…

---

## [Arrow in Plots.jl and PyPlot backend can't change arrowhead placement](https://discourse.julialang.org/t/arrow-in-plots-jl-and-pyplot-backend-cant-change-arrowhead-placement/45511)

<div class="topic-metadata">

**Author:** [@transarcus](https://discourse.julialang.org/u/transarcus)\
**Replies:** 1\
**Last updated:** [July 13, 2022, 6:19pm UTC](https://discourse.julialang.org/t/arrow-in-plots-jl-and-pyplot-backend-cant-change-arrowhead-placement/45511 "2022-07-13T18:19:42Z")

</div>

Trying to create double headed arrow using pyplot though Plots.jl but arrow(:closed,:both) doesn’t do it. arrow(:closed,:tail) also doesn’t seem to change anything. It works as I would expect with the GR backend. Julia …

---

## [Reading LP/MPS file and using callback](https://discourse.julialang.org/t/reading-lp-mps-file-and-using-callback/68254)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 3\
**Last updated:** [July 13, 2022, 5:50pm UTC](https://discourse.julialang.org/t/reading-lp-mps-file-and-using-callback/68254 "2022-07-13T17:50:55Z")

</div>

Hi All, is there a way to read an lp/MPS file in julia and apply the callback function. Thanks, Manoj Kumar

---

## [Bifurcation analysis with history in ODEs](https://discourse.julialang.org/t/bifurcation-analysis-with-history-in-odes/84070)

<div class="topic-metadata">

**Author:** [@nkoch](https://discourse.julialang.org/u/nkoch)\
**Replies:** 12\
**Last updated:** [July 13, 2022, 5:18pm UTC](https://discourse.julialang.org/t/bifurcation-analysis-with-history-in-odes/84070 "2022-07-13T17:18:18Z")

</div>

Hello, I’m relatively new to using Julia and I am trying to do bifurcation analysis. I have a system of ODEs in which one DE depends on the history of another variable (i.e. du\[2\] depends on history of u\[1\]). From what …

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

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