# Specific Domains

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

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

**Page:** 499

---

## [Strange behavior with deepcopy](https://discourse.julialang.org/t/strange-behavior-with-deepcopy/23342)

<div class="topic-metadata">

**Author:** [@Thuener](https://discourse.julialang.org/u/Thuener)\
**Replies:** 6\
**Last updated:** [May 8, 2019, 10:15am UTC](https://discourse.julialang.org/t/strange-behavior-with-deepcopy/23342 "2019-05-08T10:15:45Z")

</div>

I’m getting a strange behavior with deepcopy. Deepcopy is still not supported? There is any way to copy JuMP model? using JuMP, Clp m = Model(solver = ClpSolver()) @variable(m, 0 \<= x \<= 2 ) @variable(m, 0 \<= y \<= 30 …

---

## [Installing CuArrays without libcuda?](https://discourse.julialang.org/t/installing-cuarrays-without-libcuda/23939)

<div class="topic-metadata">

**Author:** [@jstrube](https://discourse.julialang.org/u/jstrube)\
**Replies:** 7\
**Last updated:** [May 7, 2019, 6:00pm UTC](https://discourse.julialang.org/t/installing-cuarrays-without-libcuda/23939 "2019-05-07T18:00:12Z")

</div>

I’m working on a shared system, and the admins are making various CUDA versions available via module load. Unfortunately, the installed modules don’t contain libcuda.so, but it looks like pretty much everything else is t…

---

## [Rand() doesn't work for NormalInverseGaussian](https://discourse.julialang.org/t/rand-doesnt-work-for-normalinversegaussian/23948)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 2\
**Last updated:** [May 7, 2019, 5:12pm UTC](https://discourse.julialang.org/t/rand-doesnt-work-for-normalinversegaussian/23948 "2019-05-07T17:12:33Z")

</div>

rand() doesn’t work for NormalInverseGaussian. x = rand(dnig, 100) Error: MethodError: no method matching iterate(::NormalInverseGaussian{Float64}) Would somebody help to generate random values?

---

## [ANN: Pseudoseq.jl - Simulating DNA sequencing experiments](https://discourse.julialang.org/t/ann-pseudoseq-jl-simulating-dna-sequencing-experiments/21736)

<div class="topic-metadata">

**Author:** [@Ward9250](https://discourse.julialang.org/u/Ward9250)\
**Replies:** 6\
**Last updated:** [May 7, 2019, 3:00pm UTC](https://discourse.julialang.org/t/ann-pseudoseq-jl-simulating-dna-sequencing-experiments/21736 "2019-05-07T15:00:24Z")

</div>

Hi Everyone, I’d like to announce a package I’ve been working on for my research group here at the Earlham Institute, (the first full julia project… I think I’m getting to them :wink: ) that is currently close to releas…

---

## [Reshape DistributedArrays](https://discourse.julialang.org/t/reshape-distributedarrays/23622)

<div class="topic-metadata">

**Author:** [@monty](https://discourse.julialang.org/u/monty)\
**Replies:** 1\
**Last updated:** [May 7, 2019, 2:39pm UTC](https://discourse.julialang.org/t/reshape-distributedarrays/23622 "2019-05-07T14:39:36Z")

</div>

From an existing DistributedArrays dr = DistributedArrays.distribute(rand(2,3,4)) I want to generate a new DistributedArrays which is flattened version of dr with dimensions 3 x 12 by “vcat” out of the following slices…

---

## [Optimizing a function with constraints in NLopt (want a different expression returned than optimized)](https://discourse.julialang.org/t/optimizing-a-function-with-constraints-in-nlopt-want-a-different-expression-returned-than-optimized/23916)

<div class="topic-metadata">

**Author:** [@CPPhysics](https://discourse.julialang.org/u/CPPhysics)\
**Replies:** 2\
**Last updated:** [May 6, 2019, 8:11pm UTC](https://discourse.julialang.org/t/optimizing-a-function-with-constraints-in-nlopt-want-a-different-expression-returned-than-optimized/23916 "2019-05-06T20:11:58Z")

</div>

Hello, I am optimizing a function utilizing Lagrange constraints, and I would like NLopt to optimize an expression with Lagrange constraints, but return the value of that expression without constraints. I added a flag to…

---

## [SpecialFunctions ( Julia v1.0 )](https://discourse.julialang.org/t/specialfunctions-julia-v1-0/23920)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 6\
**Last updated:** [May 6, 2019, 6:55pm UTC](https://discourse.julialang.org/t/specialfunctions-julia-v1-0/23920 "2019-05-06T18:55:11Z")

</div>

Good day. I need to use besselk function from SpecialFunctions package. Unfortunately, SpecialFunctions don’t work under v1.0 Julia version. At the same time Distributions.jl uses besselk function and work under v1.0 …

---

## [JuMP: Real Variable used in Complex expression](https://discourse.julialang.org/t/jump-real-variable-used-in-complex-expression/23832)

<div class="topic-metadata">

**Author:** [@eschoute](https://discourse.julialang.org/u/eschoute)\
**Replies:** 5\
**Last updated:** [May 6, 2019, 6:44pm UTC](https://discourse.julialang.org/t/jump-real-variable-used-in-complex-expression/23832 "2019-05-06T18:44:34Z")

</div>

Possibly related to How Define a Complex JuMP Variable I’m wondering if it’s possible to define objective functions and/or constraint functions take take in real variables and return a real number (i.e. f(x): ℝ^n → ℝ) b…

---

## [Percentile Fan Plot](https://discourse.julialang.org/t/percentile-fan-plot/23894)

<div class="topic-metadata">

**Author:** [@RJJardine](https://discourse.julialang.org/u/RJJardine)\
**Replies:** 2\
**Last updated:** [May 6, 2019, 3:06pm UTC](https://discourse.julialang.org/t/percentile-fan-plot/23894 "2019-05-06T15:06:10Z")

</div>

Hi folks! Does anyone know of a way to plot percentile fans using Plots.jl? The aim is to create something similar to the chart below, with the different shades representing the levels of uncertainty in possible outcom…

---

## [Encode matrix function which depends on optimization variables at each step](https://discourse.julialang.org/t/encode-matrix-function-which-depends-on-optimization-variables-at-each-step/23831)

<div class="topic-metadata">

**Author:** [@jacob-roth](https://discourse.julialang.org/u/jacob-roth)\
**Replies:** 7\
**Last updated:** [May 5, 2019, 11:24pm UTC](https://discourse.julialang.org/t/encode-matrix-function-which-depends-on-optimization-variables-at-each-step/23831 "2019-05-05T23:24:28Z")

</div>

I’m considering a problem which involves constraints on a solution to a linear system whose coefficients depend on the optimization variables. So essentially, the constraints are functions of a matrix inverse involving t…

---

## [Integer optimisation with user's multivariate functions: Possible in Julia?](https://discourse.julialang.org/t/integer-optimisation-with-users-multivariate-functions-possible-in-julia/17924)

<div class="topic-metadata">

**Author:** [@Olegg](https://discourse.julialang.org/u/Olegg)\
**Replies:** 8\
**Last updated:** [May 5, 2019, 11:24pm UTC](https://discourse.julialang.org/t/integer-optimisation-with-users-multivariate-functions-possible-in-julia/17924 "2019-05-05T23:24:47Z")

</div>

My optimisation problem has convex multivariate constraints with matrix operations: inverse and determinant. The matrices are symmetric PSD from dim 2x2 up to 10x10. I’ve solved the continuous case in JuMP and Ipopt, w…

---

## [Modelling Frobenius norm of Matrix using one SecondOrderCone() constraint](https://discourse.julialang.org/t/modelling-frobenius-norm-of-matrix-using-one-secondordercone-constraint/23881)

<div class="topic-metadata">

**Author:** [@ryancorywright](https://discourse.julialang.org/u/ryancorywright)\
**Replies:** 2\
**Last updated:** [May 5, 2019, 9:21pm UTC](https://discourse.julialang.org/t/modelling-frobenius-norm-of-matrix-using-one-secondordercone-constraint/23881 "2019-05-05T21:21:40Z")

</div>

Hi all, I was wondering if it is possible to model the Frobenius norm of a matrix using a single second order cone constraint in JuMP 0.19 (perhaps by reshaping the matrix). In JuMP 0.18.5 this was possible via: @vari…

---

## [Training a network to optimize output value of another network](https://discourse.julialang.org/t/training-a-network-to-optimize-output-value-of-another-network/23857)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 4\
**Last updated:** [May 5, 2019, 3:35pm UTC](https://discourse.julialang.org/t/training-a-network-to-optimize-output-value-of-another-network/23857 "2019-05-05T15:35:40Z")

</div>

I am trying to set-up a Deep Deterministic Policy Gradient algorithm (Reinforcement Learning) with Flux. Let me give a context-free explanation of what I am trying to achieve. Say I have two networks A and C. Network A …

---

## [Bug with Union type in Query.jl?](https://discourse.julialang.org/t/bug-with-union-type-in-query-jl/23865)

<div class="topic-metadata">

**Author:** [@glwc](https://discourse.julialang.org/u/glwc)\
**Replies:** 2\
**Last updated:** [May 5, 2019, 1:10pm UTC](https://discourse.julialang.org/t/bug-with-union-type-in-query-jl/23865 "2019-05-05T13:10:05Z")

</div>

I’d appreciate help to understand the following. The particular code here with a problem is using a @select expression to extract the second number embedded in a string in DataFrame column elements which have the type …

---

## [User guide for optimization in Julia](https://discourse.julialang.org/t/user-guide-for-optimization-in-julia/23852)

<div class="topic-metadata">

**Author:** [@RohiniShetty](https://discourse.julialang.org/u/RohiniShetty)\
**Replies:** 4\
**Last updated:** [May 5, 2019, 1:15am UTC](https://discourse.julialang.org/t/user-guide-for-optimization-in-julia/23852 "2019-05-05T01:15:56Z")

</div>

I am using Julia for the first time to work on an optimization project. Is there a manual or guide which has information wrt how to declare indices, parameters, decision variable, objective function, and constraints. Th…

---

## [Issue with DSP.Util.hilbert](https://discourse.julialang.org/t/issue-with-dsp-util-hilbert/23842)

<div class="topic-metadata">

**Author:** [@koenigjaeger](https://discourse.julialang.org/u/koenigjaeger)\
**Replies:** 1\
**Last updated:** [May 4, 2019, 7:15am UTC](https://discourse.julialang.org/t/issue-with-dsp-util-hilbert/23842 "2019-05-04T07:15:16Z")

</div>

I was looking to get the envelope of a signal and looking at the example at Discrete-time analytic signal using Hilbert transform - MATLAB hilbert and checking this in octave using the signal package from forge I am gett…

---

## [Hyperbolic plots](https://discourse.julialang.org/t/hyperbolic-plots/23830)

<div class="topic-metadata">

**Author:** [@chakravala](https://discourse.julialang.org/u/chakravala)\
**Replies:** 4\
**Last updated:** [May 4, 2019, 12:45am UTC](https://discourse.julialang.org/t/hyperbolic-plots/23830 "2019-05-04T00:45:30Z")

</div>

Would appreciate it if @cormullion (or others) could make a tutorial for (colorful) hyperbolic plots

---

## [Constant/degenerate distribution](https://discourse.julialang.org/t/constant-degenerate-distribution/23817)

<div class="topic-metadata">

**Author:** [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Replies:** 3\
**Last updated:** [May 3, 2019, 3:50pm UTC](https://discourse.julialang.org/t/constant-degenerate-distribution/23817 "2019-05-03T15:50:48Z")

</div>

Does any Julia package define a specific type for a constant/degenerate distribution, ie a given value with probability 1? I know I can use a Distributions.Categorical with just one value, the question is about having a…

---

## [GPU - CLArrays, GPUArrays - Extract a Matrix from an Array](https://discourse.julialang.org/t/gpu-clarrays-gpuarrays-extract-a-matrix-from-an-array/23741)

<div class="topic-metadata">

**Author:** [@MatsMor](https://discourse.julialang.org/u/MatsMor)\
**Replies:** 2\
**Last updated:** [May 1, 2019, 9:07pm UTC](https://discourse.julialang.org/t/gpu-clarrays-gpuarrays-extract-a-matrix-from-an-array/23741 "2019-05-01T21:07:05Z")

</div>

Hi all, I am new with GPU programming (and therefore CLArrays and GPUArrays). I am building a simple kernel using those 2 packages and I need to extract an entire row (or any sub-matrix) of a very large Array (call it A…

---

## [Problem to import SPSS/SAS Data](https://discourse.julialang.org/t/problem-to-import-spss-sas-data/23728)

<div class="topic-metadata">

**Author:** [@Alessandro\_Vivas](https://discourse.julialang.org/u/Alessandro_Vivas)\
**Replies:** 3\
**Last updated:** [May 1, 2019, 12:05pm UTC](https://discourse.julialang.org/t/problem-to-import-spss-sas-data/23728 "2019-05-01T12:05:48Z")

</div>

I’m working with SPSS data, but I’m not able to import data. When I import with ReadStat I am not able to convert data to DataFrame. And when I use StatFiles I’m having import error problems. What is the correct way to i…

---

## [Generating random quantity from a vector of quantities](https://discourse.julialang.org/t/generating-random-quantity-from-a-vector-of-quantities/23718)

<div class="topic-metadata">

**Author:** [@Arega\_Getaneh](https://discourse.julialang.org/u/Arega_Getaneh)\
**Replies:** 6\
**Last updated:** [May 1, 2019, 8:54am UTC](https://discourse.julialang.org/t/generating-random-quantity-from-a-vector-of-quantities/23718 "2019-05-01T08:54:04Z")

</div>

Q\_mean\_vec=\[0 3000 3500 4000 4500 5000 5500 6000 6500 7000 7500 8000\] qmean=0 for Q\_v=Q\_mean\_vec qmean=qmean+1 Q\_mean=Q\_v Q\_std=0.2; Q\_sigma=Q\_std.\*Q\_v dQ = MvNormal(Q\_v,Q\_sigma) Q=rand(dQ,W); end I wanted Q to…

---

## [Efficient memory representation of sequences with few mutations](https://discourse.julialang.org/t/efficient-memory-representation-of-sequences-with-few-mutations/23466)

<div class="topic-metadata">

**Author:** [@e3c6](https://discourse.julialang.org/u/e3c6)\
**Replies:** 9\
**Last updated:** [May 1, 2019, 11:04am UTC](https://discourse.julialang.org/t/efficient-memory-representation-of-sequences-with-few-mutations/23466 "2019-05-01T11:04:14Z")

</div>

I have a dataset which consists of a wild-type sequence and many (\\sim10^7 or more) mutated sequences which differ from the wild-type in only a few positions. I want to represent this efficiently in memory, by storing th…

---

## [Avoid splat (...) operator for keywords arguments?](https://discourse.julialang.org/t/avoid-splat-operator-for-keywords-arguments/23725)

<div class="topic-metadata">

**Author:** [@Eric\_Chen](https://discourse.julialang.org/u/Eric_Chen)\
**Replies:** 1\
**Last updated:** [May 1, 2019, 8:36am UTC](https://discourse.julialang.org/t/avoid-splat-operator-for-keywords-arguments/23725 "2019-05-01T08:36:30Z")

</div>

from: Performance tips Avoid the splat ( ... ) operator for keyword arguments. However, from official Julia guide: I dont find this \* Avoid the splat ( ... ) operator for keyword arguments. Question: Is the off…

---

## [JuMP 0.18 + CPLEX: How to force user cuts?](https://discourse.julialang.org/t/jump-0-18-cplex-how-to-force-user-cuts/23659)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 4\
**Last updated:** [May 1, 2019, 7:07am UTC](https://discourse.julialang.org/t/jump-0-18-cplex-how-to-force-user-cuts/23659 "2019-05-01T07:07:46Z")

</div>

Dear community, is there any way to force CPLEX to add all user cuts (i.e., passing the option CPX\_USECUT\_FORCE)? Here https://github.com/JuliaOpt/CPLEX.jl/blob/master/src/cpx\_callbacks.jl the option seems to be hard-c…

---

## [A package for Kalman Filters for Navigation](https://discourse.julialang.org/t/a-package-for-kalman-filters-for-navigation/23713)

<div class="topic-metadata">

**Author:** [@Deb](https://discourse.julialang.org/u/Deb)\
**Replies:** 3\
**Last updated:** [May 1, 2019, 6:25am UTC](https://discourse.julialang.org/t/a-package-for-kalman-filters-for-navigation/23713 "2019-05-01T06:25:20Z")

</div>

Hi, I am relatively new to Julia and am working on a localization problem in the area of navigation. Can someone direct me to some stable, well-maintained and reliable packages for Kalman filters, Extended Kalman filters…

---

## [Gadfly plot - zoom does not work](https://discourse.julialang.org/t/gadfly-plot-zoom-does-not-work/23651)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 2\
**Last updated:** [April 30, 2019, 9:59am UTC](https://discourse.julialang.org/t/gadfly-plot-zoom-does-not-work/23651 "2019-04-30T09:59:24Z")

</div>

Plotting with Gadfly, the zoom option does not work. Panning works perfectly both with the mouse (trackpad in this case) and with the H,J,K,L keys. But zooming does not work not with the mouse, and not with the +,- keys. …

---

## [Strange behavior of vec() in Julia 0.7](https://discourse.julialang.org/t/strange-behavior-of-vec-in-julia-0-7/23667)

<div class="topic-metadata">

**Author:** [@adriano.vilela](https://discourse.julialang.org/u/adriano.vilela)\
**Replies:** 2\
**Last updated:** [April 29, 2019, 10:27pm UTC](https://discourse.julialang.org/t/strange-behavior-of-vec-in-julia-0-7/23667 "2019-04-29T22:27:58Z")

</div>

I just got bitten by some unexpected behavior of vec() in julia 0.7. When I run the code below N = 3 A = randn(N,N) + im .\* randn(N,N) x = randn(N) z = x'\*A vec(z) I get this: julia\> N = 3 3 julia\> A = randn(N,N) + i…

---

## [Problems trying to rotate annotations in a plot](https://discourse.julialang.org/t/problems-trying-to-rotate-annotations-in-a-plot/23639)

<div class="topic-metadata">

**Author:** [@ale](https://discourse.julialang.org/u/ale)\
**Replies:** 3\
**Last updated:** [April 29, 2019, 9:59am UTC](https://discourse.julialang.org/t/problems-trying-to-rotate-annotations-in-a-plot/23639 "2019-04-29T09:59:56Z")

</div>

Hi, I am trying to write some annotations in a plot, but instead of horizontally, I would like them to do that vertically. I am using Julia 0.6.4. My code is like: using Plots # Notice: I'm not using Pyplot package, b…

---

## [Best practice to solve optimization problem repeatedly in a function with MathOptInterface](https://discourse.julialang.org/t/best-practice-to-solve-optimization-problem-repeatedly-in-a-function-with-mathoptinterface/23592)

<div class="topic-metadata">

**Author:** [@Yuya-Furusawa](https://discourse.julialang.org/u/Yuya-Furusawa)\
**Replies:** 6\
**Last updated:** [April 28, 2019, 12:35pm UTC](https://discourse.julialang.org/t/best-practice-to-solve-optimization-problem-repeatedly-in-a-function-with-mathoptinterface/23592 "2019-04-28T12:35:05Z")

</div>

I want to create the function to solve multiple optimization problems with MathOptInterface, such as using MathOptInterface const MOI = MathOptInterface function opt(optimizer::MOI.AbstractOptimizer) ... for i …

---

## [Is my understanding of a data reading benchmark correct?](https://discourse.julialang.org/t/is-my-understanding-of-a-data-reading-benchmark-correct/23611)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 4\
**Last updated:** [April 28, 2019, 7:05am UTC](https://discourse.julialang.org/t/is-my-understanding-of-a-data-reading-benchmark-correct/23611 "2019-04-28T07:05:18Z")

</div>

So lately I’ve spend a lot of time developing a tool reading data from files, and I just want to understand if my benchmarking procedure is correct. Currently I do something like: using Benchmarktools @benchmark funct…

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

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