# Specific Domains

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

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

**Page:** 185

---

## [How to best model different domains in Optimization, especially Manifolds?](https://discourse.julialang.org/t/how-to-best-model-different-domains-in-optimization-especially-manifolds/100390)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 40\
**Last updated:** [June 21, 2023, 2:10pm UTC](https://discourse.julialang.org/t/how-to-best-model-different-domains-in-optimization-especially-manifolds/100390 "2023-06-21T14:10:26Z")

</div>

Recently there have been some approaches here and here to introduce (my favourite topic) optimization on manifolds into general optiimization frameworks. One thing, that might be missing and that I would like to discuss…

---

## [Two equivalent conditioning syntaxes giving different likelihood values?](https://discourse.julialang.org/t/two-equivalent-conditioning-syntaxes-giving-different-likelihood-values/100320)

<div class="topic-metadata">

**Author:** [@BatyLeo](https://discourse.julialang.org/u/BatyLeo)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 1:45pm UTC](https://discourse.julialang.org/t/two-equivalent-conditioning-syntaxes-giving-different-likelihood-values/100320 "2023-06-21T13:45:51Z")

</div>

Hello, I’m new to Turing.j,l and probabilistic programming in general. While playing around with small example codes, I faced a behaviour I don’t understand about the conditioning syntax: If I understand well, these t…

---

## [Call for help - Network latency of RemoteREPL](https://discourse.julialang.org/t/call-for-help-network-latency-of-remoterepl/100652)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 0\
**Last updated:** [June 21, 2023, 1:31pm UTC](https://discourse.julialang.org/t/call-for-help-network-latency-of-remoterepl/100652 "2023-06-21T13:31:33Z")

</div>

Hey everyone. I just submitted this issue about the latency of RemoteREPL. I just wanted to put a post out here, to say that any help would be appreciated, as I do not know anything about how to fix this, and it seems li…

---

## [SymbolicNumericIntegration -- definite integral?](https://discourse.julialang.org/t/symbolicnumericintegration-definite-integral/100558)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 11:25am UTC](https://discourse.julialang.org/t/symbolicnumericintegration-definite-integral/100558 "2023-06-21T11:25:23Z")

</div>

Does SymbolicNumericIntegration support definite integration? \[I don’t find this in the documentation… I tried with \`integrate(f(x),x~x0…x1)\` and also with \`integrate(f(x), x=x0…x1)\` without much success…\] If not, it is…

---

## [LazyConstraintCallback not called at every solution?](https://discourse.julialang.org/t/lazyconstraintcallback-not-called-at-every-solution/100611)

<div class="topic-metadata">

**Author:** [@Eetu\_Reijonen](https://discourse.julialang.org/u/Eetu_Reijonen)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 11:36am UTC](https://discourse.julialang.org/t/lazyconstraintcallback-not-called-at-every-solution/100611 "2023-06-21T11:36:17Z")

</div>

The MathOptInterface documentation states that: there is no guarantee that the callback is called at every feasible primal solution. Is there a way to get around this using Gurobi? I have run into a problem where only …

---

## [Bilevel model with multiple lower levels](https://discourse.julialang.org/t/bilevel-model-with-multiple-lower-levels/100113)

<div class="topic-metadata">

**Author:** [@martina.gherardi](https://discourse.julialang.org/u/martina.gherardi)\
**Replies:** 3\
**Last updated:** [June 21, 2023, 4:40am UTC](https://discourse.julialang.org/t/bilevel-model-with-multiple-lower-levels/100113 "2023-06-21T04:40:09Z")

</div>

Hi, I’m currently working on a bilevel problem that has: one lower level problem for each period a single upper level problem that considers all the periods How to code this kind of bilevel problem with “mode=Bilevel…

---

## [Pass current timestep to affect! to modify integrator values with lookup table](https://discourse.julialang.org/t/pass-current-timestep-to-affect-to-modify-integrator-values-with-lookup-table/100617)

<div class="topic-metadata">

**Author:** [@aidanboyne](https://discourse.julialang.org/u/aidanboyne)\
**Replies:** 2\
**Last updated:** [June 21, 2023, 3:02am UTC](https://discourse.julialang.org/t/pass-current-timestep-to-affect-to-modify-integrator-values-with-lookup-table/100617 "2023-06-21T03:02:03Z")

</div>

I am trying to simulate patient response to a drug and am currently fitting a model to patient data. However the frequency and strength of the dose changes frequently, so I have the time and strength for each dose record…

---

## [How to impose absolute value greater than constraint](https://discourse.julialang.org/t/how-to-impose-absolute-value-greater-than-constraint/100631)

<div class="topic-metadata">

**Author:** [@horvetz](https://discourse.julialang.org/u/horvetz)\
**Replies:** 6\
**Last updated:** [June 21, 2023, 2:37am UTC](https://discourse.julialang.org/t/how-to-impose-absolute-value-greater-than-constraint/100631 "2023-06-21T02:37:09Z")

</div>

The following gives me an error and I don’t know how to fix it. I want entries of the matrix X to be bounded by -1 and 1, and in addition I wand |X(i,j)| \>= 0.01 for all i and j. What am I doing wrong? using JuMP mode…

---

## [Btime for loading @tensor inside loop](https://discourse.julialang.org/t/btime-for-loading-tensor-inside-loop/100613)

<div class="topic-metadata">

**Author:** [@Nellatur](https://discourse.julialang.org/u/Nellatur)\
**Replies:** 4\
**Last updated:** [June 21, 2023, 1:31am UTC](https://discourse.julialang.org/t/btime-for-loading-tensor-inside-loop/100613 "2023-06-21T01:31:17Z")

</div>

Hi, for the following code using LinearAlgebra using BenchmarkTools using TensorOperations # Initialization A = rand(100, 100) B = rand(100, 100) B\_3d = rand(100, 100, 100) n=100 C\_new = zeros(100, 100, 100) @btime…

---

## [Makie - arrowhead options](https://discourse.julialang.org/t/makie-arrowhead-options/100596)

<div class="topic-metadata">

**Author:** [@yoplo](https://discourse.julialang.org/u/yoplo)\
**Replies:** 4\
**Last updated:** [June 20, 2023, 5:14pm UTC](https://discourse.julialang.org/t/makie-arrowhead-options/100596 "2023-06-20T17:14:19Z")

</div>

Hello! I am drawing an arrows plot in GLMakie, Where can I find a list of the legal inputs to the arrowhead keyword? yoplo

---

## [Best way to let axis automatically adjust in live GLMakie plot?](https://discourse.julialang.org/t/best-way-to-let-axis-automatically-adjust-in-live-glmakie-plot/100615)

<div class="topic-metadata">

**Author:** [@mhinsch](https://discourse.julialang.org/u/mhinsch)\
**Replies:** 1\
**Last updated:** [June 20, 2023, 5:05pm UTC](https://discourse.julialang.org/t/best-way-to-let-axis-automatically-adjust-in-live-glmakie-plot/100615 "2023-06-20T17:05:57Z")

</div>

I’m plotting some numbers produced by my simulation using GLMakie. The code looks somewhat like this: data = Observable(\[\[0.0\], \[0.0\]\]) series(data) while sim\_is\_running # do stuff push!(data\[\]\[1\], result1) …

---

## [How to load models from HuggingFace with Transformers.jl](https://discourse.julialang.org/t/how-to-load-models-from-huggingface-with-transformers-jl/100573)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 1\
**Last updated:** [June 20, 2023, 9:57am UTC](https://discourse.julialang.org/t/how-to-load-models-from-huggingface-with-transformers-jl/100573 "2023-06-20T09:57:16Z")

</div>

Hi All, I quite like the Transformers.jl. I do not aspire to train or finetune LLMs, but I am more interested in learning prompts. I am a bit lost with loading models from the HuggingFace. Here are few questions: Why…

---

## [Creating tidytext's unnest\_tokens() in Julia and speed](https://discourse.julialang.org/t/creating-tidytexts-unnest-tokens-in-julia-and-speed/100579)

<div class="topic-metadata">

**Author:** [@Alex\_Tantos](https://discourse.julialang.org/u/Alex_Tantos)\
**Replies:** 5\
**Last updated:** [June 20, 2023, 7:58am UTC](https://discourse.julialang.org/t/creating-tidytexts-unnest-tokens-in-julia-and-speed/100579 "2023-06-20T07:58:14Z")

</div>

Hi. I am trying to create a function that replicates the unnest\_tokens() function in the tidytext R package. The version I came up with is the following: function unnest\_tokens3(df::DataFrame, input\_col::Symbol, output…

---

## [Incorporating derivative term into loss for Flux.jl model](https://discourse.julialang.org/t/incorporating-derivative-term-into-loss-for-flux-jl-model/95231)

<div class="topic-metadata">

**Author:** [@YuriS](https://discourse.julialang.org/u/YuriS)\
**Replies:** 2\
**Last updated:** [June 20, 2023, 6:25am UTC](https://discourse.julialang.org/t/incorporating-derivative-term-into-loss-for-flux-jl-model/95231 "2023-06-20T06:25:59Z")

</div>

Hello! I am trying to incorporate a derivative term of the outputs with respect to one of the inputs in the loss of a neural network via Flux.jl, and I was hoping to get some help… I looked into a few posts online, but…

---

## [Show and use expressions](https://discourse.julialang.org/t/show-and-use-expressions/100584)

<div class="topic-metadata">

**Author:** [@horvetz](https://discourse.julialang.org/u/horvetz)\
**Replies:** 1\
**Last updated:** [June 20, 2023, 1:42am UTC](https://discourse.julialang.org/t/show-and-use-expressions/100584 "2023-06-20T01:42:16Z")

</div>

I am having a trouble 1- printing the expression Ad, and 2- using it in a nonlinear constraint. using LinearAlgebra using JuMP model = Model( ) n = 8 u = ones(n) @variable(model, A\[1:n, 1:n\], Symmetric) A = Lower…

---

## [Nonlinear optimization: Registering a function with parameters](https://discourse.julialang.org/t/nonlinear-optimization-registering-a-function-with-parameters/100457)

<div class="topic-metadata">

**Author:** [@selvi-aras](https://discourse.julialang.org/u/selvi-aras)\
**Replies:** 10\
**Last updated:** [June 20, 2023, 12:08am UTC](https://discourse.julialang.org/t/nonlinear-optimization-registering-a-function-with-parameters/100457 "2023-06-20T00:08:52Z")

</div>

I followed the link that teaches how to register a function in a NL model. As far as I can see, the registered functions’ inputs are optimization variables. I would like to also allow inputting a separate object, whose …

---

## [Error in Flux when calculating the gradient due to an in-place operation](https://discourse.julialang.org/t/error-in-flux-when-calculating-the-gradient-due-to-an-in-place-operation/100533)

<div class="topic-metadata">

**Author:** [@josemanuel22](https://discourse.julialang.org/u/josemanuel22)\
**Replies:** 7\
**Last updated:** [June 19, 2023, 9:12am UTC](https://discourse.julialang.org/t/error-in-flux-when-calculating-the-gradient-due-to-an-in-place-operation/100533 "2023-06-19T09:12:40Z")

</div>

I’m diving into Flux.jl for my research. My objective is to define a loss function that would measure, so to speak, the convergence of the model towards a uniform data distribution. I generate K random fictitious observ…

---

## [CairoMakie - how set a name for a figure?](https://discourse.julialang.org/t/cairomakie-how-set-a-name-for-a-figure/100522)

<div class="topic-metadata">

**Author:** [@PeteS](https://discourse.julialang.org/u/PeteS)\
**Replies:** 2\
**Last updated:** [June 19, 2023, 8:55am UTC](https://discourse.julialang.org/t/cairomakie-how-set-a-name-for-a-figure/100522 "2023-06-19T08:55:34Z")

</div>

Hi, I’m using CairoMakie in VSCode, viewing the plots in the Julia Plots tab and switching between them using the Plot Navigator of the Julia extension tab. Is there any way to set a meaningful name of a Figure() so tha…

---

## [Solving the Boltzmann transport equation using Julia?](https://discourse.julialang.org/t/solving-the-boltzmann-transport-equation-using-julia/100495)

<div class="topic-metadata">

**Author:** [@WarmConsidering](https://discourse.julialang.org/u/WarmConsidering)\
**Replies:** 9\
**Last updated:** [June 18, 2023, 10:00pm UTC](https://discourse.julialang.org/t/solving-the-boltzmann-transport-equation-using-julia/100495 "2023-06-18T22:00:15Z")

</div>

Hi all, I’d like to use Julia to solve the time-independent Boltzmann transport equation (BTE) over unstructured grids in 2 or 3 dimensions using the Sn method for neutrons. So far I’ve identified Trixi.jl and Gridap.jl …

---

## [Error when using CUDA.dot() in kernel](https://discourse.julialang.org/t/error-when-using-cuda-dot-in-kernel/100476)

<div class="topic-metadata">

**Author:** [@huiyuxie](https://discourse.julialang.org/u/huiyuxie)\
**Replies:** 2\
**Last updated:** [June 18, 2023, 5:13am UTC](https://discourse.julialang.org/t/error-when-using-cuda-dot-in-kernel/100476 "2023-06-18T05:13:27Z")

</div>

Here is a very simple version of trying to compute dot product in GPU kernel. Having tried c\[i\] = transpose(a\[i, :\]) \* b\[:, i\] c\[i\] = CUDA.dot(a\[i, :\], b\[:, i\]) c\[i\] = CUBLAS.dot(4, a\[i, :\], b\[:, i\]) but all reported…

---

## [Issue with Flux BatchNorm](https://discourse.julialang.org/t/issue-with-flux-batchnorm/100313)

<div class="topic-metadata">

**Author:** [@tchebycheff](https://discourse.julialang.org/u/tchebycheff)\
**Replies:** 2\
**Last updated:** [June 18, 2023, 12:22am UTC](https://discourse.julialang.org/t/issue-with-flux-batchnorm/100313 "2023-06-18T00:22:05Z")

</div>

A simple example with input as a 4 x 20 matrix (each feature vector has 4 elements). This is PyTorch BatchNorm1d, which has essentially the same default set-up as Flux BatchNorm i.e. affine = true, track\_stats = true, m…

---

## [Speed up multilevel model in Turing.jl](https://discourse.julialang.org/t/speed-up-multilevel-model-in-turing-jl/100201)

<div class="topic-metadata">

**Author:** [@JanG](https://discourse.julialang.org/u/JanG)\
**Replies:** 15\
**Last updated:** [June 17, 2023, 7:40pm UTC](https://discourse.julialang.org/t/speed-up-multilevel-model-in-turing-jl/100201 "2023-06-17T19:40:44Z")

</div>

Hi everybody, I’ve coded up a multilevel model with random intercepts and slopes in Turing (see below). However, my model is very slow compared to similar models in Stan. Does anybody have any insights on how to speed t…

---

## [SplitODEProblem](https://discourse.julialang.org/t/splitodeproblem/100061)

<div class="topic-metadata">

**Author:** [@jtgreen](https://discourse.julialang.org/u/jtgreen)\
**Replies:** 5\
**Last updated:** [June 17, 2023, 2:00pm UTC](https://discourse.julialang.org/t/splitodeproblem/100061 "2023-06-17T14:00:21Z")

</div>

Is it possible to use other combinations of solvers for instance forward euler for an explicit method and CVODE\_BDF from sundials (w/ linear\_solver=:GMRES) for the implicit? Rather than the provided combinations listed i…

---

## [Should Tulip catch SQDExceptions thrown by LDLFactorizations?](https://discourse.julialang.org/t/should-tulip-catch-sqdexceptions-thrown-by-ldlfactorizations/100487)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 0\
**Last updated:** [June 17, 2023, 1:08pm UTC](https://discourse.julialang.org/t/should-tulip-catch-sqdexceptions-thrown-by-ldlfactorizations/100487 "2023-06-17T13:08:55Z")

</div>

@mtanneau Sometimes MathOptInterface.optimize!(::Tulip.Optimizer{BigFloat}) throws an LDLFactorizations.SQDException: ERROR: LoadError: LDLFactorizations.SQDException("LDL' factorization was not computed or failed") Sta…

---

## [Solving differential equations with uncertain parameters](https://discourse.julialang.org/t/solving-differential-equations-with-uncertain-parameters/100059)

<div class="topic-metadata">

**Author:** [@lmg](https://discourse.julialang.org/u/lmg)\
**Replies:** 8\
**Last updated:** [June 16, 2023, 11:31pm UTC](https://discourse.julialang.org/t/solving-differential-equations-with-uncertain-parameters/100059 "2023-06-16T23:31:33Z")

</div>

Hello everybody, I would like to solve IVPs with uncertain but bounded parameters. To achieve this, my plan was to use the Interval data type from the IntervalArithmetic.jl package. In this post on custom number types, …

---

## [Is that possible to specify dimensions in gemm?](https://discourse.julialang.org/t/is-that-possible-to-specify-dimensions-in-gemm/100433)

<div class="topic-metadata">

**Author:** [@Nellatur](https://discourse.julialang.org/u/Nellatur)\
**Replies:** 3\
**Last updated:** [June 16, 2023, 7:39pm UTC](https://discourse.julialang.org/t/is-that-possible-to-specify-dimensions-in-gemm/100433 "2023-06-16T19:39:01Z")

</div>

In Linear Algebra · The Julia Language gemm has fewer entries than LAPACK: dgemm, e.g., dimensions of matrices A and B. Specifying dimensions sometimes can let higher dimensional arrays look like matrices arrays - How …

---

## [Any speed improvements to the implementation of \`BiRank\`?](https://discourse.julialang.org/t/any-speed-improvements-to-the-implementation-of-birank/100305)

<div class="topic-metadata">

**Author:** [@danielw2904](https://discourse.julialang.org/u/danielw2904)\
**Replies:** 15\
**Last updated:** [June 16, 2023, 7:22pm UTC](https://discourse.julialang.org/t/any-speed-improvements-to-the-implementation-of-birank/100305 "2023-06-16T19:22:41Z")

</div>

Hi All, I implemented the paper BiRank: Towards Ranking on Bipartite Graphs in Julia (R and Python implementations already exist here). I was wondering if there are any obvious performance problems I missed? I noticed …

---

## [Using UODE in Lotka-Volterra for multiple species](https://discourse.julialang.org/t/using-uode-in-lotka-volterra-for-multiple-species/100146)

<div class="topic-metadata">

**Author:** [@James\_Fernandez](https://discourse.julialang.org/u/James_Fernandez)\
**Replies:** 6\
**Last updated:** [June 16, 2023, 5:32pm UTC](https://discourse.julialang.org/t/using-uode-in-lotka-volterra-for-multiple-species/100146 "2023-06-16T17:32:44Z")

</div>

Hello everyone, I am brand new to Julia, machine learning and sciML so forgive me if I still don’t have the technical jargon. I have read through Automatically Discover Missing Physics by Embedding Machine Learning int…

---

## [Catlab.jl : Facing error while creating simple graphs](https://discourse.julialang.org/t/catlab-jl-facing-error-while-creating-simple-graphs/100415)

<div class="topic-metadata">

**Author:** [@nikit\_goku](https://discourse.julialang.org/u/nikit_goku)\
**Replies:** 5\
**Last updated:** [June 16, 2023, 4:15pm UTC](https://discourse.julialang.org/t/catlab-jl-facing-error-while-creating-simple-graphs/100415 "2023-06-16T16:15:23Z")

</div>

I was following the AlgebraicJulia blog for Graphs and C-sets where I am encountering an IOError for the ‘dot -Tsvg’ file missing when trying to generate graph interface using the 'to\_graphviz() function. I could not deb…

---

## [Integro-DDE that includes integral over delta function](https://discourse.julialang.org/t/integro-dde-that-includes-integral-over-delta-function/100429)

<div class="topic-metadata">

**Author:** [@rogue26](https://discourse.julialang.org/u/rogue26)\
**Replies:** 2\
**Last updated:** [June 16, 2023, 12:36pm UTC](https://discourse.julialang.org/t/integro-dde-that-includes-integral-over-delta-function/100429 "2023-06-16T12:36:07Z")

</div>

Hi everyone. I’ve solved some DDE systems in Julia, but I’m stumped on my latest problem. I’m not sure if this is a math question or a Julia question, but I’d appreciate any guidance you can provide. How would you go ab…

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

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