# Specific Domains

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

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

**Page:** 212

---

## [There could be better error messages for @constraints macro](https://discourse.julialang.org/t/there-could-be-better-error-messages-for-constraints-macro/95293)

<div class="topic-metadata">

**Author:** [@Charlie\_Ruppe](https://discourse.julialang.org/u/Charlie_Ruppe)\
**Replies:** 7\
**Last updated:** [March 1, 2023, 2:43am UTC](https://discourse.julialang.org/t/there-could-be-better-error-messages-for-constraints-macro/95293 "2023-03-01T02:43:21Z")

</div>

I believe it would be good to add to the error messages for the @constraints macro, to draw attention to the fact that a valid input for @constraint is not a valid input for @constraints. This is a mistake that is easy t…

---

## [Searching for words: @model xxx(n) vs model = xxx(17)](https://discourse.julialang.org/t/searching-for-words-model-xxx-n-vs-model-xxx-17/95230)

<div class="topic-metadata">

**Author:** [@zenon](https://discourse.julialang.org/u/zenon)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 9:05pm UTC](https://discourse.julialang.org/t/searching-for-words-model-xxx-n-vs-model-xxx-17/95230 "2023-02-28T21:05:06Z")

</div>

In Turing, we have one thing called model, the thing constructed with the @model macro. Like @model myModel(X; n = 1) m ~ Normal(100.0, 5.0) s ~ Exponential(1.0) X ~ filldist(Normal(m, s), n) end But then,…

---

## [Multi output Gaussian Process package?](https://discourse.julialang.org/t/multi-output-gaussian-process-package/95335)

<div class="topic-metadata">

**Author:** [@lsablon](https://discourse.julialang.org/u/lsablon)\
**Replies:** 3\
**Last updated:** [February 28, 2023, 4:00pm UTC](https://discourse.julialang.org/t/multi-output-gaussian-process-package/95335 "2023-02-28T16:00:54Z")

</div>

Hello, I am attempting to predict temperatures on a grid using a small dataset. Based on my research, I believe that Gaussian Processes would be the most effective approach. However, I am having trouble finding a packag…

---

## [How to change default color theme in Makie?](https://discourse.julialang.org/t/how-to-change-default-color-theme-in-makie/95251)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 3:54pm UTC](https://discourse.julialang.org/t/how-to-change-default-color-theme-in-makie/95251 "2023-02-28T15:54:44Z")

</div>

:frowning: tried belows, but no one works. using CairoMakie, LaTeXStrings set\_theme!(color = :blue) set\_theme!(colors = :darktest) set\_theme!(colormap = :Hiroshige) # https://docs.makie.org/stable/api/index.html#Makie …

---

## [How to solve PDAEs (incorporate mass matrix into PDE solver)](https://discourse.julialang.org/t/how-to-solve-pdaes-incorporate-mass-matrix-into-pde-solver/95301)

<div class="topic-metadata">

**Author:** [@anh](https://discourse.julialang.org/u/anh)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 1:23pm UTC](https://discourse.julialang.org/t/how-to-solve-pdaes-incorporate-mass-matrix-into-pde-solver/95301 "2023-02-28T13:23:21Z")

</div>

I am trying to solve a system of 1st order linear partial differential equations with a constraint on two out of three of my dependent variables (to enforce population conservation). I am familiar with DAEs and the asso…

---

## [PackageCompiler.jl doesn't work in Docker when compiling HTTP.jl](https://discourse.julialang.org/t/packagecompiler-jl-doesnt-work-in-docker-when-compiling-http-jl/95329)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 2\
**Last updated:** [February 28, 2023, 1:11pm UTC](https://discourse.julialang.org/t/packagecompiler-jl-doesnt-work-in-docker-when-compiling-http-jl/95329 "2023-02-28T13:11:13Z")

</div>

LoadError: could not find a compiler, looked for gcc and clang when I try to compile HTTP.jl using Pkg; Pkg.add("HTTP") Pkg.add("PackageCompiler") using PackageCompiler create\_sysimage(\["HTTP"\]; sysimage\_path="/Example…

---

## [MTK: scaling of variables in plot](https://discourse.julialang.org/t/mtk-scaling-of-variables-in-plot/94303)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [February 28, 2023, 12:41pm UTC](https://discourse.julialang.org/t/mtk-scaling-of-variables-in-plot/94303 "2023-02-28T12:41:28Z")

</div>

Suppose the solution sol from simulating an MTK model contains state x and observable variable y. I can then plot x with either of the following commands: plot(sol, idxs = x) # or plot(sol, idxs = \[x\]) If I want to pl…

---

## [Reports of Sundials' Death are Greatly Exaggerated?](https://discourse.julialang.org/t/reports-of-sundials-death-are-greatly-exaggerated/95286)

<div class="topic-metadata">

**Author:** [@anodos](https://discourse.julialang.org/u/anodos)\
**Replies:** 6\
**Last updated:** [February 28, 2023, 10:17am UTC](https://discourse.julialang.org/t/reports-of-sundials-death-are-greatly-exaggerated/95286 "2023-02-28T10:17:07Z")

</div>

Apologies for the tongue-in-cheek title. According to this discussion, native QNDF julia solvers now consistently outperform CVODE\_BDF on the test suite. However, my experience solving reasonably stiff sets of ~100’s…

---

## [Offline HTML plot](https://discourse.julialang.org/t/offline-html-plot/93609)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 5\
**Last updated:** [February 28, 2023, 8:05am UTC](https://discourse.julialang.org/t/offline-html-plot/93609 "2023-02-28T08:05:36Z")

</div>

Interactive HTML-plots are one of the nice features of plotly / plotlyJS but the standard HTML-output does not include a script tag containing the plotly.js source code (~3MB). In python this can be achieved via: fig.wr…

---

## [Deleting a container of constraints](https://discourse.julialang.org/t/deleting-a-container-of-constraints/95257)

<div class="topic-metadata">

**Author:** [@A\_M](https://discourse.julialang.org/u/A_M)\
**Replies:** 3\
**Last updated:** [February 27, 2023, 11:10pm UTC](https://discourse.julialang.org/t/deleting-a-container-of-constraints/95257 "2023-02-27T23:10:08Z")

</div>

I am trying to remove a container of constraints after solving it to add a new set of constraints before resolving it: @constraint(model, A\[s=1:n\], x\[s\] == y\[s\]) I tried for s in 1:n delete(model, A\[s\]) end or del…

---

## [Error when constraining variable to be Hermitian PSD](https://discourse.julialang.org/t/error-when-constraining-variable-to-be-hermitian-psd/95223)

<div class="topic-metadata">

**Author:** [@araujoms](https://discourse.julialang.org/u/araujoms)\
**Replies:** 12\
**Last updated:** [February 27, 2023, 10:50pm UTC](https://discourse.julialang.org/t/error-when-constraining-variable-to-be-hermitian-psd/95223 "2023-02-27T22:50:41Z")

</div>

I’m writing an SDP for a traditional problem in quantum information, state discrimination. When I constrain the variables to real symmetric, it works. But the problem really needs them to be complex Hermitian. The code i…

---

## [Naming variable bound and integrality constraints in Jump](https://discourse.julialang.org/t/naming-variable-bound-and-integrality-constraints-in-jump/95270)

<div class="topic-metadata">

**Author:** [@Di11on](https://discourse.julialang.org/u/Di11on)\
**Replies:** 2\
**Last updated:** [February 27, 2023, 7:03pm UTC](https://discourse.julialang.org/t/naming-variable-bound-and-integrality-constraints-in-jump/95270 "2023-02-27T19:03:12Z")

</div>

Diagnosing an infeasible model can be tricky. Sometimes solvers provide useful information like conflict reports and the constraints involved in the infeasibility - for these to be useful, we have to be able to relate th…

---

## [JuMP Support for solver specific methods to create fixed MIP](https://discourse.julialang.org/t/jump-support-for-solver-specific-methods-to-create-fixed-mip/94775)

<div class="topic-metadata">

**Author:** [@Di11on](https://discourse.julialang.org/u/Di11on)\
**Replies:** 5\
**Last updated:** [February 27, 2023, 6:56pm UTC](https://discourse.julialang.org/t/jump-support-for-solver-specific-methods-to-create-fixed-mip/94775 "2023-02-27T18:56:14Z")

</div>

It seems that a very common requirement is to get duals from a MIP problem. The traditional way of doing this is to relax the integer variables in the problem and fix them to their MIP solution and obtain the duals from …

---

## [CuPy CuFFT ~2x faster than CUDA.jl CuFFT](https://discourse.julialang.org/t/cupy-cufft-2x-faster-than-cuda-jl-cufft/89151)

<div class="topic-metadata">

**Author:** [@Dreycen\_Foiles](https://discourse.julialang.org/u/Dreycen_Foiles)\
**Replies:** 15\
**Last updated:** [February 27, 2023, 6:42pm UTC](https://discourse.julialang.org/t/cupy-cufft-2x-faster-than-cuda-jl-cufft/89151 "2023-02-27T18:42:31Z")

</div>

I am working on a simulation whose bottleneck is lots of FFT-based convolutions performed on the GPU. I wanted to see how FFT’s from CUDA.jl would compare with one of bigger Python GPU libraries CuPy. I was surprised to …

---

## [\[FluxML + Functors\] How to walk the model and ∇model simultaneously?](https://discourse.julialang.org/t/fluxml-functors-how-to-walk-the-model-and-model-simultaneously/95170)

<div class="topic-metadata">

**Author:** [@mariusd](https://discourse.julialang.org/u/mariusd)\
**Replies:** 7\
**Last updated:** [February 27, 2023, 12:51pm UTC](https://discourse.julialang.org/t/fluxml-functors-how-to-walk-the-model-and-model-simultaneously/95170 "2023-02-27T12:51:53Z")

</div>

The following two lines of code are commonly used when training a model in Julia. ∇model = gradient(m → loss(m, x, y), model)\[1\] opt\_state, model = Optimisers.update!(opt\_state, model, ∇model) For debugging purspose…

---

## [JuMP Empty Constraint when using SumOfSquares](https://discourse.julialang.org/t/jump-empty-constraint-when-using-sumofsquares/95208)

<div class="topic-metadata">

**Author:** [@Kevin\_Shu](https://discourse.julialang.org/u/Kevin_Shu)\
**Replies:** 5\
**Last updated:** [February 27, 2023, 9:49am UTC](https://discourse.julialang.org/t/jump-empty-constraint-when-using-sumofsquares/95208 "2023-02-27T09:49:29Z")

</div>

Hello, I’m trying to find some sum of squares representation for some polynomials, but I have been receiving some errors. Here is a shortened version of this code that gives this error: using TypedPolynomials using Co…

---

## [How to formulate the following constraints in JuMP](https://discourse.julialang.org/t/how-to-formulate-the-following-constraints-in-jump/95182)

<div class="topic-metadata">

**Author:** [@kevinqiao](https://discourse.julialang.org/u/kevinqiao)\
**Replies:** 4\
**Last updated:** [February 27, 2023, 2:37am UTC](https://discourse.julialang.org/t/how-to-formulate-the-following-constraints-in-jump/95182 "2023-02-27T02:37:05Z")

</div>

I have a following constraint \\left\\| \\begin{array}{c} x\\\\ y\\\\ \\end{array} \\right\\| \_2\\leqslant z \\;\\;\\;\\;\\;\\;\\;\\;\\;\\;\\;\\;\\;\\;\\;\\;\\;\\;(1) where x, y, and z are all non-negative variables, it’s said that (1) is a SO…

---

## [Plotting multiple equal-sized heatmaps from 3D array](https://discourse.julialang.org/t/plotting-multiple-equal-sized-heatmaps-from-3d-array/94973)

<div class="topic-metadata">

**Author:** [@apateonas](https://discourse.julialang.org/u/apateonas)\
**Replies:** 1\
**Last updated:** [February 27, 2023, 1:14am UTC](https://discourse.julialang.org/t/plotting-multiple-equal-sized-heatmaps-from-3d-array/94973 "2023-02-27T01:14:02Z")

</div>

H all, I have a 3D array I would like to visualize as a series of heatmaps, one for each slice. I would like each heatmap to be a square. I am having trouble with sizing the subplots. I do not know ahead of time how lar…

---

## [DifferentialEquations extracting coefficients of dense interpolant](https://discourse.julialang.org/t/differentialequations-extracting-coefficients-of-dense-interpolant/93365)

<div class="topic-metadata">

**Author:** [@Bernard\_GODARD](https://discourse.julialang.org/u/Bernard_GODARD)\
**Replies:** 9\
**Last updated:** [February 26, 2023, 7:51pm UTC](https://discourse.julialang.org/t/differentialequations-extracting-coefficients-of-dense-interpolant/93365 "2023-02-26T19:51:16Z")

</div>

From the solution of a differential equation using Vern6, Vern7, Vern8 or Vern9, how can I extract the dense interpolant polynomial coefficients? Of course I could evaluate the polynomial on a grid of size order+1 insi…

---

## [JuMP Multi-threading example](https://discourse.julialang.org/t/jump-multi-threading-example/95210)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 2\
**Last updated:** [February 26, 2023, 12:22am UTC](https://discourse.julialang.org/t/jump-multi-threading-example/95210 "2023-02-26T00:22:02Z")

</div>

In this JuMP example of multi-threading, why does the vector of solutions have 8 elements, while the for loop size is 10?

---

## [CliqueNet and backward connection neural network](https://discourse.julialang.org/t/cliquenet-and-backward-connection-neural-network/95186)

<div class="topic-metadata">

**Author:** [@bienpierre](https://discourse.julialang.org/u/bienpierre)\
**Replies:** 1\
**Last updated:** [February 25, 2023, 4:15pm UTC](https://discourse.julialang.org/t/cliquenet-and-backward-connection-neural-network/95186 "2023-02-25T16:15:05Z")

</div>

Hello, I would like to implement the CliquetNet neural networks with fully connected dense with Flux: The network has some backward connection, I do not know the best way to implement the connection from the Flux.Ski…

---

## [Selecting a specific cycle to perform operation during a callback](https://discourse.julialang.org/t/selecting-a-specific-cycle-to-perform-operation-during-a-callback/94804)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [February 25, 2023, 3:33pm UTC](https://discourse.julialang.org/t/selecting-a-specific-cycle-to-perform-operation-during-a-callback/94804 "2023-02-25T15:33:03Z")

</div>

Hi all, Below is a simple example of me performing a Kalman filtration on 3 periodic cycles of a model. We generate data for all 3 cycles and perform a Kalman filtration forcing the time step and utilising the integrato…

---

## [What is the difference between the two methods of lm on GLM.jl](https://discourse.julialang.org/t/what-is-the-difference-between-the-two-methods-of-lm-on-glm-jl/95140)

<div class="topic-metadata">

**Author:** [@dpabon](https://discourse.julialang.org/u/dpabon)\
**Replies:** 2\
**Last updated:** [February 25, 2023, 3:00pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-the-two-methods-of-lm-on-glm-jl/95140 "2023-02-25T15:00:17Z")

</div>

The application of each one of the methods produced a different result: using DataFrames using GLM new\_x = rand(100,3) new\_y = rand(100) GLM.lm(new\_x, new\_y) Produce: LinearModel{GLM.LmResp{Vector{Float64}}, GLM.Den…

---

## [Forecasting with LSTM + MLJ How to ? (A detailed guide or tutorial is needed)](https://discourse.julialang.org/t/forecasting-with-lstm-mlj-how-to-a-detailed-guide-or-tutorial-is-needed/94835)

<div class="topic-metadata">

**Author:** [@huqedato](https://discourse.julialang.org/u/huqedato)\
**Replies:** 1\
**Last updated:** [February 25, 2023, 2:35pm UTC](https://discourse.julialang.org/t/forecasting-with-lstm-mlj-how-to-a-detailed-guide-or-tutorial-is-needed/94835 "2023-02-25T14:35:08Z")

</div>

For a future task/project (starting this late spring) we will be required to create and deploy a network for predictive analysis on a large time-series dataset with multiple complex features. The tools of work (set by m…

---

## [How to differentiate through the ODE solver (Discretize-then-Optimize)?](https://discourse.julialang.org/t/how-to-differentiate-through-the-ode-solver-discretize-then-optimize/95178)

<div class="topic-metadata">

**Author:** [@kcqpo](https://discourse.julialang.org/u/kcqpo)\
**Replies:** 1\
**Last updated:** [February 25, 2023, 10:01am UTC](https://discourse.julialang.org/t/how-to-differentiate-through-the-ode-solver-discretize-then-optimize/95178 "2023-02-25T10:01:08Z")

</div>

Does anyone know how to differentiate through the solver? I wanted to try to implement this technique over here Opening the Blackbox: Accelerating Neural Differential Equations by Regularizing Internal Solver Heuristics.…

---

## [Order of parameters in a vector differential equation function](https://discourse.julialang.org/t/order-of-parameters-in-a-vector-differential-equation-function/95114)

<div class="topic-metadata">

**Author:** [@shaurya](https://discourse.julialang.org/u/shaurya)\
**Replies:** 6\
**Last updated:** [February 25, 2023, 1:02am UTC](https://discourse.julialang.org/t/order-of-parameters-in-a-vector-differential-equation-function/95114 "2023-02-25T01:02:22Z")

</div>

What is the correct format for a differential equation function? My understanding is that when the function doesn’t take any parameters, it should be like the following: function F!(t,dx,x) dx.=\[x\[1\]+x\[2\];x\[2\]\]; end…

---

## [Suggestion for homepage of https://juliastats.org/](https://discourse.julialang.org/t/suggestion-for-homepage-of-https-juliastats-org/94948)

<div class="topic-metadata">

**Author:** [@ForestRaven](https://discourse.julialang.org/u/ForestRaven)\
**Replies:** 3\
**Last updated:** [February 25, 2023, 12:04am UTC](https://discourse.julialang.org/t/suggestion-for-homepage-of-https-juliastats-org/94948 "2023-02-25T00:04:00Z")

</div>

Hi, Looking for ressources on statistics with Julia, I came across https://juliastats.org/. As a Julia noob, I expected the links on the main page to redirect to the documentation of each package. Instead, it points to…

---

## [I am noob, how do I keep the HTTP server running if I want to start it from the command line?](https://discourse.julialang.org/t/i-am-noob-how-do-i-keep-the-http-server-running-if-i-want-to-start-it-from-the-command-line/95136)

<div class="topic-metadata">

**Author:** [@xiaodai](https://discourse.julialang.org/u/xiaodai)\
**Replies:** 6\
**Last updated:** [February 24, 2023, 9:47pm UTC](https://discourse.julialang.org/t/i-am-noob-how-do-i-keep-the-http-server-running-if-i-want-to-start-it-from-the-command-line/95136 "2023-02-24T21:47:01Z")

</div>

I have a very simple HTTP server that I want to run server.jl using Pkg Pkg.add("HTTP") using HTTP # if false ENV\["PORT"\] = "8080" # end print(ENV\["PORT"\]) const PORT = parse…

---

## [How to run Juniper.jl concurrently](https://discourse.julialang.org/t/how-to-run-juniper-jl-concurrently/75275)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 5\
**Last updated:** [February 24, 2023, 5:20pm UTC](https://discourse.julialang.org/t/how-to-run-juniper-jl-concurrently/75275 "2023-02-24T17:20:49Z")

</div>

Hi, is there a way to run Juniper concurrently ? Thanks, Manoj

---

## [Data exchange between Julia sessions (same or different machines)](https://discourse.julialang.org/t/data-exchange-between-julia-sessions-same-or-different-machines/38157)

<div class="topic-metadata">

**Author:** [@martincornejo](https://discourse.julialang.org/u/martincornejo)\
**Replies:** 10\
**Last updated:** [February 24, 2023, 4:04pm UTC](https://discourse.julialang.org/t/data-exchange-between-julia-sessions-same-or-different-machines/38157 "2023-02-24T16:04:35Z")

</div>

Julia is great for implementing distributed computing. I was wondering how could it be possible to take a decentralized approach to this distributed computing. Instead of calling workers from a Julia (master) session (fo…

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

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