# Specific Domains

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

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

**Page:** 186

---

## [Error due to Dirichlet prior in Turing?](https://discourse.julialang.org/t/error-due-to-dirichlet-prior-in-turing/100244)

<div class="topic-metadata">

**Author:** [@JanG](https://discourse.julialang.org/u/JanG)\
**Replies:** 9\
**Last updated:** [June 16, 2023, 11:56am UTC](https://discourse.julialang.org/t/error-due-to-dirichlet-prior-in-turing/100244 "2023-06-16T11:56:49Z")

</div>

Hi, This model below crashes for me with the error message LoadError: DomainError with Dual{ForwardDiff.Tag{Turing.TuringTag, Float64}}(NaN,NaN,NaN): Bernoulli: the condition zero(p) \<= p \<= one(p) is not satisfied. us…

---

## [Makie - save specific axis only](https://discourse.julialang.org/t/makie-save-specific-axis-only/65962)

<div class="topic-metadata">

**Author:** [@keithjlee](https://discourse.julialang.org/u/keithjlee)\
**Replies:** 2\
**Last updated:** [June 16, 2023, 8:16am UTC](https://discourse.julialang.org/t/makie-save-specific-axis-only/65962 "2023-06-16T08:16:26Z")

</div>

I have a plotting function that allows for a bit of interactivity, but I’d like to be able to exclude the toggles/sliders when I’m saving the figure, which is an LScene() type in position \[1,1\] of my GridLayout. I wo…

---

## [What is the best machine learning framework in Julia that works with Metal.jl?](https://discourse.julialang.org/t/what-is-the-best-machine-learning-framework-in-julia-that-works-with-metal-jl/100351)

<div class="topic-metadata">

**Author:** [@janrpeters](https://discourse.julialang.org/u/janrpeters)\
**Replies:** 2\
**Last updated:** [June 16, 2023, 6:53am UTC](https://discourse.julialang.org/t/what-is-the-best-machine-learning-framework-in-julia-that-works-with-metal-jl/100351 "2023-06-16T06:53:57Z")

</div>

What is the best machine learning framework in Julia that works with Metal.jl?

---

## [Modify position of axis labels in a PGFPlotsX created with plot()](https://discourse.julialang.org/t/modify-position-of-axis-labels-in-a-pgfplotsx-created-with-plot/100425)

<div class="topic-metadata">

**Author:** [@andresdrenik](https://discourse.julialang.org/u/andresdrenik)\
**Replies:** 0\
**Last updated:** [June 15, 2023, 10:41pm UTC](https://discourse.julialang.org/t/modify-position-of-axis-labels-in-a-pgfplotsx-created-with-plot/100425 "2023-06-15T22:41:19Z")

</div>

Hi, I’m creating the attached figure with pgfplotsx() p1 = plot(𝕊.Ŵ,𝕊.Ĵ, label = "Efficiency", color = 3, linestyle=:dash, legend = :topright, xguide = L"\\hat{W}(\\hat{w})", yguide = L"\\hat{J}(\\hat{w})") #, xguidefontval…

---

## [How to display all minorticks in logscale if axis limit span is too small in Makie?](https://discourse.julialang.org/t/how-to-display-all-minorticks-in-logscale-if-axis-limit-span-is-too-small-in-makie/100403)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 1\
**Last updated:** [June 15, 2023, 6:20pm UTC](https://discourse.julialang.org/t/how-to-display-all-minorticks-in-logscale-if-axis-limit-span-is-too-small-in-makie/100403 "2023-06-15T18:20:56Z")

</div>

Sometimes when I use log10 as the axis scale and IntervalsBetween(9) as the minorticks, if the data range is not large enough such that less than two majorticks are displayed, all the minorticks are missing. For example,…

---

## [Worker terminated in parallel computation with Gurobi](https://discourse.julialang.org/t/worker-terminated-in-parallel-computation-with-gurobi/100273)

<div class="topic-metadata">

**Author:** [@umbe](https://discourse.julialang.org/u/umbe)\
**Replies:** 5\
**Last updated:** [June 15, 2023, 6:12pm UTC](https://discourse.julialang.org/t/worker-terminated-in-parallel-computation-with-gurobi/100273 "2023-06-15T18:12:25Z")

</div>

Hello to everyone, I am trying to execute in parallel multiple optimizations with Gurobi inside a genetic algorithm written by myself. The code is very long and structured in many parts, here I report the conceptual st…

---

## [Eating the cake (nat res depletion model) with endogenous time horizon in InfiniteOpt](https://discourse.julialang.org/t/eating-the-cake-nat-res-depletion-model-with-endogenous-time-horizon-in-infiniteopt/100235)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 5\
**Last updated:** [June 14, 2023, 1:59pm UTC](https://discourse.julialang.org/t/eating-the-cake-nat-res-depletion-model-with-endogenous-time-horizon-in-infiniteopt/100235 "2023-06-14T13:59:50Z")

</div>

Hello, I am trying to numerically solve the dynamic problem of optimal natural resource depletion (aka “eating the cake”) with InfiniteOpt.jl. The script below works fine, but for the time horizon (i.e. the upper bound …

---

## [Is there a way to impose a constraint on the output of a Flux neural network model?](https://discourse.julialang.org/t/is-there-a-way-to-impose-a-constraint-on-the-output-of-a-flux-neural-network-model/100250)

<div class="topic-metadata">

**Author:** [@schwob](https://discourse.julialang.org/u/schwob)\
**Replies:** 4\
**Last updated:** [June 15, 2023, 3:24pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-impose-a-constraint-on-the-output-of-a-flux-neural-network-model/100250 "2023-06-15T15:24:23Z")

</div>

Suppose that I have the observed data y\_i\\sim N(0,1/w(x\_i)), where x\_i=i for i=1,...,100. I define the true function w(x\_i)=(x\_i-50)^2 and hope to recover this function with a Flux neural network model. Let’s denote the…

---

## [JuMP + Baron](https://discourse.julialang.org/t/jump-baron/100401)

<div class="topic-metadata">

**Author:** [@selvi-aras](https://discourse.julialang.org/u/selvi-aras)\
**Replies:** 2\
**Last updated:** [June 15, 2023, 3:01pm UTC](https://discourse.julialang.org/t/jump-baron/100401 "2023-06-15T15:01:55Z")

</div>

Dear JuMP community, When I use Baron to solve a small-scale problem, I get an error of following form: =========================================================================== This BARON run may utilize the follow…

---

## [What is going on with the support for arrow-julia?](https://discourse.julialang.org/t/what-is-going-on-with-the-support-for-arrow-julia/100398)

<div class="topic-metadata">

**Author:** [@schaefer0](https://discourse.julialang.org/u/schaefer0)\
**Replies:** 4\
**Last updated:** [June 15, 2023, 2:19pm UTC](https://discourse.julialang.org/t/what-is-going-on-with-the-support-for-arrow-julia/100398 "2023-06-15T14:19:03Z")

</div>

Hi, Please help. the link to “full documentation” is broken at GitHub - apache/arrow-julia: Official Julia implementation of Apache Arrow the link to https://arrow.juliadata.org is broken the link to julia from the f…

---

## [How to add multiple condition for indices on constraints](https://discourse.julialang.org/t/how-to-add-multiple-condition-for-indices-on-constraints/100373)

<div class="topic-metadata">

**Author:** [@Pablo\_Flores](https://discourse.julialang.org/u/Pablo_Flores)\
**Replies:** 2\
**Last updated:** [June 15, 2023, 2:02pm UTC](https://discourse.julialang.org/t/how-to-add-multiple-condition-for-indices-on-constraints/100373 "2023-06-15T14:02:49Z")

</div>

Hello everyone, I’m having problems with my model when I try to add two conditions inside a constraint, where I try to define the constraint where an index cannot be equal to 2 values ​​from a set, and then create spec…

---

## [Solving a system of two equations with two variables with certain properties](https://discourse.julialang.org/t/solving-a-system-of-two-equations-with-two-variables-with-certain-properties/100240)

<div class="topic-metadata">

**Author:** [@Zerosum](https://discourse.julialang.org/u/Zerosum)\
**Replies:** 3\
**Last updated:** [June 15, 2023, 12:39pm UTC](https://discourse.julialang.org/t/solving-a-system-of-two-equations-with-two-variables-with-certain-properties/100240 "2023-06-15T12:39:44Z")

</div>

I wondered if there is any more robust and faster way to solve a system of two equations with two variables than the NLsolve package. The first equation is F(x,y)=0 and the second G(x,y)=0. Both of them are very complic…

---

## [Why Optim.jl does not allow for backwards mode autodifferentiation?](https://discourse.julialang.org/t/why-optim-jl-does-not-allow-for-backwards-mode-autodifferentiation/100346)

<div class="topic-metadata">

**Author:** [@Devetak](https://discourse.julialang.org/u/Devetak)\
**Replies:** 6\
**Last updated:** [June 15, 2023, 12:27pm UTC](https://discourse.julialang.org/t/why-optim-jl-does-not-allow-for-backwards-mode-autodifferentiation/100346 "2023-06-15T12:27:39Z")

</div>

I apologise if this is a silly question. Why Optim.jl does not allow for backwards mode autodifferentiation? If I understand things correctly backwards mode is better for the case when the output dimension is smaller th…

---

## [ITensor type definition for function input argument](https://discourse.julialang.org/t/itensor-type-definition-for-function-input-argument/100340)

<div class="topic-metadata">

**Author:** [@8me](https://discourse.julialang.org/u/8me)\
**Replies:** 3\
**Last updated:** [June 15, 2023, 10:18am UTC](https://discourse.julialang.org/t/itensor-type-definition-for-function-input-argument/100340 "2023-06-15T10:18:20Z")

</div>

I want to define a function which takes two ITensor of order 1 and dim 4 as input arguments. So my question would be, what is the suggested way of doing this …

---

## [(The future of) HTML Parsing in Julia](https://discourse.julialang.org/t/the-future-of-html-parsing-in-julia/100337)

<div class="topic-metadata">

**Author:** [@algunion](https://discourse.julialang.org/u/algunion)\
**Replies:** 3\
**Last updated:** [June 15, 2023, 3:41am UTC](https://discourse.julialang.org/t/the-future-of-html-parsing-in-julia/100337 "2023-06-15T03:41:07Z")

</div>

Hello world, I am writing this here hoping to find someone more knowledgeable than me on the Julia ecosystem around web / HTML. My context in a few words: I am working on a larger project that involves lots of HTML man…

---

## [Array issue with optimzing a function with quadgk](https://discourse.julialang.org/t/array-issue-with-optimzing-a-function-with-quadgk/41837)

<div class="topic-metadata">

**Author:** [@shoshievass](https://discourse.julialang.org/u/shoshievass)\
**Replies:** 12\
**Last updated:** [June 15, 2023, 3:07am UTC](https://discourse.julialang.org/t/array-issue-with-optimzing-a-function-with-quadgk/41837 "2023-06-15T03:07:44Z")

</div>

I’m trying to minimize a function that involves an integral, the integrand of which is one of the optimizing parameters. I can compute the function and get the gradient with Zygote, but I’m getting an odd conversion erro…

---

## [Lowpass with Hann window](https://discourse.julialang.org/t/lowpass-with-hann-window/100227)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 21\
**Last updated:** [June 15, 2023, 2:42am UTC](https://discourse.julialang.org/t/lowpass-with-hann-window/100227 "2023-06-15T02:42:38Z")

</div>

I’m not familiar with “signal processing” business. I’m from a different discipline. That means I’m not familiar with the jargon in Filters - filter design and filtering · DSP.jl . I need to apply simple lowpass filters…

---

## [Is there a Symbolics.jl interface to Ipopt (or similar)?](https://discourse.julialang.org/t/is-there-a-symbolics-jl-interface-to-ipopt-or-similar/100149)

<div class="topic-metadata">

**Author:** [@votroto](https://discourse.julialang.org/u/votroto)\
**Replies:** 17\
**Last updated:** [June 14, 2023, 10:49pm UTC](https://discourse.julialang.org/t/is-there-a-symbolics-jl-interface-to-ipopt-or-similar/100149 "2023-06-14T22:49:05Z")

</div>

Hello, is there an interface to Ipopt which can accept Symbolics functions? There is NLPModelsIpopt, which accepts NLPModels. Going via ADNLPModels seems unnecessary as Symbolics can already provide all the hessians, ja…

---

## [Optimizing an objective function with a vector containing constants, variables, and functions of variables using JuMP](https://discourse.julialang.org/t/optimizing-an-objective-function-with-a-vector-containing-constants-variables-and-functions-of-variables-using-jump/100366)

<div class="topic-metadata">

**Author:** [@Hyrum\_Hansen](https://discourse.julialang.org/u/Hyrum_Hansen)\
**Replies:** 3\
**Last updated:** [June 14, 2023, 9:42pm UTC](https://discourse.julialang.org/t/optimizing-an-objective-function-with-a-vector-containing-constants-variables-and-functions-of-variables-using-jump/100366 "2023-06-14T21:42:24Z")

</div>

I’m working on a set of optimization problems where I need to maximize something that looks a lot like a quadratic form but isn’t. The following example is one such problem: Maximize f^TAf where f = \[1, x, x^2\] and A i…

---

## [Plots.jl plot in Tk.jl canvas](https://discourse.julialang.org/t/plots-jl-plot-in-tk-jl-canvas/100362)

<div class="topic-metadata">

**Author:** [@AdamWysokinski](https://discourse.julialang.org/u/AdamWysokinski)\
**Replies:** 0\
**Last updated:** [June 14, 2023, 8:11pm UTC](https://discourse.julialang.org/t/plots-jl-plot-in-tk-jl-canvas/100362 "2023-06-14T20:11:00Z")

</div>

Hi, Is it possible to draw Plots.jl plot in the Tk.jl canvas? If so, could you please send me an example code? Thanks! Adam

---

## [Parallel Optimization with Surrogates.jl](https://discourse.julialang.org/t/parallel-optimization-with-surrogates-jl/93586)

<div class="topic-metadata">

**Author:** [@Dreycen\_Foiles](https://discourse.julialang.org/u/Dreycen_Foiles)\
**Replies:** 6\
**Last updated:** [June 14, 2023, 8:08pm UTC](https://discourse.julialang.org/t/parallel-optimization-with-surrogates-jl/93586 "2023-06-14T20:08:36Z")

</div>

I’m thinking about using Surrogates.jl to optimize a process in my lab using the Gaussian processes for Bayesian optimization. It’s easier for me to run multiple experiments at once, so I was wondering if it was possible…

---

## [Element by element wise multiplication and addition/subtraction of 3d matrices](https://discourse.julialang.org/t/element-by-element-wise-multiplication-and-addition-subtraction-of-3d-matrices/100178)

<div class="topic-metadata">

**Author:** [@smac](https://discourse.julialang.org/u/smac)\
**Replies:** 19\
**Last updated:** [June 14, 2023, 7:28pm UTC](https://discourse.julialang.org/t/element-by-element-wise-multiplication-and-addition-subtraction-of-3d-matrices/100178 "2023-06-14T19:28:40Z")

</div>

Hello, I’m new to Julia, with prior experience of fortran and Matlab. I have a 3d magnetohydrodynamics code which does all the time stepping + spatial derivatives using 3d matrices, with the operations carried out using…

---

## [Comparing the subsetted elements of a 3d matrix](https://discourse.julialang.org/t/comparing-the-subsetted-elements-of-a-3d-matrix/100355)

<div class="topic-metadata">

**Author:** [@smac](https://discourse.julialang.org/u/smac)\
**Replies:** 2\
**Last updated:** [June 14, 2023, 6:59pm UTC](https://discourse.julialang.org/t/comparing-the-subsetted-elements-of-a-3d-matrix/100355 "2023-06-14T18:59:59Z")

</div>

Hello, I originally posted this earlier today as part of an earlier question submitted to the community, but I think maybe it should be a “new” post. So I am cutting and pasting the most important parts of the message he…

---

## [Disable a particular simplification when using ModelingToolkit.jl](https://discourse.julialang.org/t/disable-a-particular-simplification-when-using-modelingtoolkit-jl/100344)

<div class="topic-metadata">

**Author:** [@Datseris](https://discourse.julialang.org/u/Datseris)\
**Replies:** 6\
**Last updated:** [June 14, 2023, 6:36pm UTC](https://discourse.julialang.org/t/disable-a-particular-simplification-when-using-modelingtoolkit-jl/100344 "2023-06-14T18:36:36Z")

</div>

I have a particular example, written minimally as: using ModelingToolkit @variables t # independent variable (time) dDt = Differential(t) # define an operator for the differentiation w.r.t. time const norma…

---

## [Bring Julia code to embedded hardware (ARM)](https://discourse.julialang.org/t/bring-julia-code-to-embedded-hardware-arm/19979)

<div class="topic-metadata">

**Author:** [@asprionj](https://discourse.julialang.org/u/asprionj)\
**Replies:** 92\
**Last updated:** [June 14, 2023, 4:38pm UTC](https://discourse.julialang.org/t/bring-julia-code-to-embedded-hardware-arm/19979 "2023-06-14T16:38:31Z")

</div>

I’m using Julia as framework for simulation of physical systems and prototyping for signal-processing and control algorithms. Of course, the latter should eventually run on some embedded hardware (in my case, it will be …

---

## [MethodError: no method matching asprogress in UODE](https://discourse.julialang.org/t/methoderror-no-method-matching-asprogress-in-uode/100296)

<div class="topic-metadata">

**Author:** [@James\_Fernandez](https://discourse.julialang.org/u/James_Fernandez)\
**Replies:** 6\
**Last updated:** [June 14, 2023, 4:04pm UTC](https://discourse.julialang.org/t/methoderror-no-method-matching-asprogress-in-uode/100296 "2023-06-14T16:04:10Z")

</div>

Hello, I am trying to train a UODE with an extended version of the lotka-voltera equations \[6 equations\] in sciML. However, I keep on getting the error: ┌ Warning: EnzymeVJP tried and failed in the automated AD choice…

---

## [The way Gadfly chooses ticks leads to ugly plots very often?](https://discourse.julialang.org/t/the-way-gadfly-chooses-ticks-leads-to-ugly-plots-very-often/100328)

<div class="topic-metadata">

**Author:** [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Replies:** 1\
**Last updated:** [June 14, 2023, 2:13pm UTC](https://discourse.julialang.org/t/the-way-gadfly-chooses-ticks-leads-to-ugly-plots-very-often/100328 "2023-06-14T14:13:10Z")

</div>

There’s an experiment for evaluating the claim in the title here. See the readme, and the SVG plots, viewable directly there (in the browser, on Gitlab). My conclusion was that a very large percentage of these random Ga…

---

## [How to set an objective to minimize the variance in ratio of allocation](https://discourse.julialang.org/t/how-to-set-an-objective-to-minimize-the-variance-in-ratio-of-allocation/100263)

<div class="topic-metadata">

**Author:** [@Ashok\_Khatri](https://discourse.julialang.org/u/Ashok_Khatri)\
**Replies:** 4\
**Last updated:** [June 14, 2023, 1:24pm UTC](https://discourse.julialang.org/t/how-to-set-an-objective-to-minimize-the-variance-in-ratio-of-allocation/100263 "2023-06-14T13:24:37Z")

</div>

I am trying to write a model where I have to distribute fractions of rent from properties to loans. The objective is to distribute the rents as equally as possible given the loan balance. Say there are 5 properties and …

---

## [Plots: margins, positions of axes, etc., within the canvas (paper)](https://discourse.julialang.org/t/plots-margins-positions-of-axes-etc-within-the-canvas-paper/100317)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 0\
**Last updated:** [June 14, 2023, 8:31am UTC](https://discourse.julialang.org/t/plots-margins-positions-of-axes-etc-within-the-canvas-paper/100317 "2023-06-14T08:31:37Z")

</div>

What is the general method to control the positions of the axes in a plot? Below is my first small attempt to push the upper x axis downward, which fails: julia\> using Plots julia\> plot(sin; top\_margin=10mm) ERROR: Un…

---

## [Solving UDE segfaults or runs with poor performance](https://discourse.julialang.org/t/solving-ude-segfaults-or-runs-with-poor-performance/100074)

<div class="topic-metadata">

**Author:** [@rkube](https://discourse.julialang.org/u/rkube)\
**Replies:** 7\
**Last updated:** [June 13, 2023, 11:19pm UTC](https://discourse.julialang.org/t/solving-ude-segfaults-or-runs-with-poor-performance/100074 "2023-06-13T23:19:10Z")

</div>

Hi, I’m trying to optimize an a circuit equations with an UDE, following this example from the sciml docs. U = Lux.Chain(Lux.Dense(3, 32, Lux.relu), Lux.Dense(32, 32, Lux.relu), Lux.Dense(32, 32, Lux.relu…

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

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