# Specific Domains

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

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

**Page:** 139

---

## [Issues with Convergence in Differential Equation Solver Using Dual Numbers](https://discourse.julialang.org/t/issues-with-convergence-in-differential-equation-solver-using-dual-numbers/108871)

<div class="topic-metadata">

**Author:** [@vivekag7](https://discourse.julialang.org/u/vivekag7)\
**Replies:** 7\
**Last updated:** [January 30, 2024, 5:32pm UTC](https://discourse.julialang.org/t/issues-with-convergence-in-differential-equation-solver-using-dual-numbers/108871 "2024-01-30T17:32:10Z")

</div>

Hello Julia Community, I’m currently working on a differential equation problem related to ice flow modeling and encountering some issues with convergence when using Dual numbers. The problem converges as expected with F…

---

## [How to implement Lyons’ Differentiator](https://discourse.julialang.org/t/how-to-implement-lyons-differentiator/109438)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [January 30, 2024, 5:28pm UTC](https://discourse.julialang.org/t/how-to-implement-lyons-differentiator/109438 "2024-01-30T17:28:19Z")

</div>

Hello, I am trying to implement a discrete time differentiator, Lyons’ Differentiator type two, see: Design of a Discrete-Time Differentiator | Wireless Pi It has five coefficients. How would you implement that? This …

---

## [Improving model formulation](https://discourse.julialang.org/t/improving-model-formulation/109252)

<div class="topic-metadata">

**Author:** [@Lemma](https://discourse.julialang.org/u/Lemma)\
**Replies:** 10\
**Last updated:** [January 30, 2024, 11:14am UTC](https://discourse.julialang.org/t/improving-model-formulation/109252 "2024-01-30T11:14:30Z")

</div>

I’m currently working on a sales optimization problem using JuMP in Julia. The challenge involves representing the total sales value under specific constraints. However, my current approach leads to bilinear terms, which…

---

## [Stop JuMP optimization when gap doesn't improve enough](https://discourse.julialang.org/t/stop-jump-optimization-when-gap-doesnt-improve-enough/109437)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 2\
**Last updated:** [January 30, 2024, 10:45am UTC](https://discourse.julialang.org/t/stop-jump-optimization-when-gap-doesnt-improve-enough/109437 "2024-01-30T10:45:38Z")

</div>

Suppose that I have a time limit of one day with JuMP and CPLEX: using JuMP, CPLEX, Dates set\_optimizer\_attributes(model, "CPX\_PARAM\_TILIM" =\> Dates.value(Second(Day(1))) # CPU limit in seconds Can I also have another…

---

## [Struggling to define Jump constraints for modified TSP in a programmatic way](https://discourse.julialang.org/t/struggling-to-define-jump-constraints-for-modified-tsp-in-a-programmatic-way/106346)

<div class="topic-metadata">

**Author:** [@Lee\_Phillips](https://discourse.julialang.org/u/Lee_Phillips)\
**Replies:** 4\
**Last updated:** [January 30, 2024, 2:55am UTC](https://discourse.julialang.org/t/struggling-to-define-jump-constraints-for-modified-tsp-in-a-programmatic-way/106346 "2024-01-30T02:55:07Z")

</div>

Hey All I’m working on a traveling salesman like problem with a few additional constraints and I’m using the JUMP package. One of the constraints is that certain nodes on the graph need to be performed sequentially Ho…

---

## [SBMLToolkit and Catalyst Warnings](https://discourse.julialang.org/t/sbmltoolkit-and-catalyst-warnings/107533)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 3\
**Last updated:** [January 29, 2024, 10:14pm UTC](https://discourse.julialang.org/t/sbmltoolkit-and-catalyst-warnings/107533 "2024-01-29T22:14:12Z")

</div>

I am importing an SBML file without a problem but I got the following warnings: Warning: Stoichiometries of SpeciesReferences are not defined. Setting to 1. WARNING: both Symbolics and ModelingToolkit export “suprem…

---

## [Failed to use OpenSmiles](https://discourse.julialang.org/t/failed-to-use-opensmiles/109408)

<div class="topic-metadata">

**Author:** [@Kirill\_Vostrecov](https://discourse.julialang.org/u/Kirill_Vostrecov)\
**Replies:** 0\
**Last updated:** [January 29, 2024, 5:06pm UTC](https://discourse.julialang.org/t/failed-to-use-opensmiles/109408 "2024-01-29T17:06:18Z")

</div>

Hi all! Tried to use OpenSmiles like using OpenSMILES OpenSMILES.ParseSMILES(“C1CC12CC2”) just for test and got error ERROR: LoadError: MethodError: no method matching add\_vertex!(::SimpleWeightedGraphs.SimpleWeight…

---

## [Enzyme autodiff: Why am I getting allocations?](https://discourse.julialang.org/t/enzyme-autodiff-why-am-i-getting-allocations/109307)

<div class="topic-metadata">

**Author:** [@Larbino1](https://discourse.julialang.org/u/Larbino1)\
**Replies:** 20\
**Last updated:** [January 29, 2024, 1:19pm UTC](https://discourse.julialang.org/t/enzyme-autodiff-why-am-i-getting-allocations/109307 "2024-01-29T13:19:54Z")

</div>

I’m using Enzyme to perform automatic differentiation. I thought that as the primal code is type stable and non allocating, the enzyme autodiff function would also be. However for me the minimized example below gives th…

---

## [LaTeX strings do not vertically align in Plots](https://discourse.julialang.org/t/latex-strings-do-not-vertically-align-in-plots/109304)

<div class="topic-metadata">

**Author:** [@ysfoo](https://discourse.julialang.org/u/ysfoo)\
**Replies:** 11\
**Last updated:** [January 29, 2024, 7:59am UTC](https://discourse.julialang.org/t/latex-strings-do-not-vertically-align-in-plots/109304 "2024-01-29T07:59:39Z")

</div>

I’ve noticed that strings containing LaTeX do not vertically align when their contents differ: using Plots using LaTeXStrings plot( \[1 2 3\], \[1 2 3\], label=\[L"text $g$" L"text $x$" "text"\], legendcolumn=-1, ) resul…

---

## [cuDNN, julia-1.10 and linux](https://discourse.julialang.org/t/cudnn-julia-1-10-and-linux/106658)

<div class="topic-metadata">

**Author:** [@quietlight](https://discourse.julialang.org/u/quietlight)\
**Replies:** 10\
**Last updated:** [January 28, 2024, 9:34pm UTC](https://discourse.julialang.org/t/cudnn-julia-1-10-and-linux/106658 "2024-01-28T21:34:28Z")

</div>

I have trained a Resnet18 using Flux on julia-1.10 rc1, actually I have trained multiple models with no trouble at all, but this week when I try to predict using my model I get a compilation error for my private package: …

---

## [Major update of my Financial Econometrics Repository](https://discourse.julialang.org/t/major-update-of-my-financial-econometrics-repository/109368)

<div class="topic-metadata">

**Author:** [@Paul\_Soderlind](https://discourse.julialang.org/u/Paul_Soderlind)\
**Replies:** 1\
**Last updated:** [January 28, 2024, 8:31pm UTC](https://discourse.julialang.org/t/major-update-of-my-financial-econometrics-repository/109368 "2024-01-28T20:31:03Z")

</div>

Dear Julians, I have made a major update of my financial econometrics repository, aimed at late MA/early PhD students in finance. It covers things from OLS to quantile regressions (via MLE, GMM, kernel regressions). Eac…

---

## [Turing performance vs numpyro on horseshoe regression](https://discourse.julialang.org/t/turing-performance-vs-numpyro-on-horseshoe-regression/108626)

<div class="topic-metadata">

**Author:** [@jweinstk](https://discourse.julialang.org/u/jweinstk)\
**Replies:** 12\
**Last updated:** [January 28, 2024, 7:24pm UTC](https://discourse.julialang.org/t/turing-performance-vs-numpyro-on-horseshoe-regression/108626 "2024-01-28T19:24:16Z")

</div>

Hi all, I’ve benchmarked a simple implementation of regression with a horseshoe prior over the coefficients in both numpyro and Turing. I found numpyro to over an order of magnitude faster, which I found quite surprisin…

---

## [Is this a good GPU use case?](https://discourse.julialang.org/t/is-this-a-good-gpu-use-case/93787)

<div class="topic-metadata">

**Author:** [@philip](https://discourse.julialang.org/u/philip)\
**Replies:** 2\
**Last updated:** [January 28, 2024, 8:08pm UTC](https://discourse.julialang.org/t/is-this-a-good-gpu-use-case/93787 "2024-01-28T20:08:34Z")

</div>

I would like to perform millions of parallel discrete optimization computations loosely like the following: later = \[9, 8, 4, 1, 0\] today = \[1, 2, 3, 4, 5\] best\_value = -Inf best\_index = -Inf for index in 1:5…

---

## [Choosing an optimizer](https://discourse.julialang.org/t/choosing-an-optimizer/109313)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [January 28, 2024, 12:45pm UTC](https://discourse.julialang.org/t/choosing-an-optimizer/109313 "2024-01-28T12:45:10Z")

</div>

I have the following optimization problem: Tuning of a filter, that has two (real value) parameters, subject to one constraint (the time delay). My simulation returns two parameters, the standard deviation of the differ…

---

## [How to keep the cursor focus on the REPL?](https://discourse.julialang.org/t/how-to-keep-the-cursor-focus-on-the-repl/109321)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 6\
**Last updated:** [January 27, 2024, 8:09pm UTC](https://discourse.julialang.org/t/how-to-keep-the-cursor-focus-on-the-repl/109321 "2024-01-27T20:09:46Z")

</div>

I need help with Gtk.jl for the following basic problem. I am trying to get input from the REPL in a closed loop program and update a Gtk window that keeps track of all items generated during program execution. See the…

---

## [How to calculate the real cepstrums of a time-series in Julia?](https://discourse.julialang.org/t/how-to-calculate-the-real-cepstrums-of-a-time-series-in-julia/109169)

<div class="topic-metadata">

**Author:** [@Shayan](https://discourse.julialang.org/u/Shayan)\
**Replies:** 6\
**Last updated:** [January 27, 2024, 10:01am UTC](https://discourse.julialang.org/t/how-to-calculate-the-real-cepstrums-of-a-time-series-in-julia/109169 "2024-01-27T10:01:25Z")

</div>

That being said, the real cepstrum of a time series can be calculated by the inverse Fourier transform of the real logarithm of the Fourier transform of the time–series (K. Kalpakis et al., 2001). Let’s assume that w…

---

## [Plotting a matrix with wireframe where one axis isn't 1:max](https://discourse.julialang.org/t/plotting-a-matrix-with-wireframe-where-one-axis-isnt-1-max/109316)

<div class="topic-metadata">

**Author:** [@bwanab](https://discourse.julialang.org/u/bwanab)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 10:42pm UTC](https://discourse.julialang.org/t/plotting-a-matrix-with-wireframe-where-one-axis-isnt-1-max/109316 "2024-01-26T22:42:27Z")

</div>

I’m plotting a matrix in which the interpretation of one axis isn’t the 1:n where n is size of the axis. For example: using Plots data = reshape(rand(9), 3,3) p = wireframe(data) # works fine with both axis 1:3 xtick…

---

## [Why doesn't the loss calculated by Flux \`withgradient\` match what I have calculated?](https://discourse.julialang.org/t/why-doesnt-the-loss-calculated-by-flux-withgradient-match-what-i-have-calculated/109228)

<div class="topic-metadata">

**Author:** [@kirklong](https://discourse.julialang.org/u/kirklong)\
**Replies:** 2\
**Last updated:** [January 26, 2024, 9:05pm UTC](https://discourse.julialang.org/t/why-doesnt-the-loss-calculated-by-flux-withgradient-match-what-i-have-calculated/109228 "2024-01-26T21:05:57Z")

</div>

Just posted this to StackOverflow, but crossposting here for Julia reach. TL;DR – when making a simple CNN I noticed weird behavior between the reported loss during training and the loss I actually calculated from the “…

---

## [Variational Inference for Gaussian Mixture models](https://discourse.julialang.org/t/variational-inference-for-gaussian-mixture-models/109116)

<div class="topic-metadata">

**Author:** [@simonsteiger](https://discourse.julialang.org/u/simonsteiger)\
**Replies:** 4\
**Last updated:** [January 26, 2024, 10:58am UTC](https://discourse.julialang.org/t/variational-inference-for-gaussian-mixture-models/109116 "2024-01-26T10:58:15Z")

</div>

I’ve been trying to replicate the results from @rikh great blog post on Bayesian Latent Profile Analysis and the related post on this forum. This was my attempt using Turing x = randn(200); x\[1:100\] .+= 10 @model fun…

---

## [Multiple user cut](https://discourse.julialang.org/t/multiple-user-cut/109080)

<div class="topic-metadata">

**Author:** [@Fabrizio](https://discourse.julialang.org/u/Fabrizio)\
**Replies:** 6\
**Last updated:** [January 26, 2024, 9:26am UTC](https://discourse.julialang.org/t/multiple-user-cut/109080 "2024-01-26T09:26:39Z")

</div>

Hi, I am using a solver indipendent callback to add user cut withing a for loop, in a bilevel opt model. They are of the form: function MyUsercutRelaxedSD(cb\_data) #Get var ... for t in T SDrelcon = @build\_co…

---

## [A discrepancy in self-attention between python and Julia (Transformers)](https://discourse.julialang.org/t/a-discrepancy-in-self-attention-between-python-and-julia-transformers/109195)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 7\
**Last updated:** [January 26, 2024, 7:27am UTC](https://discourse.julialang.org/t/a-discrepancy-in-self-attention-between-python-and-julia-transformers/109195 "2024-01-26T07:27:00Z")

</div>

Hi, I am continuing the porting of microsoft Phi model to the Transformers.jl. The most complicated is the self-attention, where I am lost, but gradually removing abstraction layers of Neuralattentionlib.jl to get to th…

---

## [BetaBinomial: the condition α \> zero(α) is not satisfied](https://discourse.julialang.org/t/betabinomial-the-condition-zero-is-not-satisfied/109076)

<div class="topic-metadata">

**Author:** [@yahrMason](https://discourse.julialang.org/u/yahrMason)\
**Replies:** 6\
**Last updated:** [January 26, 2024, 2:02am UTC](https://discourse.julialang.org/t/betabinomial-the-condition-zero-is-not-satisfied/109076 "2024-01-26T02:02:33Z")

</div>

Hello, I have some code where I am trying to model the uncertainty in an a probabilistic prediction as a function of some independent variable. A general use case would be if I had an ML model in production (say logisti…

---

## [Include deterministic variables in the chain](https://discourse.julialang.org/t/include-deterministic-variables-in-the-chain/108047)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 1\
**Last updated:** [January 25, 2024, 11:35pm UTC](https://discourse.julialang.org/t/include-deterministic-variables-in-the-chain/108047 "2024-01-25T23:35:23Z")

</div>

This is a very basic question, but how can I include deterministic variables in the chain when sampling from a Turing.jl model?

---

## [Issue with Float32 Precision in Turing Model Sampling](https://discourse.julialang.org/t/issue-with-float32-precision-in-turing-model-sampling/108160)

<div class="topic-metadata">

**Author:** [@Can\_Bozdogan](https://discourse.julialang.org/u/Can_Bozdogan)\
**Replies:** 1\
**Last updated:** [January 25, 2024, 11:33pm UTC](https://discourse.julialang.org/t/issue-with-float32-precision-in-turing-model-sampling/108160 "2024-01-25T23:33:36Z")

</div>

I’m encountering an issue when trying to use Float32 precision in a Turing.jl model. Despite ensuring all my data, neural network outputs, and model parameters are in Float32, I’m getting a type mismatch error during sam…

---

## [Worked tutorial on low-level AbstractNLPEvaluator interface?](https://discourse.julialang.org/t/worked-tutorial-on-low-level-abstractnlpevaluator-interface/109210)

<div class="topic-metadata">

**Author:** [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Replies:** 4\
**Last updated:** [January 25, 2024, 8:23pm UTC](https://discourse.julialang.org/t/worked-tutorial-on-low-level-abstractnlpevaluator-interface/109210 "2024-01-25T20:23:10Z")

</div>

I have a very old lab-internal package that performs a variety of image registration tasks. It was written against MathProgBase, and clearly it’s well past time to rewrite it for MathOptInterface. While the documentation…

---

## [Constructing a sparse variable for optimization](https://discourse.julialang.org/t/constructing-a-sparse-variable-for-optimization/109269)

<div class="topic-metadata">

**Author:** [@legio](https://discourse.julialang.org/u/legio)\
**Replies:** 1\
**Last updated:** [January 25, 2024, 8:15pm UTC](https://discourse.julialang.org/t/constructing-a-sparse-variable-for-optimization/109269 "2024-01-25T20:15:39Z")

</div>

I want to optimize over a matrix X. While I specify in my model constraints the indices at which X must be zero (according to the specifications I provide in a binary matrix A): @variable(model, X\[1:n\_rows, 1:n\_cols\]) …

---

## [GPU memory in Julia](https://discourse.julialang.org/t/gpu-memory-in-julia/109216)

<div class="topic-metadata">

**Author:** [@Wenbo\_Li](https://discourse.julialang.org/u/Wenbo_Li)\
**Replies:** 5\
**Last updated:** [January 25, 2024, 6:02pm UTC](https://discourse.julialang.org/t/gpu-memory-in-julia/109216 "2024-01-25T18:02:03Z")

</div>

I am training unet with 3d input size 512512128. However, with the same model, same loss function, same size of input and label in float32, python indeed can fit and train while julia not. Also, julia need much longer ti…

---

## [Forcing Lux to use Enzyme instead of Zygote?](https://discourse.julialang.org/t/forcing-lux-to-use-enzyme-instead-of-zygote/109193)

<div class="topic-metadata">

**Author:** [@Naceur\_Bouziani](https://discourse.julialang.org/u/Naceur_Bouziani)\
**Replies:** 10\
**Last updated:** [January 25, 2024, 3:35pm UTC](https://discourse.julialang.org/t/forcing-lux-to-use-enzyme-instead-of-zygote/109193 "2024-01-25T15:35:10Z")

</div>

Hi everyone. I’m confused. The example that used to work @GitHub - SciML/NeuralPDE.jl: Physics-Informed Neural Networks (PINN) and Deep BSDE Solvers of Differential Equations for Scientific Machine Learning (SciML) acc…

---

## [How to set the random seed using GLPK.jl?](https://discourse.julialang.org/t/how-to-set-the-random-seed-using-glpk-jl/109231)

<div class="topic-metadata">

**Author:** [@Henrique\_Becker](https://discourse.julialang.org/u/Henrique_Becker)\
**Replies:** 2\
**Last updated:** [January 25, 2024, 2:40pm UTC](https://discourse.julialang.org/t/how-to-set-the-random-seed-using-glpk-jl/109231 "2024-01-25T14:40:06Z")

</div>

I have asked my students to set a fixed random seed in their experiments with a formulation implementation. Many have used Julia/JuMP as I have incentivized them to do so. However, I was not able to tell them how to set …

---

## [JuMP-dev 2024](https://discourse.julialang.org/t/jump-dev-2024/106179)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 3\
**Last updated:** [January 24, 2024, 2:47am UTC](https://discourse.julialang.org/t/jump-dev-2024/106179 "2024-01-24T02:47:00Z")

</div>

Dear all, We are pleased to announce that JuMP-dev 2024 will take place July 19-21 in Montréal, Canada. (The location and time is intended to coincide with the start of ISMP: https://ismp2024.gerad.ca.) For more inform…

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

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