# Specific Domains

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

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

**Page:** 188

---

## [An optimization problem on GPU works in Julia v1.8, but does not work in v1.9](https://discourse.julialang.org/t/an-optimization-problem-on-gpu-works-in-julia-v1-8-but-does-not-work-in-v1-9/100036)

<div class="topic-metadata">

**Author:** [@DennisFang](https://discourse.julialang.org/u/DennisFang)\
**Replies:** 2\
**Last updated:** [June 9, 2023, 4:19am UTC](https://discourse.julialang.org/t/an-optimization-problem-on-gpu-works-in-julia-v1-8-but-does-not-work-in-v1-9/100036 "2023-06-09T04:19:47Z")

</div>

Hello, I’m doing an optimization problem and trying to work on CUDA. I can run my program in Julia v1.8.2 and v1.8.5. However, I get some errors when running on the GPU in Julia v1.9.0 and v1.9.1. Here is a minimum exa…

---

## [ODE solvers - Matlab ode23s vs Rosenbrock23 implementations](https://discourse.julialang.org/t/ode-solvers-matlab-ode23s-vs-rosenbrock23-implementations/99950)

<div class="topic-metadata">

**Author:** [@Nick1](https://discourse.julialang.org/u/Nick1)\
**Replies:** 5\
**Last updated:** [June 8, 2023, 9:15pm UTC](https://discourse.julialang.org/t/ode-solvers-matlab-ode23s-vs-rosenbrock23-implementations/99950 "2023-06-08T21:15:20Z")

</div>

I am working on solving stiff ODEs and I was comparing MATLAB and Julia solvers. While both give the same solution when the system reaches a steady state, at the beginning there is a small difference for the same relativ…

---

## [Cannot build CPLEX even with correct environment variable](https://discourse.julialang.org/t/cannot-build-cplex-even-with-correct-environment-variable/87234)

<div class="topic-metadata">

**Author:** [@Richard0416](https://discourse.julialang.org/u/Richard0416)\
**Replies:** 5\
**Last updated:** [June 8, 2023, 9:14pm UTC](https://discourse.julialang.org/t/cannot-build-cplex-even-with-correct-environment-variable/87234 "2023-06-08T21:14:33Z")

</div>

Hello! I am trying to add CPLEX to Julia. I download the latest version of CPLEX, 22.1 And also updated the CPLEX.jl package to the latest version, v0.9.4. When running Pkg.build(“CPLEX”), it seems that the path is wron…

---

## [Upperbound and Lowerbound of SDDP.jl](https://discourse.julialang.org/t/upperbound-and-lowerbound-of-sddp-jl/100060)

<div class="topic-metadata">

**Author:** [@Sorooshsa](https://discourse.julialang.org/u/Sorooshsa)\
**Replies:** 1\
**Last updated:** [June 8, 2023, 9:11pm UTC](https://discourse.julialang.org/t/upperbound-and-lowerbound-of-sddp-jl/100060 "2023-06-08T21:11:08Z")

</div>

Hi, I solved a Multi-stage stochastic problem in Julia using SDDP.jl Package. As we know in theory, SDDP.jl is based on diving a problem into the master problem and subproblems and progressively adding cuts (Like Neste…

---

## [Implementing the Wedge Product](https://discourse.julialang.org/t/implementing-the-wedge-product/17824)

<div class="topic-metadata">

**Author:** [@DrPapa](https://discourse.julialang.org/u/DrPapa)\
**Replies:** 10\
**Last updated:** [June 8, 2023, 7:57pm UTC](https://discourse.julialang.org/t/implementing-the-wedge-product/17824 "2023-06-08T19:57:34Z")

</div>

First off, does anybody know of an existing implementation of the wedge product in Julia? I performed a pretty expensive search and came up empty. For my application I need to compute \\wedge\_{i=1}^{n-1}\\boldsymbol{v}\_i…

---

## [Recommendation for animated 3D diagram](https://discourse.julialang.org/t/recommendation-for-animated-3d-diagram/99903)

<div class="topic-metadata">

**Author:** [@goerz](https://discourse.julialang.org/u/goerz)\
**Replies:** 11\
**Last updated:** [June 8, 2023, 6:29pm UTC](https://discourse.julialang.org/t/recommendation-for-animated-3d-diagram/99903 "2023-06-08T18:29:50Z")

</div>

I’m contemplating trying to make an animation based on the following figure: In the animation, I’d like to have the two red cups (and the blue balls contained in them) rotate independently around the circle, with a p…

---

## [Use CPLEX solver in JuMP](https://discourse.julialang.org/t/use-cplex-solver-in-jump/100048)

<div class="topic-metadata">

**Author:** [@R0033h](https://discourse.julialang.org/u/R0033h)\
**Replies:** 1\
**Last updated:** [June 8, 2023, 1:02pm UTC](https://discourse.julialang.org/t/use-cplex-solver-in-jump/100048 "2023-06-08T13:02:34Z")

</div>

I am a new learner to Julia and I would like to know how can create subproblem. I tried many ways but all of them not correct. the problem is ( we assumed: there are 400 students and 4 schools each school have 100 stud…

---

## [Write a plot recipe that uses other recipes to generate data for several plots](https://discourse.julialang.org/t/write-a-plot-recipe-that-uses-other-recipes-to-generate-data-for-several-plots/100015)

<div class="topic-metadata">

**Author:** [@claud10c](https://discourse.julialang.org/u/claud10c)\
**Replies:** 2\
**Last updated:** [June 7, 2023, 6:47pm UTC](https://discourse.julialang.org/t/write-a-plot-recipe-that-uses-other-recipes-to-generate-data-for-several-plots/100015 "2023-06-07T18:47:43Z")

</div>

I have the following code (here is a minimal working example) in Julia: using Plots using LazySets gr() struct Data pos::Matrix{Float64} # Positions in an Euclidean plane snodes::Vector{Vector{Int64}} # Set of …

---

## [Plotting Probability Distribution of Data](https://discourse.julialang.org/t/plotting-probability-distribution-of-data/99976)

<div class="topic-metadata">

**Author:** [@optimist](https://discourse.julialang.org/u/optimist)\
**Replies:** 3\
**Last updated:** [June 7, 2023, 5:45pm UTC](https://discourse.julialang.org/t/plotting-probability-distribution-of-data/99976 "2023-06-07T17:45:26Z")

</div>

I am trying to produce a plot of probability distribution function of some data which is a result of simulations. Using density function from StatPlots is showing some weird y-axis numbers. I would expect it to be rangin…

---

## [Can I use if statements in ParameterisedFunctions.jl? Is there a work around?](https://discourse.julialang.org/t/can-i-use-if-statements-in-parameterisedfunctions-jl-is-there-a-work-around/79347)

<div class="topic-metadata">

**Author:** [@BinaryBot](https://discourse.julialang.org/u/BinaryBot)\
**Replies:** 3\
**Last updated:** [June 7, 2023, 12:57pm UTC](https://discourse.julialang.org/t/can-i-use-if-statements-in-parameterisedfunctions-jl-is-there-a-work-around/79347 "2023-06-07T12:57:32Z")

</div>

I am trying to check weather my Differential Equation implemented using DifferentialEquation.jl matches the results obtained in Matlab. I learnt I could do this by implementing the same differential equation using MATLAB…

---

## [Bug in AlphaStableDistributions?](https://discourse.julialang.org/t/bug-in-alphastabledistributions/99868)

<div class="topic-metadata">

**Author:** [@chrhum](https://discourse.julialang.org/u/chrhum)\
**Replies:** 6\
**Last updated:** [June 7, 2023, 10:00am UTC](https://discourse.julialang.org/t/bug-in-alphastabledistributions/99868 "2023-06-07T10:00:09Z")

</div>

I could not reconcile the output of a classical sampling algorithm for the Gumbel Copula when using AlphaStableDistributions.jl. I wonder if there is a bug in its simulation algorithm or if I have overseen something? A …

---

## [Paper on Julia portiential for HEP](https://discourse.julialang.org/t/paper-on-julia-portiential-for-hep/99994)

<div class="topic-metadata">

**Author:** [@grasph](https://discourse.julialang.org/u/grasph)\
**Replies:** 0\
**Last updated:** [June 7, 2023, 9:36am UTC](https://discourse.julialang.org/t/paper-on-julia-portiential-for-hep/99994 "2023-06-07T09:36:14Z")

</div>

Please note, this announcement on the release of the preprint of an important paper: Julia potential for high energy physics computing. Questions and follow-up can be done here.

---

## [Translating from torch to Flux](https://discourse.julialang.org/t/translating-from-torch-to-flux/99847)

<div class="topic-metadata">

**Author:** [@isentropic](https://discourse.julialang.org/u/isentropic)\
**Replies:** 2\
**Last updated:** [June 7, 2023, 2:22am UTC](https://discourse.julialang.org/t/translating-from-torch-to-flux/99847 "2023-06-07T02:22:14Z")

</div>

(cross post from zulip) I’m a recent ML and flux learner currently trying to learn and translate GitHub - karpathy/makemore: An autoregressive character-level language model for making more things to Flux. I finished tr…

---

## [New to Jump and Julia](https://discourse.julialang.org/t/new-to-jump-and-julia/99823)

<div class="topic-metadata">

**Author:** [@A.Marx](https://discourse.julialang.org/u/A.Marx)\
**Replies:** 5\
**Last updated:** [June 7, 2023, 12:01am UTC](https://discourse.julialang.org/t/new-to-jump-and-julia/99823 "2023-06-07T00:01:30Z")

</div>

Hey all, I am trying to programm a simple optimization problem which minimizes the cost of a of an energy system with 4 suppliers subject to capacitiy constraints for 6 periods. The costs are for each period are: c…

---

## [How to use regularization in Mixed-effects models and Survival models with Julia?](https://discourse.julialang.org/t/how-to-use-regularization-in-mixed-effects-models-and-survival-models-with-julia/99858)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 3\
**Last updated:** [June 6, 2023, 11:32pm UTC](https://discourse.julialang.org/t/how-to-use-regularization-in-mixed-effects-models-and-survival-models-with-julia/99858 "2023-06-06T23:32:24Z")

</div>

I would like to perform a regression model with random effects and a Cox model, both with many covariates (20000). Then I need to include some kind of regularization such as lasso. But I haven’t found that option in Mi…

---

## [Zygote limitations: getindex of a DataFrame while training a PINN](https://discourse.julialang.org/t/zygote-limitations-getindex-of-a-dataframe-while-training-a-pinn/99967)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 1\
**Last updated:** [June 6, 2023, 10:16pm UTC](https://discourse.julialang.org/t/zygote-limitations-getindex-of-a-dataframe-while-training-a-pinn/99967 "2023-06-06T22:16:41Z")

</div>

I want to train a PINN. I decided, that I want to estimate the physical loss term at static, independent sample times. For each of the sample times, I have to look up result of the previous sample point, to estimate t…

---

## [Transitioning an LP to stochastic version with InfiniteOpt.jl (+ feeding in samples ?)](https://discourse.julialang.org/t/transitioning-an-lp-to-stochastic-version-with-infiniteopt-jl-feeding-in-samples/99896)

<div class="topic-metadata">

**Author:** [@filchristou](https://discourse.julialang.org/u/filchristou)\
**Replies:** 7\
**Last updated:** [June 6, 2023, 8:59pm UTC](https://discourse.julialang.org/t/transitioning-an-lp-to-stochastic-version-with-infiniteopt-jl-feeding-in-samples/99896 "2023-06-06T20:59:18Z")

</div>

Hello! I was searching to transition some of my deterministic ILP models to a stochastic version. I started investigating InfiniteOpt.jl and made a simple stochastic flavor of the JuMP LP example. I just modeled a para…

---

## [How to add assumptions to the integrated function](https://discourse.julialang.org/t/how-to-add-assumptions-to-the-integrated-function/99912)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 4\
**Last updated:** [June 6, 2023, 5:43pm UTC](https://discourse.julialang.org/t/how-to-add-assumptions-to-the-integrated-function/99912 "2023-06-06T17:43:02Z")

</div>

I posted the question here because it seemed to me the least unrelated to the question. Of the following integral I am interested only in the real part. How can I force to consider a\>x\>0? Or, alternatively, how can I s…

---

## [How to perform an Off-Policy reinforcement learning using \`ReinforcementLearning.jl\`?](https://discourse.julialang.org/t/how-to-perform-an-off-policy-reinforcement-learning-using-reinforcementlearning-jl/99940)

<div class="topic-metadata">

**Author:** [@WuSiren](https://discourse.julialang.org/u/WuSiren)\
**Replies:** 0\
**Last updated:** [June 6, 2023, 1:46pm UTC](https://discourse.julialang.org/t/how-to-perform-an-off-policy-reinforcement-learning-using-reinforcementlearning-jl/99940 "2023-06-06T13:46:45Z")

</div>

I am a beginner of both Julia and RL. Now I’m trying to training a Q-based tabular policy with off-policy strategy using ReinforcementLearning.jl. Let behavior\_policy be a RandomPolicy (for example) to collect experience…

---

## [Colarbar: equal-sized color rectangles](https://discourse.julialang.org/t/colarbar-equal-sized-color-rectangles/99932)

<div class="topic-metadata">

**Author:** [@thunderclouds](https://discourse.julialang.org/u/thunderclouds)\
**Replies:** 3\
**Last updated:** [June 6, 2023, 1:47pm UTC](https://discourse.julialang.org/t/colarbar-equal-sized-color-rectangles/99932 "2023-06-06T13:47:26Z")

</div>

How do I create a color bar with the same height for each level? Default scales rectangles according to the levels. using CairoMakie xs = LinRange(0, 20, 50) ys = LinRange(0, 15, 50) zs = \[cos(x) \* sin(y) for x in …

---

## [Change distance between dots in \`linestyle=:dot\` plotting option](https://discourse.julialang.org/t/change-distance-between-dots-in-linestyle-dot-plotting-option/86592)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 6\
**Last updated:** [June 6, 2023, 1:14pm UTC](https://discourse.julialang.org/t/change-distance-between-dots-in-linestyle-dot-plotting-option/86592 "2023-06-06T13:14:36Z")

</div>

I am plotting something like: plot(x-\>x^2,lw=5,linestyle=:dot) Is there some way to modify the distance between the individual dots in the plot?

---

## [Class imbalance in the predictors](https://discourse.julialang.org/t/class-imbalance-in-the-predictors/99927)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 3\
**Last updated:** [June 6, 2023, 12:12pm UTC](https://discourse.julialang.org/t/class-imbalance-in-the-predictors/99927 "2023-06-06T12:12:34Z")

</div>

Hello. I know we have to take care of class imbalance in the outcome variable. But what about class imbalance in the predictors? When is it important for our models?

---

## [Can we use logistic regression directly in a case control study?](https://discourse.julialang.org/t/can-we-use-logistic-regression-directly-in-a-case-control-study/99046)

<div class="topic-metadata">

**Author:** [@Juan](https://discourse.julialang.org/u/Juan)\
**Replies:** 2\
**Last updated:** [June 6, 2023, 12:32am UTC](https://discourse.julialang.org/t/can-we-use-logistic-regression-directly-in-a-case-control-study/99046 "2023-06-06T00:32:33Z")

</div>

Hello. Say I have a very imbalanced dataset, so I decide to do a case-control study. For example, we have 1 million healthy people and 300 people with cancer. I take 300 people from each group and I want to fit a logi…

---

## [Symmetry & SOS Optimization Compatibility Issues?](https://discourse.julialang.org/t/symmetry-sos-optimization-compatibility-issues/98057)

<div class="topic-metadata">

**Author:** [@ilovemath](https://discourse.julialang.org/u/ilovemath)\
**Replies:** 6\
**Last updated:** [June 5, 2023, 8:29pm UTC](https://discourse.julialang.org/t/symmetry-sos-optimization-compatibility-issues/98057 "2023-06-05T20:29:12Z")

</div>

Hello all, I am trying to implement rotational symmetry for an SOS problem. In particular, I followed the example problem here: Dihedral symmetry of the Robinson form · SumOfSquares. My goal is to use a cyclic group i…

---

## [Elasticsearch](https://discourse.julialang.org/t/elasticsearch/4277)

<div class="topic-metadata">

**Author:** [@gavelasq](https://discourse.julialang.org/u/gavelasq)\
**Replies:** 2\
**Last updated:** [June 5, 2023, 5:24pm UTC](https://discourse.julialang.org/t/elasticsearch/4277 "2023-06-05T17:24:41Z")

</div>

How can I use Elasticsearch in Julia? Is there a package to use Elasticsearch in Julia? Can I use PyCall to use Python’s Elasticsearch package?

---

## [GPU: Scalar indexing in kernel programming](https://discourse.julialang.org/t/gpu-scalar-indexing-in-kernel-programming/99878)

<div class="topic-metadata">

**Author:** [@yuwenchen95](https://discourse.julialang.org/u/yuwenchen95)\
**Replies:** 2\
**Last updated:** [June 5, 2023, 12:36pm UTC](https://discourse.julialang.org/t/gpu-scalar-indexing-in-kernel-programming/99878 "2023-06-05T12:36:12Z")

</div>

Hi all, I have a vector x of dim m\*n and want to parallel an operation over each slice of length m. For example, x\_{1:m} corresponds to a value -log(x\[1\]^2 - sum\_{i=2}^m x\[i\]^2) as shown in the function compute\_barrier!…

---

## [Compute fourrier transform in Julia](https://discourse.julialang.org/t/compute-fourrier-transform-in-julia/99664)

<div class="topic-metadata">

**Author:** [@Fourier](https://discourse.julialang.org/u/Fourier)\
**Replies:** 21\
**Last updated:** [June 5, 2023, 9:07am UTC](https://discourse.julialang.org/t/compute-fourrier-transform-in-julia/99664 "2023-06-05T09:07:16Z")

</div>

Given a function evaluated to a grid, how can I compute its fourrier transform nummericially? For example, given the box function function step(x) if abs(x) \< a return 1 else return 0 end end how can I comput…

---

## [Step response using ModelingToolkit](https://discourse.julialang.org/t/step-response-using-modelingtoolkit/99846)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 10\
**Last updated:** [June 5, 2023, 5:02am UTC](https://discourse.julialang.org/t/step-response-using-modelingtoolkit/99846 "2023-06-05T05:02:15Z")

</div>

I have a non-linear system defined using ModelingToolkit. Now I want to plot the step response. I use the following code: using ModelingToolkit, OrdinaryDiffEq, DataInterpolations, Plots Cp=\[0.024384377390186646,0.0381…

---

## [\[ANN\] Announcing SPICEApplications.jl](https://discourse.julialang.org/t/ann-announcing-spiceapplications-jl/99854)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 0\
**Last updated:** [June 4, 2023, 5:45pm UTC](https://discourse.julialang.org/t/ann-announcing-spiceapplications-jl/99854 "2023-06-04T17:45:43Z")

</div>

The SPICE Toolkit (provided to Julia through CSPICE\_jll) provides applications, which are a subset of all the available utility functions provided by NAIF / NASA. One critical file is mkspk, which can turn CSV files int…

---

## [Change record sequence in a BAM file using XAM](https://discourse.julialang.org/t/change-record-sequence-in-a-bam-file-using-xam/98141)

<div class="topic-metadata">

**Author:** [@ForestRaven](https://discourse.julialang.org/u/ForestRaven)\
**Replies:** 2\
**Last updated:** [June 4, 2023, 8:19am UTC](https://discourse.julialang.org/t/change-record-sequence-in-a-bam-file-using-xam/98141 "2023-06-04T08:19:05Z")

</div>

Hi, I would like to update the sequence of a list of records in a BAM file. Looking at the code of record.jl, data is stored as Vector{UInt64} and some dark magic is used to convert to a DNA sequence. As it looks very …

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

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