# Specific Domains

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

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

**Page:** 283

---

## [Is this possible to do with Turing?](https://discourse.julialang.org/t/is-this-possible-to-do-with-turing/80742)

<div class="topic-metadata">

**Author:** [@donk\_fish](https://discourse.julialang.org/u/donk_fish)\
**Replies:** 0\
**Last updated:** [May 9, 2022, 9:20am UTC](https://discourse.julialang.org/t/is-this-possible-to-do-with-turing/80742 "2022-05-09T09:20:19Z")

</div>

Hi, Imagine I have two models, for simplicity say an AR(1) model and a MA(1) model. I want to construct and sample from a composition of their likelihoods, i.e. a geometric average, where the weight themselves is a par…

---

## [Detect and Return Cycles in a given directed graph](https://discourse.julialang.org/t/detect-and-return-cycles-in-a-given-directed-graph/80493)

<div class="topic-metadata">

**Author:** [@Temi-Tory](https://discourse.julialang.org/u/Temi-Tory)\
**Replies:** 20\
**Last updated:** [May 9, 2022, 9:20am UTC](https://discourse.julialang.org/t/detect-and-return-cycles-in-a-given-directed-graph/80493 "2022-05-09T09:20:17Z")

</div>

Hi there, I was wondering if there was a way to detect the number of cycles in a graph. And for each cycle detected, i want to know which nodes are involved in the cycle. I have attached an example of the simplest form…

---

## [Optim.jl : first-order (and second-order) optimization without providing an objective function](https://discourse.julialang.org/t/optim-jl-first-order-and-second-order-optimization-without-providing-an-objective-function/80677)

<div class="topic-metadata">

**Author:** [@Rodrigue](https://discourse.julialang.org/u/Rodrigue)\
**Replies:** 13\
**Last updated:** [May 9, 2022, 6:24am UTC](https://discourse.julialang.org/t/optim-jl-first-order-and-second-order-optimization-without-providing-an-objective-function/80677 "2022-05-09T06:24:53Z")

</div>

Hi — I want to use the Optim.jl package to minimize some function. Say the gradient of my objective is “easy” to approximate using some additional procedure. Now, when appealing to first-order methods like gradient desce…

---

## [Add reference lines to plot in VegaLite.jl](https://discourse.julialang.org/t/add-reference-lines-to-plot-in-vegalite-jl/80515)

<div class="topic-metadata">

**Author:** [@amrods](https://discourse.julialang.org/u/amrods)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 12:02am UTC](https://discourse.julialang.org/t/add-reference-lines-to-plot-in-vegalite-jl/80515 "2022-05-09T00:02:49Z")

</div>

I’m trying to add 2 reference horizontal lines to this plot, but my attempt doesn’t extend the lines to the y-axis, which is what I want. Any suggestions? using DataFrames using VegaLite df = DataFrame(m = 1:5, ll=21:2…

---

## [DiffEq.jl What solver was used](https://discourse.julialang.org/t/diffeq-jl-what-solver-was-used/80706)

<div class="topic-metadata">

**Author:** [@Siempie](https://discourse.julialang.org/u/Siempie)\
**Replies:** 2\
**Last updated:** [May 8, 2022, 12:46pm UTC](https://discourse.julialang.org/t/diffeq-jl-what-solver-was-used/80706 "2022-05-08T12:46:33Z")

</div>

When you do not specify which solver should be used DiffEq.jl has a method for choosing which solver to use. I want to know which solver was used after solving. How can i found out what solver was chosen?

---

## [Including a Julia model in Simulink](https://discourse.julialang.org/t/including-a-julia-model-in-simulink/80627)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 16\
**Last updated:** [May 8, 2022, 4:50am UTC](https://discourse.julialang.org/t/including-a-julia-model-in-simulink/80627 "2022-05-08T04:50:57Z")

</div>

I wrote a nice dynamic model in Julia (https://github.com/ufechner7/KiteModels.jl) and now get the request to include it in Simulink because some people prefer to do control design with Simulink. Any idea what would be t…

---

## [How do I make an histogram with no vertical edges between bars in Plots.jl?](https://discourse.julialang.org/t/how-do-i-make-an-histogram-with-no-vertical-edges-between-bars-in-plots-jl/80671)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 2\
**Last updated:** [May 7, 2022, 9:12pm UTC](https://discourse.julialang.org/t/how-do-i-make-an-histogram-with-no-vertical-edges-between-bars-in-plots-jl/80671 "2022-05-07T21:12:49Z")

</div>

I would like to make an histogram like this one: but I don’t know how to do it. I can set the fillalpha option to zero to have empty bars, but the vertical edges remain: And if I set linecolor to :transparent, the…

---

## [Mapping polygon or mesh data from array input for satellite swaths](https://discourse.julialang.org/t/mapping-polygon-or-mesh-data-from-array-input-for-satellite-swaths/80568)

<div class="topic-metadata">

**Author:** [@haffner](https://discourse.julialang.org/u/haffner)\
**Replies:** 10\
**Last updated:** [May 7, 2022, 6:21pm UTC](https://discourse.julialang.org/t/mapping-polygon-or-mesh-data-from-array-input-for-satellite-swaths/80568 "2022-05-07T18:21:44Z")

</div>

I am new to Julia and work on satellite remote sensing of the atmosphere and ocean. I am looking for some advice on mapping point and polygon (vector) data in geographic coordinates using Julia. I produce relatively co…

---

## [Agents.jl: Introductory Tutorial - Error](https://discourse.julialang.org/t/agents-jl-introductory-tutorial-error/80658)

<div class="topic-metadata">

**Author:** [@Floyd\_Gartner](https://discourse.julialang.org/u/Floyd_Gartner)\
**Replies:** 6\
**Last updated:** [May 7, 2022, 3:19pm UTC](https://discourse.julialang.org/t/agents-jl-introductory-tutorial-error/80658 "2022-05-07T15:19:36Z")

</div>

Hello everybody, I’m trying to work through the Youtube Tutorial for Agents.jl (https://www.youtube.com/watch?v=fgwAfAa4kt0) but I got stuck. When I tried plotting the model it worked fine but when I tried to change th…

---

## [Cannot take the CPU address of a CUDA.CuArray{Float32, 1, CUDA.Mem.DeviceBuffer} in LinearAlgebra matmul](https://discourse.julialang.org/t/cannot-take-the-cpu-address-of-a-cuda-cuarray-float32-1-cuda-mem-devicebuffer-in-linearalgebra-matmul/80666)

<div class="topic-metadata">

**Author:** [@LarsWl](https://discourse.julialang.org/u/LarsWl)\
**Replies:** 0\
**Last updated:** [May 7, 2022, 12:53pm UTC](https://discourse.julialang.org/t/cannot-take-the-cpu-address-of-a-cuda-cuarray-float32-1-cuda-mem-devicebuffer-in-linearalgebra-matmul/80666 "2022-05-07T12:53:17Z")

</div>

Have such function, that usually calculated correct. function predict\_train(model::Model, batch) (calculate\_hidden(model, batch, dropout\_active=true) .^ 3) |\> model.upper\_layer |\> (upper) -\> model.output\_laye…

---

## [Using Polynomials.jl with CUDA.jl](https://discourse.julialang.org/t/using-polynomials-jl-with-cuda-jl/80580)

<div class="topic-metadata">

**Author:** [@GHRALIMA](https://discourse.julialang.org/u/GHRALIMA)\
**Replies:** 3\
**Last updated:** [May 7, 2022, 10:15am UTC](https://discourse.julialang.org/t/using-polynomials-jl-with-cuda-jl/80580 "2022-05-07T10:15:03Z")

</div>

I’m on my very first trial with CUDA.jl, and I’m trying to use it together with Polynomials.jl to calculate the roots of thousands of polynomials with my NVidia GPU. However, when I try to create a polynomial using CuArr…

---

## [The reasons why ABM is not a parameterized type in Agents.jl?](https://discourse.julialang.org/t/the-reasons-why-abm-is-not-a-parameterized-type-in-agents-jl/80538)

<div class="topic-metadata">

**Author:** [@Atiyah](https://discourse.julialang.org/u/Atiyah)\
**Replies:** 4\
**Last updated:** [May 7, 2022, 5:39am UTC](https://discourse.julialang.org/t/the-reasons-why-abm-is-not-a-parameterized-type-in-agents-jl/80538 "2022-05-07T05:39:14Z")

</div>

I am new to Julia and therefore my curiosity in some implementation details. In the package Agents.jl, the type constructor of Agents.AgentBasedModel is expecting a type as its first argument (specifically an AgentType \<…

---

## [Too much time when i solve MISOCP with Gurobi](https://discourse.julialang.org/t/too-much-time-when-i-solve-misocp-with-gurobi/80644)

<div class="topic-metadata">

**Author:** [@mahon](https://discourse.julialang.org/u/mahon)\
**Replies:** 4\
**Last updated:** [May 7, 2022, 3:40am UTC](https://discourse.julialang.org/t/too-much-time-when-i-solve-misocp-with-gurobi/80644 "2022-05-07T03:40:22Z")

</div>

this is my model julia\> model A JuMP Model Minimization problem with: Variables: 8915 Objective function type: AffExpr \`AffExpr\`-in-\`MathOptInterface.EqualTo{Float64}\`: 2716 constraints \`AffExpr\`-in-\`MathOptInterface.Gr…

---

## [A question about write\_to\_file in JuMP](https://discourse.julialang.org/t/a-question-about-write-to-file-in-jump/80643)

<div class="topic-metadata">

**Author:** [@mahon](https://discourse.julialang.org/u/mahon)\
**Replies:** 1\
**Last updated:** [May 7, 2022, 3:25am UTC](https://discourse.julialang.org/t/a-question-about-write-to-file-in-jump/80643 "2022-05-07T03:25:12Z")

</div>

My model is a MISOCP model with Gurobi, if i want to solve it directly with Gurobi, how to code it? julia\> write\_to\_file(model, "model.lp") ERROR: MathOptInterface.UnsupportedConstraint{MathOptInterface.VectorAffineFunc…

---

## [Branching solution accepted although it violates presently added lazy constraints](https://discourse.julialang.org/t/branching-solution-accepted-although-it-violates-presently-added-lazy-constraints/80622)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 5\
**Last updated:** [May 7, 2022, 1:03am UTC](https://discourse.julialang.org/t/branching-solution-accepted-although-it-violates-presently-added-lazy-constraints/80622 "2022-05-07T01:03:15Z")

</div>

I can not produce a MWE because the code is too big so I am going to describe. I have a JuMP model and Gurobi optimizer. I launch a callback where cb\_where is MIP\_SOL and all my variables are integer. On this callback, …

---

## [Need help in formatting bar plot in Makie](https://discourse.julialang.org/t/need-help-in-formatting-bar-plot-in-makie/80496)

<div class="topic-metadata">

**Author:** [@EricChameroy](https://discourse.julialang.org/u/EricChameroy)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 10:17pm UTC](https://discourse.julialang.org/t/need-help-in-formatting-bar-plot-in-makie/80496 "2022-05-06T22:17:18Z")

</div>

I’m trying to recreate the following image using Makie and I’m having issues with some of the final formatting: So far, I managed to come up with the following: using CairoMakie age\_groups = \["0-12", "13-24", "25-3…

---

## [Time Series sensitivity analysis for multiple outputs](https://discourse.julialang.org/t/time-series-sensitivity-analysis-for-multiple-outputs/80631)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [May 6, 2022, 7:54pm UTC](https://discourse.julialang.org/t/time-series-sensitivity-analysis-for-multiple-outputs/80631 "2022-05-06T19:54:43Z")

</div>

Hi, function circ\_local\_time(x) \_prob = remake(prob,u0=x\[1:3\],p=x\[4:end\]) sol = solve(\_prob,Tsit5(), reltol=1e-6, abstol=1e-6,saveat=savetime) sol\[LV.p\] end St = ForwardDiff.jacobian(circ\_local\_time,\[u0;p\])…

---

## [Optimization of large ODE/DAE system](https://discourse.julialang.org/t/optimization-of-large-ode-dae-system/80557)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 8\
**Last updated:** [May 6, 2022, 7:11pm UTC](https://discourse.julialang.org/t/optimization-of-large-ode-dae-system/80557 "2022-05-06T19:11:44Z")

</div>

Hi All, A big picture question about optimization of large ODE/DAE system. Suppose I have a big DAE system (number of equations ~ 100-200, number of parameters to optimize ~ 10-20) Julia has a bunch of optimization t…

---

## [Which parameter estimation technique should I learn?](https://discourse.julialang.org/t/which-parameter-estimation-technique-should-i-learn/80378)

<div class="topic-metadata">

**Author:** [@BinaryBot](https://discourse.julialang.org/u/BinaryBot)\
**Replies:** 5\
**Last updated:** [May 6, 2022, 5:28pm UTC](https://discourse.julialang.org/t/which-parameter-estimation-technique-should-i-learn/80378 "2022-05-06T17:28:32Z")

</div>

I would like to ask the Julia community which Parameter Estimation package should I learn/use for my following problem: I have defined a ODE that has over 20 fixed parameters and there is 4 I would like to optimise. I …

---

## [Best Practices for Debugging DiffEqFlux Errors](https://discourse.julialang.org/t/best-practices-for-debugging-diffeqflux-errors/80618)

<div class="topic-metadata">

**Author:** [@jbu](https://discourse.julialang.org/u/jbu)\
**Replies:** 1\
**Last updated:** [May 6, 2022, 4:26pm UTC](https://discourse.julialang.org/t/best-practices-for-debugging-diffeqflux-errors/80618 "2022-05-06T16:26:19Z")

</div>

What are best practices for debugging when encountering errors with DiffEqFlux problems? I’m working on creating a differentiable ODE simulator with DiffEqFlux. It’s an amazing and powerful tool! However, debugging taki…

---

## [Linear combinations of Zygote.Grads](https://discourse.julialang.org/t/linear-combinations-of-zygote-grads/80621)

<div class="topic-metadata">

**Author:** [@5Pack](https://discourse.julialang.org/u/5Pack)\
**Replies:** 0\
**Last updated:** [May 6, 2022, 3:03pm UTC](https://discourse.julialang.org/t/linear-combinations-of-zygote-grads/80621 "2022-05-06T15:03:57Z")

</div>

Here is a question I posted on Stack Overflow, but I thought it would be good to post it here also. Thank you in advance for your help! https://stackoverflow.com/questions/72143438/linear-combinations-of-zygote-grads

---

## [Two stage stochastic](https://discourse.julialang.org/t/two-stage-stochastic/78767)

<div class="topic-metadata">

**Author:** [@HosseinF](https://discourse.julialang.org/u/HosseinF)\
**Replies:** 8\
**Last updated:** [May 6, 2022, 1:59pm UTC](https://discourse.julialang.org/t/two-stage-stochastic/78767 "2022-05-06T13:59:42Z")

</div>

Hello every one. I am new to Julia. I want to extract the second stage decisional variables but it does not work. Does every one know that what is the problem?

---

## [TORA: Invalid number in NLP function or derivative detected](https://discourse.julialang.org/t/tora-invalid-number-in-nlp-function-or-derivative-detected/80511)

<div class="topic-metadata">

**Author:** [@hedonismbot](https://discourse.julialang.org/u/hedonismbot)\
**Replies:** 6\
**Last updated:** [May 6, 2022, 1:45pm UTC](https://discourse.julialang.org/t/tora-invalid-number-in-nlp-function-or-derivative-detected/80511 "2022-05-06T13:45:14Z")

</div>

On a custom URDF file (fanuc.urdf · GitHub), the tutorial for tora.jl (Tutorial · TORA.jl) always fails with this error: EXIT: Invalid number in NLP function or derivative detected. (6.328051371, \[0.0, 0.0, 0.0, 0.0, …

---

## [Learning to Rank?](https://discourse.julialang.org/t/learning-to-rank/80527)

<div class="topic-metadata">

**Author:** [@Billpete002](https://discourse.julialang.org/u/Billpete002)\
**Replies:** 8\
**Last updated:** [May 6, 2022, 1:30pm UTC](https://discourse.julialang.org/t/learning-to-rank/80527 "2022-05-06T13:30:44Z")

</div>

Hi, I am wondering if there is any package which has a 100% Julia “learning to rank” feature besides XGBoost.jl? (my dataset would be too wide if I did that). I have checked MLRanking.jl but this is deprecated by 6 year…

---

## [I want to make an hospital emergency department model](https://discourse.julialang.org/t/i-want-to-make-an-hospital-emergency-department-model/80608)

<div class="topic-metadata">

**Author:** [@Floyd\_Gartner](https://discourse.julialang.org/u/Floyd_Gartner)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 1:06pm UTC](https://discourse.julialang.org/t/i-want-to-make-an-hospital-emergency-department-model/80608 "2022-05-06T13:06:30Z")

</div>

Hi everybody, I’m super new to Julia and still don’t know how to get started. I want to make a model that simulates an emergency department in a hospital. More specifically I want to show the patient assignment to free…

---

## [\[Makie\] Help with plotting just the boundary of a polygon](https://discourse.julialang.org/t/makie-help-with-plotting-just-the-boundary-of-a-polygon/80556)

<div class="topic-metadata">

**Author:** [@Pappy](https://discourse.julialang.org/u/Pappy)\
**Replies:** 6\
**Last updated:** [May 6, 2022, 11:39am UTC](https://discourse.julialang.org/t/makie-help-with-plotting-just-the-boundary-of-a-polygon/80556 "2022-05-06T11:39:25Z")

</div>

Hi, I am using makie to plot some shapes. Is there any way to plot just the boundary? The poly function works the exact way I want, but it doesn’t appear to have an arguement that allows you to just plot the boundary of …

---

## [Luxor.jl - resize canvas?](https://discourse.julialang.org/t/luxor-jl-resize-canvas/80603)

<div class="topic-metadata">

**Author:** [@MLackner](https://discourse.julialang.org/u/MLackner)\
**Replies:** 1\
**Last updated:** [May 6, 2022, 11:22am UTC](https://discourse.julialang.org/t/luxor-jl-resize-canvas/80603 "2022-05-06T11:22:43Z")

</div>

Is there a way to resize a canvas in Luxor.jl so it includes the bounding boxes of all elements? Suppose I have the following code generating a drawing: @png begin circle(Point(200, 200), 150, :fill) end Now the cir…

---

## [A problem about JUMP function fix](https://discourse.julialang.org/t/a-problem-about-jump-function-fix/80596)

<div class="topic-metadata">

**Author:** [@mahon](https://discourse.julialang.org/u/mahon)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 10:08am UTC](https://discourse.julialang.org/t/a-problem-about-jump-function-fix/80596 "2022-05-06T10:08:13Z")

</div>

Hello , i am trying to use function fix to fix a matrix variable for example @variable(model, P\_dch\[1:2,1:2\]); fix(P\_dch, \[0 0;0 0\]); but it doesn\`t work, how can i do ? thanks

---

## [Threading support for DataFrames transforms](https://discourse.julialang.org/t/threading-support-for-dataframes-transforms/79875)

<div class="topic-metadata">

**Author:** [@jeremiedb](https://discourse.julialang.org/u/jeremiedb)\
**Replies:** 10\
**Last updated:** [May 6, 2022, 2:11am UTC](https://discourse.julialang.org/t/threading-support-for-dataframes-transforms/79875 "2022-05-06T02:11:15Z")

</div>

With regard to multi-thread support with DataFrames, I understand that it remains a WIP. I wanted to validate whether some situations that appear, at least on the surface, like good candidates for to benefit from multi-…

---

## [Indicator constraints with quadratic terms may have bugs?](https://discourse.julialang.org/t/indicator-constraints-with-quadratic-terms-may-have-bugs/80516)

<div class="topic-metadata">

**Author:** [@iiitr](https://discourse.julialang.org/u/iiitr)\
**Replies:** 4\
**Last updated:** [May 6, 2022, 1:53am UTC](https://discourse.julialang.org/t/indicator-constraints-with-quadratic-terms-may-have-bugs/80516 "2022-05-06T01:53:47Z")

</div>

When I use the indicator constraint, I find that it sometimes causes the model to be infeasible, but I can solve the model when I set a feasible solution as a constraint. I know that the indicator can only contain linea…

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

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