# Specific Domains

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

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

**Page:** 276

---

## [How to implement a conditional over an exogenous parameter in a non linear constraint in JuMP?](https://discourse.julialang.org/t/how-to-implement-a-conditional-over-an-exogenous-parameter-in-a-non-linear-constraint-in-jump/82177)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 1\
**Last updated:** [June 3, 2022, 12:14pm UTC](https://discourse.julialang.org/t/how-to-implement-a-conditional-over-an-exogenous-parameter-in-a-non-linear-constraint-in-jump/82177 "2022-06-03T12:14:00Z")

</div>

I need to add a condition over an exogenous parameter. These seems not to work: @NLconstraint(m, myConstraint\[i in 1:N\], x\[i\] == (myExogenousParameter\[i\] == 0.0 ? 0.0 : expression\[i\]) ) I found then this that see…

---

## [PINNs for integro-differential equations with noise](https://discourse.julialang.org/t/pinns-for-integro-differential-equations-with-noise/82165)

<div class="topic-metadata">

**Author:** [@kaido975](https://discourse.julialang.org/u/kaido975)\
**Replies:** 1\
**Last updated:** [June 3, 2022, 10:34am UTC](https://discourse.julialang.org/t/pinns-for-integro-differential-equations-with-noise/82165 "2022-06-03T10:34:54Z")

</div>

Is there a way to solve an IDE with a noise term such as: \\frac{\\partial}{\\partial t} u(t) + u(t) + \\int\_{0}^{t} u(x) d x + w(t) = 0 with the help of NeuralPDE.jl, where w(t) is the noise term.

---

## [Fast/Approximate Sampling for HMMs/HDP-HMMs](https://discourse.julialang.org/t/fast-approximate-sampling-for-hmms-hdp-hmms/68591)

<div class="topic-metadata">

**Author:** [@spragud2](https://discourse.julialang.org/u/spragud2)\
**Replies:** 5\
**Last updated:** [June 3, 2022, 7:55am UTC](https://discourse.julialang.org/t/fast-approximate-sampling-for-hmms-hdp-hmms/68591 "2022-06-03T07:55:37Z")

</div>

Hi All, First post here. I’m interested in building some tools based off bayesian hidden Markov models. Indeed, what I would really like as a project for myself is a Julia equivalent to the PYHSMM library which is a fan…

---

## [Future directions for DataFrames.jl](https://discourse.julialang.org/t/future-directions-for-dataframes-jl/66247)

<div class="topic-metadata">

**Author:** [@bkamins](https://discourse.julialang.org/u/bkamins)\
**Replies:** 46\
**Last updated:** [June 3, 2022, 4:23am UTC](https://discourse.julialang.org/t/future-directions-for-dataframes-jl/66247 "2022-06-03T04:23:27Z")

</div>

Hi, Currently DataFrames.jl is designed for in-memory processing of data frames using CPU. While still we are working on improvements (the coming year) in this area I would like to make a pool on which general design di…

---

## [Multivariate OU parameter estimation](https://discourse.julialang.org/t/multivariate-ou-parameter-estimation/82147)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 2\
**Last updated:** [June 3, 2022, 12:33am UTC](https://discourse.julialang.org/t/multivariate-ou-parameter-estimation/82147 "2022-06-03T00:33:47Z")

</div>

I am interested in estimating the parameters M,D\\in\\mathbb{R}^{n\\times n}, D\\succeq0 of an OU process dX\_t = M(X\_t-\\mu)d\_t + DdW\_t from observed data at frequency \\Delta t. Is there a generalized likelihood inference…

---

## [Arrows overlaps points in 3D Axis](https://discourse.julialang.org/t/arrows-overlaps-points-in-3d-axis/82146)

<div class="topic-metadata">

**Author:** [@Mixpap](https://discourse.julialang.org/u/Mixpap)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 6:44pm UTC](https://discourse.julialang.org/t/arrows-overlaps-points-in-3d-axis/82146 "2022-06-02T18:44:55Z")

</div>

Hi, I don’t know if I am doing something wrong, or if this is already mentioned somewhere else (I searched a lot) but when I am adding an arrow in 3D axis then it is overlapping all the points. For example: using Distr…

---

## [DiffEqFlux.sciml\_train doesn't accept an adtype](https://discourse.julialang.org/t/diffeqflux-sciml-train-doesnt-accept-an-adtype/81688)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 2\
**Last updated:** [June 2, 2022, 6:43pm UTC](https://discourse.julialang.org/t/diffeqflux-sciml-train-doesnt-accept-an-adtype/81688 "2022-06-02T18:43:34Z")

</div>

This code works OK using DifferentialEquations, DiffEqFlux, GalacticOptim function lotka\_volterra!(du, u, p, t) x, y = u α, β, δ, γ = p du\[1\] = α\*x - β\*x\*y du\[2\] = -δ\*y + γ\*x\*y end u0 = \[1.0, 1.0\] tspan = (0.0…

---

## [Bug with Julia 1.7.1 and CUDA 3.3](https://discourse.julialang.org/t/bug-with-julia-1-7-1-and-cuda-3-3/74052)

<div class="topic-metadata">

**Author:** [@shiroghost](https://discourse.julialang.org/u/shiroghost)\
**Replies:** 26\
**Last updated:** [June 2, 2022, 4:12pm UTC](https://discourse.julialang.org/t/bug-with-julia-1-7-1-and-cuda-3-3/74052 "2022-06-02T16:12:05Z")

</div>

Hi, The following lines of code: b, r = CUDA.threadIdx().x, CUDA.blockIdx().x Ush = @cuStaticSharedMem(T, (D,2)) for id1 in N:-1:1 bu1, ru1 = up((b, r), id1, lp) Ush\[b,1\] = U\[b,id1,r\] …

---

## [Using AMDGPU.jl with an AMD APU](https://discourse.julialang.org/t/using-amdgpu-jl-with-an-amd-apu/82134)

<div class="topic-metadata">

**Author:** [@Bruno\_Amorim](https://discourse.julialang.org/u/Bruno_Amorim)\
**Replies:** 4\
**Last updated:** [June 2, 2022, 2:02pm UTC](https://discourse.julialang.org/t/using-amdgpu-jl-with-an-amd-apu/82134 "2022-06-02T14:02:33Z")

</div>

I was trying AMDGPU.jl with an AMD APU. I was convinced that ROCm did not support APU’s, but this thread gave me hope that it might work. I have a desktop with a Ryzen 4750G APU. I am running linux (Kubuntu 21.10 with a…

---

## [Error Nonlinear expressions may contain only scalar expressions](https://discourse.julialang.org/t/error-nonlinear-expressions-may-contain-only-scalar-expressions/82124)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 1\
**Last updated:** [June 2, 2022, 12:53pm UTC](https://discourse.julialang.org/t/error-nonlinear-expressions-may-contain-only-scalar-expressions/82124 "2022-06-02T12:53:43Z")

</div>

countBM=6 model= Model() @variable(model,x\[ i in 1:30\]) BendMom=Array{Any}(undef,countBM) zz=@NLexpression(model,\[ i in 1:30\],x\[i\]+i) BendMom\[1\]=@NLexpression(model,zz+1) julia\> BendMom\[1\]=@NLexpression(model,zz+1…

---

## [Unexpectedly high memory usage when running CUFFT.ifft()](https://discourse.julialang.org/t/unexpectedly-high-memory-usage-when-running-cufft-ifft/82108)

<div class="topic-metadata">

**Author:** [@dnakaikit](https://discourse.julialang.org/u/dnakaikit)\
**Replies:** 3\
**Last updated:** [June 2, 2022, 12:04pm UTC](https://discourse.julialang.org/t/unexpectedly-high-memory-usage-when-running-cufft-ifft/82108 "2022-06-02T12:04:41Z")

</div>

I want to use CUDA.jl instead of CUDA C/C++ on Jetson nano (Single-board computer with GPU), but I am puzzled by the inexplicable memory usage when executing CUFFT.ifft(). I have confirmed that the memory usage of the Ju…

---

## [Abstract vector-multiplier type](https://discourse.julialang.org/t/abstract-vector-multiplier-type/82119)

<div class="topic-metadata">

**Author:** [@EdTi](https://discourse.julialang.org/u/EdTi)\
**Replies:** 4\
**Last updated:** [June 2, 2022, 11:54am UTC](https://discourse.julialang.org/t/abstract-vector-multiplier-type/82119 "2022-06-02T11:54:57Z")

</div>

Hello everyone, I’m implementing a linear map. This operator basically applies three matrices one after the other, to a vector. Example : you have an SPD matrix A, and you have L its incomplete Cholesky factor, and I wa…

---

## [Does anybody wanna help me make a Hypernetworks package?](https://discourse.julialang.org/t/does-anybody-wanna-help-me-make-a-hypernetworks-package/82093)

<div class="topic-metadata">

**Author:** [@afishy](https://discourse.julialang.org/u/afishy)\
**Replies:** 0\
**Last updated:** [June 1, 2022, 11:06pm UTC](https://discourse.julialang.org/t/does-anybody-wanna-help-me-make-a-hypernetworks-package/82093 "2022-06-01T23:06:31Z")

</div>

Hypernetworks are an increasingly popular tool for several applications, including continual learning, generative modeling etc. Naively, I’d think it would be relatively easy to create a simple interface to create an arb…

---

## [Plot of transient heat conduction](https://discourse.julialang.org/t/plot-of-transient-heat-conduction/81860)

<div class="topic-metadata">

**Author:** [@raman\_kumar](https://discourse.julialang.org/u/raman_kumar)\
**Replies:** 2\
**Last updated:** [June 1, 2022, 8:45pm UTC](https://discourse.julialang.org/t/plot-of-transient-heat-conduction/81860 "2022-06-01T20:45:00Z")

</div>

using Plots Δt=0.0001;Δz=0.0001; m=100; l=100 t=zeros(l);z=zeros(l);θ=zeros(l,l) z\[1\]=0;z\[l\]=1;θ\[1,l\]=0;θ\[l,1\]=1; θ\[:,end\]=θ\[:,end-1\] p=plot(); for i in 2:l-1 ,n in 2:l-1 z\[i\]=i\*Δz f=1/(z\[i\]-1) θ\[n,i\]=round(θ\[n+…

---

## [Intermittent "WebIO not detected" after refreshing jupyter notebook (IJulia and PlotlyJS.jl)](https://discourse.julialang.org/t/intermittent-webio-not-detected-after-refreshing-jupyter-notebook-ijulia-and-plotlyjs-jl/82080)

<div class="topic-metadata">

**Author:** [@alicedb](https://discourse.julialang.org/u/alicedb)\
**Replies:** 0\
**Last updated:** [June 1, 2022, 7:51pm UTC](https://discourse.julialang.org/t/intermittent-webio-not-detected-after-refreshing-jupyter-notebook-ijulia-and-plotlyjs-jl/82080 "2022-06-01T19:51:27Z")

</div>

I have this weird problem where after refreshing the page in the browser where the jupyter notebook lives WebIO starts complaining about not being detected in certain situations, but is still detected in others. I don’t …

---

## [JuMP broadcasting in @constraint involving expressions throws error](https://discourse.julialang.org/t/jump-broadcasting-in-constraint-involving-expressions-throws-error/82044)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 1\
**Last updated:** [June 1, 2022, 7:48pm UTC](https://discourse.julialang.org/t/jump-broadcasting-in-constraint-involving-expressions-throws-error/82044 "2022-06-01T19:48:46Z")

</div>

An example is given below. using JuMP model = JuMP.Model() @expression(model, x, zeros(AffExpr, 1, 4)) @expression(model, y, zeros(AffExpr, 2, 4)) @constraint(model, y .\>= x) # A: OK @constraint(model, x .\<= y) # B: …

---

## ["stack order" in Gadfly histogram](https://discourse.julialang.org/t/stack-order-in-gadfly-histogram/82065)

<div class="topic-metadata">

**Author:** [@Brinkhuis](https://discourse.julialang.org/u/Brinkhuis)\
**Replies:** 0\
**Last updated:** [June 1, 2022, 5:03pm UTC](https://discourse.julialang.org/t/stack-order-in-gadfly-histogram/82065 "2022-06-01T17:03:23Z")

</div>

When plotting a “stacked histogram”, I would like the “stack order” to be the same as the legend order - Fair (first / bottom) and Ideal (last / top) - so that the colors are in order from light to dark. Like in this exa…

---

## [OpenGL rendering with CUDA](https://discourse.julialang.org/t/opengl-rendering-with-cuda/82063)

<div class="topic-metadata">

**Author:** [@Lads-oxygen](https://discourse.julialang.org/u/Lads-oxygen)\
**Replies:** 2\
**Last updated:** [June 1, 2022, 5:05pm UTC](https://discourse.julialang.org/t/opengl-rendering-with-cuda/82063 "2022-06-01T17:05:48Z")

</div>

I am currently working on a personal project on fractals to be specific, and have used CUDA to implement the computational aspect for a number of reasons. I haven’t optimised my kernel yet, although it runs fast enough f…

---

## [How to run noisy circuits in \`Yao.jl\`](https://discourse.julialang.org/t/how-to-run-noisy-circuits-in-yao-jl/81775)

<div class="topic-metadata">

**Author:** [@jlbosse](https://discourse.julialang.org/u/jlbosse)\
**Replies:** 6\
**Last updated:** [June 1, 2022, 4:53pm UTC](https://discourse.julialang.org/t/how-to-run-noisy-circuits-in-yao-jl/81775 "2022-06-01T16:53:04Z")

</div>

I want to run simulations of noisy circuits (e.g. with a random Pauli error \[I, X, Y, Z\] with weights \[1-3p, p, p, p\] after each gate) in Yao.jl. My first thought was to use full density matrix simulations, but it seems…

---

## [Grid layouts stopped working with 3D Axis](https://discourse.julialang.org/t/grid-layouts-stopped-working-with-3d-axis/82059)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 7\
**Last updated:** [June 1, 2022, 4:02pm UTC](https://discourse.julialang.org/t/grid-layouts-stopped-working-with-3d-axis/82059 "2022-06-01T16:02:12Z")

</div>

This grid layout code used to work in 2D and 3D: using Meshes, MeshViz import CairoMakie as Mke # define a cube in R^3 points = Point3\[(0,0,0),(1,0,0),(1,1,0),(0,1,0),(0,0,1),(1,0,1),(1,1,1),(0,1,1)\] connec = connect.(…

---

## [FigShare's API](https://discourse.julialang.org/t/figshares-api/81987)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 6\
**Last updated:** [June 1, 2022, 12:55pm UTC](https://discourse.julialang.org/t/figshares-api/81987 "2022-06-01T12:55:39Z")

</div>

Depending on how easy it is, I would like to programmatically upload data to FigShare using their API. They have a Jupyter notebook showing how to do so here. It looks like they stream the data in chunks. Has anyone tri…

---

## [ModelingToolkit.jl trows error: statement is ambigous](https://discourse.julialang.org/t/modelingtoolkit-jl-trows-error-statement-is-ambigous/82045)

<div class="topic-metadata">

**Author:** [@Davide\_Degavi](https://discourse.julialang.org/u/Davide_Degavi)\
**Replies:** 3\
**Last updated:** [June 1, 2022, 11:56am UTC](https://discourse.julialang.org/t/modelingtoolkit-jl-trows-error-statement-is-ambigous/82045 "2022-06-01T11:56:25Z")

</div>

Hi everyone, I’m new to Julia so maybe the problem that I’ve anecountered is preatty trivial. Basically I have two main problem with the simple symbolic equation expressing the kinetic energy of a rigid body satellite. …

---

## [CUDA arrays not working well with broadcast!(), and other in-place operations inside a loop](https://discourse.julialang.org/t/cuda-arrays-not-working-well-with-broadcast-and-other-in-place-operations-inside-a-loop/81965)

<div class="topic-metadata">

**Author:** [@ayushinav](https://discourse.julialang.org/u/ayushinav)\
**Replies:** 4\
**Last updated:** [June 1, 2022, 10:56am UTC](https://discourse.julialang.org/t/cuda-arrays-not-working-well-with-broadcast-and-other-in-place-operations-inside-a-loop/81965 "2022-06-01T10:56:23Z")

</div>

Hey guys, I was working on using GPUs for my codes, and came across this unusual anomaly. I am using Flux.jl along with CUDA.jl. Let’s define the variables first: rickfg= fill(0 .+ im\*0., nf, 1, 1, 1, 1, 1) |\>gpu; # F…

---

## [Makie boxplot: stroke lines for boxes?](https://discourse.julialang.org/t/makie-boxplot-stroke-lines-for-boxes/81908)

<div class="topic-metadata">

**Author:** [@davide](https://discourse.julialang.org/u/davide)\
**Replies:** 2\
**Last updated:** [June 1, 2022, 7:59am UTC](https://discourse.julialang.org/t/makie-boxplot-stroke-lines-for-boxes/81908 "2022-06-01T07:59:44Z")

</div>

Hi, I would like to draw a boxplot with no fill color and just lines to define the box contour. I am trying: using GLMakie xs = rand(1:3, 99) ys = randn(99) boxplot(xs, ys, color = :transparent, strokewidth = 1) Th…

---

## [Performance of keeping a model "reference"](https://discourse.julialang.org/t/performance-of-keeping-a-model-reference/81903)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 2\
**Last updated:** [June 1, 2022, 7:39am UTC](https://discourse.julialang.org/t/performance-of-keeping-a-model-reference/81903 "2022-06-01T07:39:23Z")

</div>

I have asked about the related idea behind my problem over here, but since no conclusion could be drawn, I’ve constructed a little test. That’s where things got weird - I am unsure why the result looks the way they do, a…

---

## [Gadfly: how to add bar spacing to stacked plot without shifting off center?](https://discourse.julialang.org/t/gadfly-how-to-add-bar-spacing-to-stacked-plot-without-shifting-off-center/62148)

<div class="topic-metadata">

**Author:** [@alrichar112](https://discourse.julialang.org/u/alrichar112)\
**Replies:** 1\
**Last updated:** [June 1, 2022, 7:26am UTC](https://discourse.julialang.org/t/gadfly-how-to-add-bar-spacing-to-stacked-plot-without-shifting-off-center/62148 "2022-06-01T07:26:20Z")

</div>

I’m having trouble adding bar spacing to a stacked plot, as it is shifting the bars off center. dfsample = CSV.read("dfsample.csv", DataFrame) p = plot(dfsample, x=:Percent, y=:LessonName, color=:PassType, …

---

## [Help me pin this bug in \`Flux\`…](https://discourse.julialang.org/t/help-me-pin-this-bug-in-flux/81901)

<div class="topic-metadata">

**Author:** [@Jollywatt](https://discourse.julialang.org/u/Jollywatt)\
**Replies:** 2\
**Last updated:** [May 31, 2022, 10:34pm UTC](https://discourse.julialang.org/t/help-me-pin-this-bug-in-flux/81901 "2022-05-31T22:34:15Z")

</div>

On Julia 1.6.5 and 1.7.2, the following code gives a method error: using Flux # v0.13.0 x = Flux.onehotbatch(\[1, 2\], 0:9) # x = float.(x) ### model = zeros() Flux.gradient(Flux.params(model)) do y = x y = reshape(…

---

## [Is there a way to bring the range of a summation back from an array?](https://discourse.julialang.org/t/is-there-a-way-to-bring-the-range-of-a-summation-back-from-an-array/81937)

<div class="topic-metadata">

**Author:** [@vicentemunozlh](https://discourse.julialang.org/u/vicentemunozlh)\
**Replies:** 7\
**Last updated:** [May 31, 2022, 9:24pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-bring-the-range-of-a-summation-back-from-an-array/81937 "2022-05-31T21:24:10Z")

</div>

Hello, I am new to Julia and trying to model a relatively complicated optimization problem from other lenguage(GAMS). I am stuck in trying to apply a summation in a constraint and its depndence index to be in a range pr…

---

## [Error when trying to dynamically change \`tstops\` during \`solve\`](https://discourse.julialang.org/t/error-when-trying-to-dynamically-change-tstops-during-solve/81999)

<div class="topic-metadata">

**Author:** [@InPhyT](https://discourse.julialang.org/u/InPhyT)\
**Replies:** 2\
**Last updated:** [May 31, 2022, 3:46pm UTC](https://discourse.julialang.org/t/error-when-trying-to-dynamically-change-tstops-during-solve/81999 "2022-05-31T15:46:22Z")

</div>

Hello, I’m modeling a simple integrate and fire neuron that takes spike width into account by suspending the integration (and thus ignoring the input current) for a few milliseconds after a spike has been elicited. Let’…

---

## [How to link axes on a 3D and a 2D plot?](https://discourse.julialang.org/t/how-to-link-axes-on-a-3d-and-a-2d-plot/81992)

<div class="topic-metadata">

**Author:** [@ctrebbau](https://discourse.julialang.org/u/ctrebbau)\
**Replies:** 0\
**Last updated:** [May 31, 2022, 1:48pm UTC](https://discourse.julialang.org/t/how-to-link-axes-on-a-3d-and-a-2d-plot/81992 "2022-05-31T13:48:09Z")

</div>

I have a side-by-side plot like this: and I wish to be able to link up the two common axes by I get a type error with linkxaxis! Am using GLMakie Any suggestions?

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

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