# Specific Domains

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

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

**Page:** 254

---

## [Is the any package or for solving a MIP with branch and bound that gives the user the developed constraints during the solution procedure?](https://discourse.julialang.org/t/is-the-any-package-or-for-solving-a-mip-with-branch-and-bound-that-gives-the-user-the-developed-constraints-during-the-solution-procedure/86714)

<div class="topic-metadata">

**Author:** [@Alex\_ricci](https://discourse.julialang.org/u/Alex_ricci)\
**Replies:** 2\
**Last updated:** [September 4, 2022, 9:50pm UTC](https://discourse.julialang.org/t/is-the-any-package-or-for-solving-a-mip-with-branch-and-bound-that-gives-the-user-the-developed-constraints-during-the-solution-procedure/86714 "2022-09-04T21:50:18Z")

</div>

I have a two-stage stochastic optimization model with binary and continuous variables in the first and the second stages. To solve this I employ a benders decomposition technique. In this technique I need to get the dua…

---

## [Inset axis with non-transparent background](https://discourse.julialang.org/t/inset-axis-with-non-transparent-background/86763)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 4\
**Last updated:** [September 4, 2022, 9:20pm UTC](https://discourse.julialang.org/t/inset-axis-with-non-transparent-background/86763 "2022-09-04T21:20:06Z")

</div>

My question is essentially the same as this and this: I want to add an inset axis to an existing (main) axis, but the inset axis looks transparent and I can see the grid lines of the main axis through the inset. The ans…

---

## [Zero gradient when using argmax](https://discourse.julialang.org/t/zero-gradient-when-using-argmax/86745)

<div class="topic-metadata">

**Author:** [@taotree](https://discourse.julialang.org/u/taotree)\
**Replies:** 5\
**Last updated:** [September 4, 2022, 2:50pm UTC](https://discourse.julialang.org/t/zero-gradient-when-using-argmax/86745 "2022-09-04T14:50:35Z")

</div>

The following example shows a zero gradient (update! appears to do nothing), but if I change the argmax calls to sum calls, then the gradient is non-zero. Is argmax not supported, or is there some other thing wrong with …

---

## [Curve Fitting With Error In Variables](https://discourse.julialang.org/t/curve-fitting-with-error-in-variables/82614)

<div class="topic-metadata">

**Author:** [@vini-fda](https://discourse.julialang.org/u/vini-fda)\
**Replies:** 5\
**Last updated:** [September 4, 2022, 4:27am UTC](https://discourse.julialang.org/t/curve-fitting-with-error-in-variables/82614 "2022-09-04T04:27:19Z")

</div>

I’m looking for a way to do curve fitting where the data has error both on x and y. I’ve read up on physics forums about errors-in-variables fitting, but I’d like to know if there are already any functionalities that ju…

---

## [SOLVED: Cannot Precompile OrdinaryDiffEq. Do others have problems with SciML/MTK packages at the moment?](https://discourse.julialang.org/t/solved-cannot-precompile-ordinarydiffeq-do-others-have-problems-with-sciml-mtk-packages-at-the-moment/86729)

<div class="topic-metadata">

**Author:** [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Replies:** 0\
**Last updated:** [September 3, 2022, 1:52pm UTC](https://discourse.julialang.org/t/solved-cannot-precompile-ordinarydiffeq-do-others-have-problems-with-sciml-mtk-packages-at-the-moment/86729 "2022-09-03T13:52:46Z")

</div>

SOLVED: not sure what the problem was. But setting the environment back up from scratch, after deleting all the precompile cache helped. I guess I had a few bad bits cached. I just did an update of my Julia packages an…

---

## [NCDatasets: copy the properties of a variable](https://discourse.julialang.org/t/ncdatasets-copy-the-properties-of-a-variable/85721)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 11\
**Last updated:** [September 3, 2022, 2:13pm UTC](https://discourse.julialang.org/t/ncdatasets-copy-the-properties-of-a-variable/85721 "2022-09-03T14:13:13Z")

</div>

Is there a facility to copy a netCDF variable including its axes (dimensions) and attributes at once? A scenario: ds\_org = Dataset("original.nc", "r") org = ds\["orgvar"\] Dataset("new.nc", "c") do ds\_new defVar(ds\_new…

---

## [How do I save a plot?](https://discourse.julialang.org/t/how-do-i-save-a-plot/35370)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 7\
**Last updated:** [September 3, 2022, 1:41pm UTC](https://discourse.julialang.org/t/how-do-i-save-a-plot/35370 "2022-09-03T13:41:29Z")

</div>

julia\> out = DataFrame(Q1 = \[3,3,3\], Q2 = \[3,2,1\]) 3×2 DataFrame │ Row │ Q1 │ Q2 │ │ │ Int64 │ Int64 │ ├─────┼───────┼───────┤ │ 1 │ 3 │ 3 │ │ 2 │ 3 │ 2 │ │ 3 │ 3 │ 1 │ julia\> fig…

---

## [Performance with intermittent singleton dimensions](https://discourse.julialang.org/t/performance-with-intermittent-singleton-dimensions/86374)

<div class="topic-metadata">

**Author:** [@RainerHeintzmann](https://discourse.julialang.org/u/RainerHeintzmann)\
**Replies:** 11\
**Last updated:** [September 3, 2022, 12:04pm UTC](https://discourse.julialang.org/t/performance-with-intermittent-singleton-dimensions/86374 "2022-09-03T12:04:00Z")

</div>

Hello performance aficionados. I was testing a bit the copy performance, to see if there may be caching issues with multidimensional array copies and am generally quite impressed. However, I found one case that may lead…

---

## [Arithmetic with a specified (low) number of digits](https://discourse.julialang.org/t/arithmetic-with-a-specified-low-number-of-digits/86713)

<div class="topic-metadata">

**Author:** [@DanielVandH](https://discourse.julialang.org/u/DanielVandH)\
**Replies:** 1\
**Last updated:** [September 3, 2022, 1:12am UTC](https://discourse.julialang.org/t/arithmetic-with-a-specified-low-number-of-digits/86713 "2022-09-03T01:12:22Z")

</div>

Is it possible to perform computations using, say, five-digit arithmetic with a given rounding mode? For example, can I easily compute x/10^{-5}, x = 0.44446, in 5-digit arithmetic with rounding to the nearest number? I …

---

## [Can MTK validate dimensions when using "connect" function?](https://discourse.julialang.org/t/can-mtk-validate-dimensions-when-using-connect-function/86699)

<div class="topic-metadata">

**Author:** [@TS-CUBED](https://discourse.julialang.org/u/TS-CUBED)\
**Replies:** 2\
**Last updated:** [September 2, 2022, 10:49pm UTC](https://discourse.julialang.org/t/can-mtk-validate-dimensions-when-using-connect-function/86699 "2022-09-02T22:49:02Z")

</div>

I’m trying to set up a circulation model with units. Or at least allow consistency checks. So I was playing around with Model Validation and Units · ModelingToolkit.jl and set up the following: using ModelingToolkit, Un…

---

## [How do I insert a specific string into a BioSequences DNA string?](https://discourse.julialang.org/t/how-do-i-insert-a-specific-string-into-a-biosequences-dna-string/86694)

<div class="topic-metadata">

**Author:** [@zhangchunyong](https://discourse.julialang.org/u/zhangchunyong)\
**Replies:** 1\
**Last updated:** [September 2, 2022, 4:40pm UTC](https://discourse.julialang.org/t/how-do-i-insert-a-specific-string-into-a-biosequences-dna-string/86694 "2022-09-02T16:40:51Z")

</div>

using BioSequences julia\> a=dna"ATCG" 4nt DNA Sequence: ATCG julia\> insert!(a,2,'C') 5nt DNA Sequence: ACTCG But if I inserted more than one chars,it will fail. julia\> insert!(a,2,"CG") ERROR: MethodError: Cannot \`conv…

---

## [Change SCS solver options](https://discourse.julialang.org/t/change-scs-solver-options/86676)

<div class="topic-metadata">

**Author:** [@mosby](https://discourse.julialang.org/u/mosby)\
**Replies:** 2\
**Last updated:** [September 2, 2022, 2:56pm UTC](https://discourse.julialang.org/t/change-scs-solver-options/86676 "2022-09-02T14:56:34Z")

</div>

Hi, I am new to Julia, while I am trying to use SCS.Optimizer to get the solution of projection problem, I see SCS has default eps = 1e-4, what if I want to be more accurate, like 1e-6, how could I change it? I found s…

---

## [Survival analysis in Turing: vectorized version leads to strange errors](https://discourse.julialang.org/t/survival-analysis-in-turing-vectorized-version-leads-to-strange-errors/86301)

<div class="topic-metadata">

**Author:** [@vfonov](https://discourse.julialang.org/u/vfonov)\
**Replies:** 5\
**Last updated:** [September 2, 2022, 1:03pm UTC](https://discourse.julialang.org/t/survival-analysis-in-turing-vectorized-version-leads-to-strange-errors/86301 "2022-09-02T13:03:31Z")

</div>

I have an example for a simple survival analysis in Turing that works fine when using loop but produces strange errors when I attempt to convert it to vectorized form: # Import Turing and Distributions. using Turing, Di…

---

## [DimensionMismatch for a Raster](https://discourse.julialang.org/t/dimensionmismatch-for-a-raster/86677)

<div class="topic-metadata">

**Author:** [@ryofurue](https://discourse.julialang.org/u/ryofurue)\
**Replies:** 1\
**Last updated:** [September 2, 2022, 9:33am UTC](https://discourse.julialang.org/t/dimensionmismatch-for-a-raster/86677 "2022-09-02T09:33:45Z")

</div>

A Raster behaves just like an Array in suitable contexts, but I found the following difference in broadcast behavior. Is it 1) an intended behavior, 2) an unavoidable inconsistency, or 3) a bug? Basically, avr = sum(v…

---

## [Range step cannot be zero](https://discourse.julialang.org/t/range-step-cannot-be-zero/66948)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 10\
**Last updated:** [September 2, 2022, 8:18am UTC](https://discourse.julialang.org/t/range-step-cannot-be-zero/66948 "2022-09-02T08:18:37Z")

</div>

I don’t know how to make a minimal reproducer of this but I can’t make it work either. Here’s the error I can share. Any ideas would be helpful. I’m trying to make a Band plot but all the high values are equal and all th…

---

## [TLS Support Questions](https://discourse.julialang.org/t/tls-support-questions/84004)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 5\
**Last updated:** [September 2, 2022, 6:24am UTC](https://discourse.julialang.org/t/tls-support-questions/84004 "2022-09-02T06:24:20Z")

</div>

Currently HTTP.jl hard-codes a dependency on MbedTLS.jl for TLS support; it has served us decently over the years, but there have always been a lingering set of errors that crop up that are very difficult to debug; eithe…

---

## [Save a figure with a specific size with a subplot of a specific size in Plots.jl (with PGFPlotsX backend)](https://discourse.julialang.org/t/save-a-figure-with-a-specific-size-with-a-subplot-of-a-specific-size-in-plots-jl-with-pgfplotsx-backend/86614)

<div class="topic-metadata">

**Author:** [@JonasWickman](https://discourse.julialang.org/u/JonasWickman)\
**Replies:** 2\
**Last updated:** [September 1, 2022, 3:02pm UTC](https://discourse.julialang.org/t/save-a-figure-with-a-specific-size-with-a-subplot-of-a-specific-size-in-plots-jl-with-pgfplotsx-backend/86614 "2022-09-01T15:02:54Z")

</div>

In PyPlot, I can output a figure with a specific size containing an axis in the figure with a specific size using the code: using PyPlot fig\_width = 4.0 fig\_height = 3.0 fig = figure( figsize = (fig\_width, fig\_height) )…

---

## [Issues with PSO within Optim.jl](https://discourse.julialang.org/t/issues-with-pso-within-optim-jl/86638)

<div class="topic-metadata">

**Author:** [@NTmuir](https://discourse.julialang.org/u/NTmuir)\
**Replies:** 0\
**Last updated:** [September 1, 2022, 11:56am UTC](https://discourse.julialang.org/t/issues-with-pso-within-optim-jl/86638 "2022-09-01T11:56:17Z")

</div>

Hi there, I am fairly new to Julia and I am struggling to get a PSO to work within Optim.jl, I am using PETLION which is physical based battery simulation tool to get voltage data while changing a single physical parame…

---

## [Good solver for nonlinear diffusion PDE with source?](https://discourse.julialang.org/t/good-solver-for-nonlinear-diffusion-pde-with-source/86587)

<div class="topic-metadata">

**Author:** [@JordiBolibar](https://discourse.julialang.org/u/JordiBolibar)\
**Replies:** 1\
**Last updated:** [August 31, 2022, 1:45pm UTC](https://discourse.julialang.org/t/good-solver-for-nonlinear-diffusion-pde-with-source/86587 "2022-08-31T13:45:37Z")

</div>

With @facusapienza we’re trying to find a good solver to solve a 2D nonlinear ice flow PDE with mass addition and subtraction (i.e. heat equation with source). We are encountering a big difference in solving it with and …

---

## [How to select a subgraph in Graph.jl Package](https://discourse.julialang.org/t/how-to-select-a-subgraph-in-graph-jl-package/86631)

<div class="topic-metadata">

**Author:** [@A\_Green\_Leave](https://discourse.julialang.org/u/A_Green_Leave)\
**Replies:** 1\
**Last updated:** [September 1, 2022, 8:50am UTC](https://discourse.julialang.org/t/how-to-select-a-subgraph-in-graph-jl-package/86631 "2022-09-01T08:50:29Z")

</div>

Hi, I’m working with Graph and SimpleWeightedGraphs Packages and was wondering if they allow to extract/select a subgraph and work with it too? I mean having a subgraph knowing its edges and nodes. I’d like to work w…

---

## [Determinant of a symbolic matrix](https://discourse.julialang.org/t/determinant-of-a-symbolic-matrix/85587)

<div class="topic-metadata">

**Author:** [@qwerty](https://discourse.julialang.org/u/qwerty)\
**Replies:** 4\
**Last updated:** [September 1, 2022, 12:33am UTC](https://discourse.julialang.org/t/determinant-of-a-symbolic-matrix/85587 "2022-09-01T00:33:39Z")

</div>

With Symbolics.jl how do I get the determinant of a symbolic matrix? I tried this: @variables a\[1:2, 1:2\] det(a) The only thing I can get is: Symbolics.\_det(a, true)

---

## [Neither Parquet.jl nor Parquet2.jl can read my .parquet file](https://discourse.julialang.org/t/neither-parquet-jl-nor-parquet2-jl-can-read-my-parquet-file/86610)

<div class="topic-metadata">

**Author:** [@adienes](https://discourse.julialang.org/u/adienes)\
**Replies:** 7\
**Last updated:** [August 31, 2022, 10:45pm UTC](https://discourse.julialang.org/t/neither-parquet-jl-nor-parquet2-jl-can-read-my-parquet-file/86610 "2022-08-31T22:45:29Z")

</div>

I am trying to load a parquet file (about 1Gb) on Julia 1.8, and neither Parquet.read\_parquet nor Parquet2.readfile are able to open it. The former just hangs forever until I kill it, and the latter gives me a very long …

---

## [Best library for visualizing time series](https://discourse.julialang.org/t/best-library-for-visualizing-time-series/86602)

<div class="topic-metadata">

**Author:** [@mariuszoican](https://discourse.julialang.org/u/mariuszoican)\
**Replies:** 12\
**Last updated:** [August 31, 2022, 5:45pm UTC](https://discourse.julialang.org/t/best-library-for-visualizing-time-series/86602 "2022-08-31T17:45:45Z")

</div>

Hello, I was wondering what is the best library for visualizing time series? I’m coming from Python, where I’m using matplotlib and seaborn. Tried Gadfly, but it’s not very prone customization – I couldn’t figure out ho…

---

## [NeuralPDE cubature issue](https://discourse.julialang.org/t/neuralpde-cubature-issue/84427)

<div class="topic-metadata">

**Author:** [@marcofrancis](https://discourse.julialang.org/u/marcofrancis)\
**Replies:** 5\
**Last updated:** [August 31, 2022, 3:34pm UTC](https://discourse.julialang.org/t/neuralpde-cubature-issue/84427 "2022-08-31T15:34:07Z")

</div>

Hi, I’m moving my first steps with NeuralPDE.jl and I came up with this issue. I want to solve a fairly simple PDE: h(ω) = exp.(-(γ-1)\*ω) μω = λ\*(ω-ωb) σω = σ eq = 1/100\*Dτ(f(τ,ω)) ~ 0.5\*σω^2\*Dωω(f(τ,ω)) - μω\*Dω(f(τ,ω…

---

## [Updated Makie 0.17.13 Can't turn off the decorations](https://discourse.julialang.org/t/updated-makie-0-17-13-cant-turn-off-the-decorations/86232)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 4\
**Last updated:** [August 31, 2022, 2:07pm UTC](https://discourse.julialang.org/t/updated-makie-0-17-13-cant-turn-off-the-decorations/86232 "2022-08-31T14:07:24Z")

</div>

I have some old Makie GUI code I wrote a year or more ago. It used LScene and all that before the figure stuff was around. Now after the update, I have my decorations and splines showing up in my 3D plots, but since I …

---

## [How to save nonlinear JuMP model to file?](https://discourse.julialang.org/t/how-to-save-nonlinear-jump-model-to-file/86322)

<div class="topic-metadata">

**Author:** [@a6a3uh](https://discourse.julialang.org/u/a6a3uh)\
**Replies:** 21\
**Last updated:** [August 31, 2022, 11:13am UTC](https://discourse.julialang.org/t/how-to-save-nonlinear-jump-model-to-file/86322 "2022-08-31T11:13:37Z")

</div>

Is it unsupported feature yet? Ivoking write\_to\_file I get: ERROR: MathOptInterface.UnsupportedAttribute{MathOptInterface.NLPBlock}: Attribute MathOptInterface.NLPBlock() is not supported by the model. Could someone p…

---

## [Error : no method matching getindex](https://discourse.julialang.org/t/error-no-method-matching-getindex/86537)

<div class="topic-metadata">

**Author:** [@Eric.O](https://discourse.julialang.org/u/Eric.O)\
**Replies:** 4\
**Last updated:** [August 31, 2022, 10:33am UTC](https://discourse.julialang.org/t/error-no-method-matching-getindex/86537 "2022-08-31T10:33:44Z")

</div>

I have my code displaying the objective function with the constraints but the final answer is not reflecting. I always get the error " No method matching getindex". I look through the work severally but am not able to r…

---

## [Julia and the Game of Go](https://discourse.julialang.org/t/julia-and-the-game-of-go/86454)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 6\
**Last updated:** [August 31, 2022, 7:16am UTC](https://discourse.julialang.org/t/julia-and-the-game-of-go/86454 "2022-08-31T07:16:27Z")

</div>

Once I a while a start a new hobby project in Julia in the vacations. To learn Julia and have so fun and than always forget the most afterwards because I use Python in my day job. :frowning: (I don’t like the forgetting …

---

## [StatPlots groupedbar order x axis](https://discourse.julialang.org/t/statplots-groupedbar-order-x-axis/13912)

<div class="topic-metadata">

**Author:** [@stelmo](https://discourse.julialang.org/u/stelmo)\
**Replies:** 18\
**Last updated:** [August 30, 2022, 10:00pm UTC](https://discourse.julialang.org/t/statplots-groupedbar-order-x-axis/13912 "2022-08-30T22:00:05Z")

</div>

Hi, Is there a way to order the x-axis bars using groupedbar? Currently it is placing the individual bars alphabetically, but I would like to specify the order manually. I have tried using plot!(xticks=(1:10, labels)), …

---

## [Usage of CUDA.CUFFT.cufftPlanMany](https://discourse.julialang.org/t/usage-of-cuda-cufft-cufftplanmany/86403)

<div class="topic-metadata">

**Author:** [@gerhardu](https://discourse.julialang.org/u/gerhardu)\
**Replies:** 1\
**Last updated:** [August 30, 2022, 6:32pm UTC](https://discourse.julialang.org/t/usage-of-cuda-cufft-cufftplanmany/86403 "2022-08-30T18:32:41Z")

</div>

Hi, I need to calculate approx 600 FFT’s of 3 dimensional arrays (e.g. 128^3). I know how to do this on CPUs and also how to do this sequentially on a GPU. By sequentially I mean that I copy one of the 600 arrays to t…

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

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