# Specific Domains

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

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

**Page:** 107

---

## [Sampling predictive with MvNormal in Turing](https://discourse.julialang.org/t/sampling-predictive-with-mvnormal-in-turing/115292)

<div class="topic-metadata">

**Author:** [@dae](https://discourse.julialang.org/u/dae)\
**Replies:** 2\
**Last updated:** [June 7, 2024, 1:26am UTC](https://discourse.julialang.org/t/sampling-predictive-with-mvnormal-in-turing/115292 "2024-06-07T01:26:02Z")

</div>

tldr; none of these seem to work, and give different errors: Vector{Float64}(undef, n) ~ MvNormal(yhat, Diagonal(fill(1.0, n))) Vector{Real}(undef, n) ~ MvNormal(yhat, Diagonal(fill(1.0, n))) Vector{Missing}(missing, n)…

---

## [JuMP write\_to\_file: Writing legacy model to file is much smaller](https://discourse.julialang.org/t/jump-write-to-file-writing-legacy-model-to-file-is-much-smaller/115299)

<div class="topic-metadata">

**Author:** [@Stuart\_Rogers](https://discourse.julialang.org/u/Stuart_Rogers)\
**Replies:** 7\
**Last updated:** [June 7, 2024, 12:57am UTC](https://discourse.julialang.org/t/jump-write-to-file-writing-legacy-model-to-file-is-much-smaller/115299 "2024-06-07T00:57:40Z")

</div>

I construct a model for a nonlinear optimization problem in the Julia JuMP code below, using either the non-legacy (use\_legacy\_model = false) or legacy (use\_legacy\_model = true) model interface and save the model to a .n…

---

## [How to determine which variables are fixed to 0 or 1 in a node of a branch and bound tree using CPLEX.jl?](https://discourse.julialang.org/t/how-to-determine-which-variables-are-fixed-to-0-or-1-in-a-node-of-a-branch-and-bound-tree-using-cplex-jl/115028)

<div class="topic-metadata">

**Author:** [@ASUKaiwenFang](https://discourse.julialang.org/u/ASUKaiwenFang)\
**Replies:** 10\
**Last updated:** [June 7, 2024, 12:56am UTC](https://discourse.julialang.org/t/how-to-determine-which-variables-are-fixed-to-0-or-1-in-a-node-of-a-branch-and-bound-tree-using-cplex-jl/115028 "2024-06-07T00:56:04Z")

</div>

For example, at node A, x\_1 = 0, x\_2 = 1, x\_3 = 1, which API should I use to query this information?

---

## [Is there a way to change the theta tick label rotation for a PolarAxis? (Makie.jl)](https://discourse.julialang.org/t/is-there-a-way-to-change-the-theta-tick-label-rotation-for-a-polaraxis-makie-jl/115303)

<div class="topic-metadata">

**Author:** [@BenjaminDoran](https://discourse.julialang.org/u/BenjaminDoran)\
**Replies:** 0\
**Last updated:** [June 6, 2024, 11:14pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-change-the-theta-tick-label-rotation-for-a-polaraxis-makie-jl/115303 "2024-06-06T23:14:15Z")

</div>

It looks like there is no thetaticklabelrotation option for PolarAxis is there another option to get rotated tick labels for polar axis plots?

---

## [NLP: Attribute ScalarNonlinearFunction is not supported by the model](https://discourse.julialang.org/t/nlp-attribute-scalarnonlinearfunction-is-not-supported-by-the-model/110444)

<div class="topic-metadata">

**Author:** [@Shuhua](https://discourse.julialang.org/u/Shuhua)\
**Replies:** 21\
**Last updated:** [June 6, 2024, 10:13pm UTC](https://discourse.julialang.org/t/nlp-attribute-scalarnonlinearfunction-is-not-supported-by-the-model/110444 "2024-06-06T22:13:50Z")

</div>

Hi, I am working on an optimization problem as described in the PDF document in the GitHub repository. The nonlinearity is introduced mainly the equation G in (16). I implemented the model following closely the PDF desc…

---

## [Slicing a CuArray in a kernel](https://discourse.julialang.org/t/slicing-a-cuarray-in-a-kernel/115285)

<div class="topic-metadata">

**Author:** [@peteole](https://discourse.julialang.org/u/peteole)\
**Replies:** 1\
**Last updated:** [June 6, 2024, 4:21pm UTC](https://discourse.julialang.org/t/slicing-a-cuarray-in-a-kernel/115285 "2024-06-06T16:21:35Z")

</div>

Hi, I would like to take a slice from a CuArray in a kernel: using CUDA using StaticArrays using LinearAlgebra function run() a::Float64=5.0 n=3 vectors = CUDA.rand(Float64, 100,n) #vectors=CuArray(\[@S…

---

## [Workarounds for splatting in index sets?](https://discourse.julialang.org/t/workarounds-for-splatting-in-index-sets/115212)

<div class="topic-metadata">

**Author:** [@solliolli](https://discourse.julialang.org/u/solliolli)\
**Replies:** 10\
**Last updated:** [June 6, 2024, 7:19am UTC](https://discourse.julialang.org/t/workarounds-for-splatting-in-index-sets/115212 "2024-06-06T07:19:40Z")

</div>

Hi! I ran into a small issue when writing a MILP model, namely the fact that the splatting operator cannot be used in the definition of an index set. What I’m trying to achieve is to define JuMP variables with dimensions…

---

## [Computing fidelity of quantum state](https://discourse.julialang.org/t/computing-fidelity-of-quantum-state/115264)

<div class="topic-metadata">

**Author:** [@fqguo](https://discourse.julialang.org/u/fqguo)\
**Replies:** 6\
**Last updated:** [June 6, 2024, 2:24pm UTC](https://discourse.julialang.org/t/computing-fidelity-of-quantum-state/115264 "2024-06-06T14:24:15Z")

</div>

I write my program, however, i cannot plot the correct figure. When i use the ket psi\_0 as initial state, i can plot the correct figure same Matlab. However, when i use the density psi\_0⊗dagger(psi\_0), i cannot plot the…

---

## [Best practice to choose epoch or number of features from a recursive feature elimination process?](https://discourse.julialang.org/t/best-practice-to-choose-epoch-or-number-of-features-from-a-recursive-feature-elimination-process/115281)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 0\
**Last updated:** [June 6, 2024, 1:13pm UTC](https://discourse.julialang.org/t/best-practice-to-choose-epoch-or-number-of-features-from-a-recursive-feature-elimination-process/115281 "2024-06-06T13:13:23Z")

</div>

In general, how to find the smallest number which corresponds to best score in a noisy curve? Below is an example result form a recursive feature elimination process. The x axis is the number of features selected and the…

---

## [ANN: JuMP-dev 2024: tickets now on sale](https://discourse.julialang.org/t/ann-jump-dev-2024-tickets-now-on-sale/111168)

<div class="topic-metadata">

**Author:** [@odow](https://discourse.julialang.org/u/odow)\
**Replies:** 2\
**Last updated:** [June 6, 2024, 9:30am UTC](https://discourse.julialang.org/t/ann-jump-dev-2024-tickets-now-on-sale/111168 "2024-06-06T09:30:18Z")

</div>

Dear all, Tickets for JuMP-dev 2024 are now on sale. The early bird cost is CAD50 before June 19, and CAD75 after. To sign up directly, go to https://symposia.gerad.ca/JumpDev-2024/register. For more details, includi…

---

## [Nearest\_neighbor() and euclidean\_distance in Agents](https://discourse.julialang.org/t/nearest-neighbor-and-euclidean-distance-in-agents/115270)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [June 6, 2024, 9:15am UTC](https://discourse.julialang.org/t/nearest-neighbor-and-euclidean-distance-in-agents/115270 "2024-06-06T09:15:29Z")

</div>

Hey, Im working with interaction\_pair() function which uses nearest\_neighbor() to find a pair. Now while applying this function I feel that doesn’t matter how small r value we give in nearest\_neighbor(model\[2\], model, 1…

---

## [Parameter support is broken used with direct\_model](https://discourse.julialang.org/t/parameter-support-is-broken-used-with-direct-model/115266)

<div class="topic-metadata">

**Author:** [@metab0t](https://discourse.julialang.org/u/metab0t)\
**Replies:** 1\
**Last updated:** [June 6, 2024, 3:47am UTC](https://discourse.julialang.org/t/parameter-support-is-broken-used-with-direct-model/115266 "2024-06-06T03:47:27Z")

</div>

using JuMP, Ipopt model = direct\_model(Ipopt.Optimizer()); set\_silent(model) x = @variable(model, lower\_bound = 0.0) @variable(model, p in Parameter(1.0), set\_string\_name=false) @objective(model, Min, x^2) con = @cons…

---

## [Only return mouse position if inside an Axis using GLMakie](https://discourse.julialang.org/t/only-return-mouse-position-if-inside-an-axis-using-glmakie/115204)

<div class="topic-metadata">

**Author:** [@garrek](https://discourse.julialang.org/u/garrek)\
**Replies:** 3\
**Last updated:** [June 6, 2024, 1:40am UTC](https://discourse.julialang.org/t/only-return-mouse-position-if-inside-an-axis-using-glmakie/115204 "2024-06-06T01:40:41Z")

</div>

I’m making an interactive heatmap where I get the mouse position and update a second plot. I provided a MWE where a horizontal line moves with the mouse, but I only want to update the line when the mouse is inside of thi…

---

## [Jump Process with Drift](https://discourse.julialang.org/t/jump-process-with-drift/115166)

<div class="topic-metadata">

**Author:** [@Mieszko](https://discourse.julialang.org/u/Mieszko)\
**Replies:** 4\
**Last updated:** [June 5, 2024, 9:47pm UTC](https://discourse.julialang.org/t/jump-process-with-drift/115166 "2024-06-05T21:47:37Z")

</div>

Hey, I am trying to simulate with the use of JumpProcesses.jl the following stochastic differential equation: dX\_t = -X\_tdt + dN\_t. Do you know, if there is any straightforward way of defining the f (drift) function in…

---

## [JuMPER using solver(Clp,GLPK)](https://discourse.julialang.org/t/jumper-using-solver-clp-glpk/115206)

<div class="topic-metadata">

**Author:** [@jackfr0st11](https://discourse.julialang.org/u/jackfr0st11)\
**Replies:** 4\
**Last updated:** [June 5, 2024, 8:11pm UTC](https://discourse.julialang.org/t/jumper-using-solver-clp-glpk/115206 "2024-06-05T20:11:51Z")

</div>

I have installed JuMPER with specified Julia(1.0) and JuMP(0.18) and i want to try the example code, but failed to add a solver for the model. Here is my code and reported error: I am wondering if it is feasible to …

---

## [Error while defining binary variable in JuMP](https://discourse.julialang.org/t/error-while-defining-binary-variable-in-jump/115249)

<div class="topic-metadata">

**Author:** [@vineetjnair9](https://discourse.julialang.org/u/vineetjnair9)\
**Replies:** 2\
**Last updated:** [June 5, 2024, 8:02pm UTC](https://discourse.julialang.org/t/error-while-defining-binary-variable-in-jump/115249 "2024-06-05T20:02:44Z")

</div>

Hi, I’m trying to initialize a vector of binary variables as follows: model = Model(Gurobi.Optimizer) @variable(model, z\[1:12\], Bin) But I get this error: Exception has occurred: MethodError MethodError: no method m…

---

## [Storing lots of time series](https://discourse.julialang.org/t/storing-lots-of-time-series/115169)

<div class="topic-metadata">

**Author:** [@alemelis](https://discourse.julialang.org/u/alemelis)\
**Replies:** 12\
**Last updated:** [June 5, 2024, 7:35pm UTC](https://discourse.julialang.org/t/storing-lots-of-time-series/115169 "2024-06-05T19:35:46Z")

</div>

Hello, I’ve a large number of time series as result of my simulations. As today the dataset is made of ~1e7 time series (100 points each), stored on disk in .csv files (each one containing 5 of them). I’ll have more (1…

---

## [MTK & structural\_parameters](https://discourse.julialang.org/t/mtk-structural-parameters/115239)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [June 5, 2024, 7:00pm UTC](https://discourse.julialang.org/t/mtk-structural-parameters/115239 "2024-06-05T19:00:17Z")

</div>

I have a gas model where I want to compare two cases: using a fixed “compressibility factor” z computing z from an EoS \[Equation of State\] The idea is to compare the dynamic behavior. So my idea is to add a structural…

---

## [Issues in solving Parameter Estimation Optimization with SciMLSensitivity.jl](https://discourse.julialang.org/t/issues-in-solving-parameter-estimation-optimization-with-scimlsensitivity-jl/114791)

<div class="topic-metadata">

**Author:** [@MarcoDellOro](https://discourse.julialang.org/u/MarcoDellOro)\
**Replies:** 11\
**Last updated:** [June 5, 2024, 3:45pm UTC](https://discourse.julialang.org/t/issues-in-solving-parameter-estimation-optimization-with-scimlsensitivity-jl/114791 "2024-06-05T15:45:13Z")

</div>

Hello everybody, I have already asked a question on the same topic (ODEs parameter estimation) but unfortunately I am experiencing some early user issues which I cannot understand how to solve. I am currently using the…

---

## [Modifying interaction\_pairs() for EventQueueABM](https://discourse.julialang.org/t/modifying-interaction-pairs-for-eventqueueabm/115233)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 2:27pm UTC](https://discourse.julialang.org/t/modifying-interaction-pairs-for-eventqueueabm/115233 "2024-06-05T14:27:31Z")

</div>

Hello everyone, I’m trying to modify inbuild function interaction\_pairs() to make it usable for EventQueueABM model too. Any suggestion will be helpful… :slight\_smile: Here is original code : function interacting\_pair…

---

## [Elastic collision for particle pairs in 3d EventQueueABM model](https://discourse.julialang.org/t/elastic-collision-for-particle-pairs-in-3d-eventqueueabm-model/115231)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 0\
**Last updated:** [June 5, 2024, 12:57pm UTC](https://discourse.julialang.org/t/elastic-collision-for-particle-pairs-in-3d-eventqueueabm-model/115231 "2024-06-05T12:57:55Z")

</div>

Hello everyone, I’m trying to make a model where 2 particles in 3d cubical space when comes to certain distance they do elastic collision. Now major issues are that Elastic collision function is just for 2d in Agents.…

---

## [Flux memory usage high in SRCNN](https://discourse.julialang.org/t/flux-memory-usage-high-in-srcnn/115174)

<div class="topic-metadata">

**Author:** [@AtomsForHire](https://discourse.julialang.org/u/AtomsForHire)\
**Replies:** 3\
**Last updated:** [June 5, 2024, 1:13pm UTC](https://discourse.julialang.org/t/flux-memory-usage-high-in-srcnn/115174 "2024-06-05T13:13:57Z")

</div>

Hello, First let me preface this by saying I am new to Julia and machine learning. I just wanted to dip my toes into machine learning for fun, started out with OCR using an MLP first and now I’m trying to implement a su…

---

## [How to decipher SciMLBase OptimizationBase OptimizationForwardDiffExt warnings?](https://discourse.julialang.org/t/how-to-decipher-scimlbase-optimizationbase-optimizationforwarddiffext-warnings/115225)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 12:45pm UTC](https://discourse.julialang.org/t/how-to-decipher-scimlbase-optimizationbase-optimizationforwarddiffext-warnings/115225 "2024-06-05T12:45:28Z")

</div>

When fitting a DE params to data, I get warnings like this one: ┌ Warning: dt(2.842170943040401e-14) \<= eps(t)(218.2272500679591) , and step error estimate = 2.359923922574841. Aborting. There is either an error in yo…

---

## [Control Plots draw order with multiple y-axes](https://discourse.julialang.org/t/control-plots-draw-order-with-multiple-y-axes/115223)

<div class="topic-metadata">

**Author:** [@DrChainsaw](https://discourse.julialang.org/u/DrChainsaw)\
**Replies:** 1\
**Last updated:** [June 5, 2024, 11:40am UTC](https://discourse.julialang.org/t/control-plots-draw-order-with-multiple-y-axes/115223 "2024-06-05T11:40:31Z")

</div>

I’m trying to make a line plot vs the right y-axis and a bar plot on the left y-axis using twinx and I run into the problem that the bars obscure the line plot. Is there any way to make Plots draw the line plot on top o…

---

## [Integration within ModelingToolkit Models](https://discourse.julialang.org/t/integration-within-modelingtoolkit-models/115015)

<div class="topic-metadata">

**Author:** [@HSnowden](https://discourse.julialang.org/u/HSnowden)\
**Replies:** 6\
**Last updated:** [June 5, 2024, 7:26am UTC](https://discourse.julialang.org/t/integration-within-modelingtoolkit-models/115015 "2024-06-05T07:26:22Z")

</div>

Hello, Sorry I am asking so many questions on here. I would like to be able to integrate part of an equation within a MTK model so that each time step the integration is performed with the current variables and paramete…

---

## [Specify names of states and parameters in ODEProblem?](https://discourse.julialang.org/t/specify-names-of-states-and-parameters-in-odeproblem/115145)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 6\
**Last updated:** [June 5, 2024, 6:24am UTC](https://discourse.julialang.org/t/specify-names-of-states-and-parameters-in-odeproblem/115145 "2024-06-05T06:24:46Z")

</div>

Here’s a simple problem I have where I couldn’t find any documentation; I’d like to specify the parameter names of the states and parameters to SciML’s ODEFunction e.g. using Dict(:u =\> \[:S, :I, :R\], :p =\> \[:β, :c, :γ\]).…

---

## [IO type that wraps an AbstractVector{UInt8}?](https://discourse.julialang.org/t/io-type-that-wraps-an-abstractvector-uint8/114987)

<div class="topic-metadata">

**Author:** [@nhz2](https://discourse.julialang.org/u/nhz2)\
**Replies:** 4\
**Last updated:** [May 31, 2024, 11:18pm UTC](https://discourse.julialang.org/t/io-type-that-wraps-an-abstractvector-uint8/114987 "2024-05-31T23:18:59Z")

</div>

Besides IOBuffer, which doesn’t support all AbstractVector{UInt8}, is there an existing package with a type that wraps a vector of bytes as a read-only seekable IO?

---

## [ModelingToolkit doesn't precompile any more](https://discourse.julialang.org/t/modelingtoolkit-doesnt-precompile-any-more/114548)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 3\
**Last updated:** [June 4, 2024, 9:26pm UTC](https://discourse.julialang.org/t/modelingtoolkit-doesnt-precompile-any-more/114548 "2024-06-04T21:26:55Z")

</div>

A few days ago, I installed some new packages (AbstractAlgebra, Nemo, Groebner). I also tried to install Oscar. When I tried to compile Oscar, I was told it doesn’t run on Windows, and I removed it. Since then, Modeling…

---

## [How to use @byrow inside @chain pipeline?](https://discourse.julialang.org/t/how-to-use-byrow-inside-chain-pipeline/115184)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 2\
**Last updated:** [June 4, 2024, 5:36pm UTC](https://discourse.julialang.org/t/how-to-use-byrow-inside-chain-pipeline/115184 "2024-06-04T17:36:01Z")

</div>

I am trying to organize a pipeline for data processing using the @chain macro. However, I have a problem with using @byrow macro inside this pipeline. I get an error saying that @byrow is deprecated outside of DataFrames…

---

## [Parameter Estimation 10 dimensional ODE using Turing.jl for 0/1 data](https://discourse.julialang.org/t/parameter-estimation-10-dimensional-ode-using-turing-jl-for-0-1-data/115115)

<div class="topic-metadata">

**Author:** [@Marta\_Pardo\_Araujo](https://discourse.julialang.org/u/Marta_Pardo_Araujo)\
**Replies:** 6\
**Last updated:** [June 4, 2024, 1:45pm UTC](https://discourse.julialang.org/t/parameter-estimation-10-dimensional-ode-using-turing-jl-for-0-1-data/115115 "2024-06-04T13:45:01Z")

</div>

Hi, I am trying to estimate the parameters of a ODE model, the model is N equations that represent a metapopulation, where at each node you have the probability of presence at time t. I want to compare this with the obs…

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

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