# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1397

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

**Page:** 1398

---

## [How to pass options for bonmin solver](https://discourse.julialang.org/t/how-to-pass-options-for-bonmin-solver/60790)

<div class="topic-metadata">

**Author:** [@manoj.centura](https://discourse.julialang.org/u/manoj.centura)\
**Replies:** 6\
**Last updated:** [May 10, 2021, 7:49am UTC](https://discourse.julialang.org/t/how-to-pass-options-for-bonmin-solver/60790 "2021-05-10T07:49:33Z")

</div>

Hi, I am using bonmin solver via AmplNLWriter model2 = Model(() -\> AmplNLWriter.Optimizer("D:\\\\Julia\_solver\\\\Bonmin-1.4.0-win32-msvc9\\\\bin\\\\bonmin")) Any suggestion on how to pass time\_limit to the solver. I tried bel…

---

## [Is it possible to use a package function without loading the package?](https://discourse.julialang.org/t/is-it-possible-to-use-a-package-function-without-loading-the-package/60813)

<div class="topic-metadata">

**Author:** [@gitboy16](https://discourse.julialang.org/u/gitboy16)\
**Replies:** 6\
**Last updated:** [May 10, 2021, 7:06am UTC](https://discourse.julialang.org/t/is-it-possible-to-use-a-package-function-without-loading-the-package/60813 "2021-05-10T07:06:35Z")

</div>

In R, I would do something like this: dt = data.table::fread("data.csv") My understanding is that in Julia I would need to do: using DataFrames; using CSV; df = CSV.File("data.csv") |\> DataFrame; The code in Julia i…

---

## [Possible slow fallback of adjoint matrix multiplication for different element types](https://discourse.julialang.org/t/possible-slow-fallback-of-adjoint-matrix-multiplication-for-different-element-types/60853)

<div class="topic-metadata">

**Author:** [@songxianxu](https://discourse.julialang.org/u/songxianxu)\
**Replies:** 0\
**Last updated:** [May 10, 2021, 6:16am UTC](https://discourse.julialang.org/t/possible-slow-fallback-of-adjoint-matrix-multiplication-for-different-element-types/60853 "2021-05-10T06:16:31Z")

</div>

I was running some matrix diagonalization and processing the eigenvectors. I notice that the script takes an unusually long time and I realize that it could be a problem of the adjoint matrix multiplication. Here is the…

---

## [CPLEX Julia/JuMP Connection Problem](https://discourse.julialang.org/t/cplex-julia-jump-connection-problem/60724)

<div class="topic-metadata">

**Author:** [@Armando\_Gabriel\_Guar](https://discourse.julialang.org/u/Armando_Gabriel_Guar)\
**Replies:** 6\
**Last updated:** [May 10, 2021, 5:31am UTC](https://discourse.julialang.org/t/cplex-julia-jump-connection-problem/60724 "2021-05-10T05:31:34Z")

</div>

Dear Julia Guys, I am having a lot of trouble to make cplex run with julia/jump, (Gurobi has been seamless and works perfect). I installed the package and when running the sentence “using CPLEX”, I get the following mes…

---

## [Introductory ML model in Flux](https://discourse.julialang.org/t/introductory-ml-model-in-flux/60850)

<div class="topic-metadata">

**Author:** [@affans](https://discourse.julialang.org/u/affans)\
**Replies:** 2\
**Last updated:** [May 10, 2021, 2:53am UTC](https://discourse.julialang.org/t/introductory-ml-model-in-flux/60850 "2021-05-10T02:53:13Z")

</div>

I am trying to trying to replicate Figure 8 (page 18) and Algorithm 6.1 (page 17) from this introductory ML paper for mathematicians. The figure for convenience is: where the ten points are classified as cateogry A (…

---

## [Issue saving graphs using LightGraph](https://discourse.julialang.org/t/issue-saving-graphs-using-lightgraph/60826)

<div class="topic-metadata">

**Author:** [@bfried1](https://discourse.julialang.org/u/bfried1)\
**Replies:** 1\
**Last updated:** [May 10, 2021, 2:28am UTC](https://discourse.julialang.org/t/issue-saving-graphs-using-lightgraph/60826 "2021-05-10T02:28:36Z")

</div>

I am having trouble simply saving a graph in one of the formats offered by GraphIO

---

## [Array of Functions type matching](https://discourse.julialang.org/t/array-of-functions-type-matching/60843)

<div class="topic-metadata">

**Author:** [@Paul\_McVay](https://discourse.julialang.org/u/Paul_McVay)\
**Replies:** 1\
**Last updated:** [May 9, 2021, 10:48pm UTC](https://discourse.julialang.org/t/array-of-functions-type-matching/60843 "2021-05-09T22:48:31Z")

</div>

I have an array of functions. If I try to pass that array to another function that has the parameter type of Array{Function, 1}, I get a type mismatch error. Here is a working example. function test() return functio…

---

## [Finding all rows that are the same as a "focus" row](https://discourse.julialang.org/t/finding-all-rows-that-are-the-same-as-a-focus-row/60791)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 3\
**Last updated:** [May 9, 2021, 10:43pm UTC](https://discourse.julialang.org/t/finding-all-rows-that-are-the-same-as-a-focus-row/60791 "2021-05-09T22:43:00Z")

</div>

I have a Matrix, M. Any row in M contain 1’s and NaN’s. For row 20, for example, I can find the ids of all columns that do not contain NaN: idfocus = findall(x-\>~isnan(x),A\[20,:\]) I am now interested in finding all (…

---

## [JuMP package download issue: Some dependencies errored](https://discourse.julialang.org/t/jump-package-download-issue-some-dependencies-errored/60832)

<div class="topic-metadata">

**Author:** [@trathi](https://discourse.julialang.org/u/trathi)\
**Replies:** 4\
**Last updated:** [May 9, 2021, 9:30pm UTC](https://discourse.julialang.org/t/jump-package-download-issue-some-dependencies-errored/60832 "2021-05-09T21:30:50Z")

</div>

I just downloaded the latest version of JuMP v0.21.8 and while precompiling some of the dependencies failed. Any reason why? However, the command build JuMP runs without any error. I am using Julia 1.6.1.

---

## [Best way to store package specific user settings?](https://discourse.julialang.org/t/best-way-to-store-package-specific-user-settings/60626)

<div class="topic-metadata">

**Author:** [@jules](https://discourse.julialang.org/u/jules)\
**Replies:** 8\
**Last updated:** [May 9, 2021, 3:17pm UTC](https://discourse.julialang.org/t/best-way-to-store-package-specific-user-settings/60626 "2021-05-09T15:17:25Z")

</div>

I want to add persistent theming back to Makie and I wanted to get a feel for what methods are out there and what the tradeoffs of different approaches are. One consideration is where to store settings files. Should we …

---

## [Clarification on accessing fields in a struct](https://discourse.julialang.org/t/clarification-on-accessing-fields-in-a-struct/60839)

<div class="topic-metadata">

**Author:** [@anon60034542](https://discourse.julialang.org/u/anon60034542)\
**Replies:** 1\
**Last updated:** [May 9, 2021, 8:09pm UTC](https://discourse.julialang.org/t/clarification-on-accessing-fields-in-a-struct/60839 "2021-05-09T20:09:22Z")

</div>

I was reading this Stack Overflow question, and using this example: struct MyStruct a b end it asks how you can access a struct field using a String. Two answers we given, but I want clarification on the secon…

---

## [Rarely see usage of TimeArray](https://discourse.julialang.org/t/rarely-see-usage-of-timearray/56705)

<div class="topic-metadata">

**Author:** [@Yifan\_Liu](https://discourse.julialang.org/u/Yifan_Liu)\
**Replies:** 1\
**Last updated:** [May 9, 2021, 5:55pm UTC](https://discourse.julialang.org/t/rarely-see-usage-of-timearray/56705 "2021-05-09T17:55:29Z")

</div>

I really like the TimeArray data structure from TimeSeries.jl. It is more efficient and elegant than the ts and xts of R language. However, I rarely see people use TimeArray. I would like to know why.

---

## [Multithreading and generated code](https://discourse.julialang.org/t/multithreading-and-generated-code/60828)

<div class="topic-metadata">

**Author:** [@gideonsimpson](https://discourse.julialang.org/u/gideonsimpson)\
**Replies:** 5\
**Last updated:** [May 9, 2021, 5:42pm UTC](https://discourse.julialang.org/t/multithreading-and-generated-code/60828 "2021-05-09T17:42:50Z")

</div>

A while back, I solved this problem, Performance and Allocation with Arrays of Functions. More recently, I wanted a multithreaded loop inside of this, so that the code now reads: function update(x, Δt) return x + 0…

---

## [Optimization help: porting fmincon() to Julia](https://discourse.julialang.org/t/optimization-help-porting-fmincon-to-julia/60739)

<div class="topic-metadata">

**Author:** [@MA\_Laforge](https://discourse.julialang.org/u/MA_Laforge)\
**Replies:** 2\
**Last updated:** [May 9, 2021, 3:48pm UTC](https://discourse.julialang.org/t/optimization-help-porting-fmincon-to-julia/60739 "2021-05-09T15:48:39Z")

</div>

Problem I’m having problems porting fmincon() statements that appear to require “Generic nonlinear constraints” (using nonlcon). Here are the references I have used: https://www.mathworks.com/help/optim/ug/fmincon.html …

---

## [Named Pipes between Julia and CSharp](https://discourse.julialang.org/t/named-pipes-between-julia-and-csharp/45845)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 5\
**Last updated:** [May 9, 2021, 2:51pm UTC](https://discourse.julialang.org/t/named-pipes-between-julia-and-csharp/45845 "2021-05-09T14:51:59Z")

</div>

Hi dear community :slight\_smile: I’m trying to communicate between Julia and CSharp with named pipes on Windows. I’m using following code in Csharp server: using (var pipe = new NamedPipeServerStream("cs", PipeDirecti…

---

## [MsgPack fails to unpack a basic structure](https://discourse.julialang.org/t/msgpack-fails-to-unpack-a-basic-structure/60182)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 3\
**Last updated:** [May 9, 2021, 2:28pm UTC](https://discourse.julialang.org/t/msgpack-fails-to-unpack-a-basic-structure/60182 "2021-05-09T14:28:07Z")

</div>

While trying out some MsgPack.jl functionnalities, I tested to pack/unpack a simple structure possessing two fields : one integer and one matrix. Following the documentation for this package, I obtained this code using…

---

## [Weighted linear regression with confidence interval fitted to error bars](https://discourse.julialang.org/t/weighted-linear-regression-with-confidence-interval-fitted-to-error-bars/60743)

<div class="topic-metadata">

**Author:** [@Okarin99](https://discourse.julialang.org/u/Okarin99)\
**Replies:** 6\
**Last updated:** [May 9, 2021, 11:01am UTC](https://discourse.julialang.org/t/weighted-linear-regression-with-confidence-interval-fitted-to-error-bars/60743 "2021-05-09T11:01:23Z")

</div>

Hi, I’m pretty new to Data Science. I have some Data with measurement errors and I want to fit a linear model. using DataFrames using GLM using StatsPlots df = DataFrame(x = \[0.0, 0.0669873, 0.25, 0.5, 0.75, 0.933013…

---

## [How to generate a file full of image in one time, inset of one image at each time?](https://discourse.julialang.org/t/how-to-generate-a-file-full-of-image-in-one-time-inset-of-one-image-at-each-time/60816)

<div class="topic-metadata">

**Author:** [@assia855](https://discourse.julialang.org/u/assia855)\
**Replies:** 4\
**Last updated:** [May 9, 2021, 10:50am UTC](https://discourse.julialang.org/t/how-to-generate-a-file-full-of-image-in-one-time-inset-of-one-image-at-each-time/60816 "2021-05-09T10:50:06Z")

</div>

Hello community, DISKS=get(Array,read(FitsImage, “DISK/Int\_a=1.5\_incl=0.0\_pa=0.0\_e=0.0\_wave=900.fits”)); I have this code. I would like inset of given to julia just one image to execute. I would like to give it a file …

---

## [\[ANN\] SeaPearl.jl - A Constraint Programming solver that can use Reinforcement Learning to improve its heuristics](https://discourse.julialang.org/t/ann-seapearl-jl-a-constraint-programming-solver-that-can-use-reinforcement-learning-to-improve-its-heuristics/60607)

<div class="topic-metadata">

**Author:** [@ilancoulon](https://discourse.julialang.org/u/ilancoulon)\
**Replies:** 3\
**Last updated:** [May 9, 2021, 9:20am UTC](https://discourse.julialang.org/t/ann-seapearl-jl-a-constraint-programming-solver-that-can-use-reinforcement-learning-to-improve-its-heuristics/60607 "2021-05-09T09:20:15Z")

</div>

I am pretty proud to announce that SeaPearl, the package Félix Chalumeau and I have been working for the past year, is finally out. It intends to be a whole Constraint Programming solver, but that can use a Reinforcem…

---

## [AbbreviatedStackTraces.jl](https://discourse.julialang.org/t/abbreviatedstacktraces-jl/60792)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 1\
**Last updated:** [May 9, 2021, 8:31am UTC](https://discourse.julialang.org/t/abbreviatedstacktraces-jl/60792 "2021-05-09T08:31:50Z")

</div>

Tired of scrolling through long error messages? Check out my package, AbbreviatedStackTraces! It’s experimental and works by straight overwriting base Julia methods, so it isn’t in the registry. To try it out: \]add ht…

---

## [How do I make a dispatch table using multiple dispatch instead of Dict?](https://discourse.julialang.org/t/how-do-i-make-a-dispatch-table-using-multiple-dispatch-instead-of-dict/60784)

<div class="topic-metadata">

**Author:** [@rpmuller](https://discourse.julialang.org/u/rpmuller)\
**Replies:** 20\
**Last updated:** [May 9, 2021, 8:03am UTC](https://discourse.julialang.org/t/how-do-i-make-a-dispatch-table-using-multiple-dispatch-instead-of-dict/60784 "2021-05-09T08:03:37Z")

</div>

In python, I often used a dictionary-based multiple dispatch table to send arguments to functions: dispatch = {(0,0):vrr\_ss,(0,1):vrr\_sp,(1,0):vrr\_ps} if a,b in dispatch: dispatch\[a,b\](args) The Julia version of this i…

---

## [Function with parameter: \`f(x,p)\` or \`f(x;p)\`](https://discourse.julialang.org/t/function-with-parameter-f-x-p-or-f-x-p/60745)

<div class="topic-metadata">

**Author:** [@misha\_mikhasenko](https://discourse.julialang.org/u/misha_mikhasenko)\
**Replies:** 9\
**Last updated:** [May 9, 2021, 7:43am UTC](https://discourse.julialang.org/t/function-with-parameter-f-x-p-or-f-x-p/60745 "2021-05-09T07:43:39Z")

</div>

I have been using the call with the key argument to provide parameters f(x;p=(a=1.1,b=2.2)) taking advantage of broadcasting without Ref. However, noticed f(x,p) is a common format as well. Any thoughts on which way is …

---

## [Issues running two TCP servers](https://discourse.julialang.org/t/issues-running-two-tcp-servers/60807)

<div class="topic-metadata">

**Author:** [@ligert123](https://discourse.julialang.org/u/ligert123)\
**Replies:** 1\
**Last updated:** [May 9, 2021, 7:28am UTC](https://discourse.julialang.org/t/issues-running-two-tcp-servers/60807 "2021-05-09T07:28:14Z")

</div>

Hello, i am currently trying to run 2 TCP servers, one that will encrypt itself using MbedTLS and the other that will not. An issue i am having is that when a socket is opened on one of the servers and it is waiting to …

---

## [Is DistributedArrays still maintained?](https://discourse.julialang.org/t/is-distributedarrays-still-maintained/60808)

<div class="topic-metadata">

**Author:** [@vavrines](https://discourse.julialang.org/u/vavrines)\
**Replies:** 0\
**Last updated:** [May 9, 2021, 7:01am UTC](https://discourse.julialang.org/t/is-distributedarrays-still-maintained/60808 "2021-05-09T07:01:24Z")

</div>

Kind of wanna know the status of distributed computing. It looks like the DistributedArrays-related stuff hasn’t been developed for a long time. Is it recommendded to use MPI.jl uniformly?

---

## [Julia unable to load/read jld file](https://discourse.julialang.org/t/julia-unable-to-load-read-jld-file/60803)

<div class="topic-metadata">

**Author:** [@nickz1088](https://discourse.julialang.org/u/nickz1088)\
**Replies:** 1\
**Last updated:** [May 9, 2021, 5:57am UTC](https://discourse.julialang.org/t/julia-unable-to-load-read-jld-file/60803 "2021-05-09T05:57:16Z")

</div>

When I do “X = load(“citiesSmall.jld”,“X”)” I get an error “UndefVarError: load not defined” I’m also not use how to open a jld file, sublime and textedit isn’t able to read the file

---

## [Correct usage of regex matches](https://discourse.julialang.org/t/correct-usage-of-regex-matches/60796)

<div class="topic-metadata">

**Author:** [@DorianT](https://discourse.julialang.org/u/DorianT)\
**Replies:** 5\
**Last updated:** [May 9, 2021, 12:19am UTC](https://discourse.julialang.org/t/correct-usage-of-regex-matches/60796 "2021-05-09T00:19:26Z")

</div>

Hey, I am quite new to Julia and come from an R background. I was wondering what the correct (or maybe short/julian way) to solve a simple regex matching problem would be. I have included a minimal working example below,…

---

## [Translating &variable to modern Julia](https://discourse.julialang.org/t/translating-variable-to-modern-julia/60797)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 1\
**Last updated:** [May 8, 2021, 9:25pm UTC](https://discourse.julialang.org/t/translating-variable-to-modern-julia/60797 "2021-05-08T21:25:18Z")

</div>

https://github.com/acroy/Lasem.jl/blob/master/src/Lasem.jl#L45 is ccall((:lsm\_dom\_view\_set\_viewport\_pixels, liblasem), Void, (Ptr{Void}, Ptr{LsmBox} ), view, &viewport) which contains &viewport, currently invalid synt…

---

## [Repeated measures ANOVA](https://discourse.julialang.org/t/repeated-measures-anova/60765)

<div class="topic-metadata">

**Author:** [@rikh](https://discourse.julialang.org/u/rikh)\
**Replies:** 11\
**Last updated:** [May 8, 2021, 7:36pm UTC](https://discourse.julialang.org/t/repeated-measures-anova/60765 "2021-05-08T19:36:29Z")

</div>

I’m trying to do a repeated measures ANOVA. Lets say the data is as follows julia\> using CategoricalArrays, DataFrames, Random julia\> Random.seed!(1) julia\> df = DataFrame( id = categorical(repeat(1:2; inner…

---

## [Change labels in existing plot (Plots package)](https://discourse.julialang.org/t/change-labels-in-existing-plot-plots-package/60738)

<div class="topic-metadata">

**Author:** [@liviomaya](https://discourse.julialang.org/u/liviomaya)\
**Replies:** 3\
**Last updated:** [May 8, 2021, 5:47pm UTC](https://discourse.julialang.org/t/change-labels-in-existing-plot-plots-package/60738 "2021-05-08T17:47:06Z")

</div>

I have a pre-existing figure with multiple curves and an existing label vector. I need to change the labels - probably using the plot! command - but I am not able to do it. I don’t think this is not a row vector label is…

---

## [PackageCompiler error. @ccallable was already defined](https://discourse.julialang.org/t/packagecompiler-error-ccallable-was-already-defined/60697)

<div class="topic-metadata">

**Author:** [@jibaneza](https://discourse.julialang.org/u/jibaneza)\
**Replies:** 6\
**Last updated:** [May 8, 2021, 5:24pm UTC](https://discourse.julialang.org/t/packagecompiler-error-ccallable-was-already-defined/60697 "2021-05-08T17:24:23Z")

</div>

I get this error when trying to compile a fairly long code. I succeeded previously with Julia 1.5, having to manually edit out of some deps.jl file some hardcoded library paths. It wasn’t easy but it worked. Now, with mo…

[Previous page](https://discourse.julialang.org/latest.md?page=1396)

[Next page](https://discourse.julialang.org/latest.md?page=1398)
