# Latest

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

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

**Page:** 1046

---

## [JuMP Gurobi.jl CPLEX.jl Solution Pool](https://discourse.julialang.org/t/jump-gurobi-jl-cplex-jl-solution-pool/71604)

<div class="topic-metadata">

**Author:** [@davide-f](https://discourse.julialang.org/u/davide-f)\
**Replies:** 6\
**Last updated:** [May 9, 2022, 10:20pm UTC](https://discourse.julialang.org/t/jump-gurobi-jl-cplex-jl-solution-pool/71604 "2022-05-09T22:20:02Z")

</div>

Hi community, I was interested in setting and obtaining a solution pool for a MILP problem using a solver like CPLEX or Gurobi that support that capability. Do you know how I can proceed or suggestions? Thank you

---

## [Assigning color to variable and using with colorant](https://discourse.julialang.org/t/assigning-color-to-variable-and-using-with-colorant/80753)

<div class="topic-metadata">

**Author:** [@Nash](https://discourse.julialang.org/u/Nash)\
**Replies:** 3\
**Last updated:** [May 9, 2022, 12:58pm UTC](https://discourse.julialang.org/t/assigning-color-to-variable-and-using-with-colorant/80753 "2022-05-09T12:58:57Z")

</div>

The following works: \`cs = ColorScheme(\[colorant"white", colorant"#5AC3E3"\]\` But how do I assign #5AC3E3 to a variable and re-write the code?

---

## [Position wanted](https://discourse.julialang.org/t/position-wanted/80736)

<div class="topic-metadata">

**Author:** [@skypuppy](https://discourse.julialang.org/u/skypuppy)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 7:56pm UTC](https://discourse.julialang.org/t/position-wanted/80736 "2022-05-09T19:56:08Z")

</div>

Retired programmer with experience in C and several other languages as well as strong skills in relational database management design, implementation, and administration is looking for a remote position. Began software …

---

## [JSON3.jl struct read](https://discourse.julialang.org/t/json3-jl-struct-read/80751)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 1\
**Last updated:** [May 9, 2022, 7:55pm UTC](https://discourse.julialang.org/t/json3-jl-struct-read/80751 "2022-05-09T19:55:58Z")

</div>

using JSON3 struct Foo foo::Int bar::String end JSON3.StructTypes.StructType(::Type{Foo}) = JSON3.StructTypes.Struct() obj = Foo(1, "bar") If if just have the pure struct it works fine: julia\> json = JSON3.w…

---

## [Weird behavior with Atomic](https://discourse.julialang.org/t/weird-behavior-with-atomic/80757)

<div class="topic-metadata">

**Author:** [@Impressium](https://discourse.julialang.org/u/Impressium)\
**Replies:** 1\
**Last updated:** [May 9, 2022, 7:54pm UTC](https://discourse.julialang.org/t/weird-behavior-with-atomic/80757 "2022-05-09T19:54:13Z")

</div>

Hi all :slight\_smile: I’ve got some very weird behavior. Maybe someone knows what’s happening there. Some code I debug with @show. There is nothing between these statements. The code is called in a separate thread. @s…

---

## [How to speed up diagonalization of a Hamiltonian matrix?](https://discourse.julialang.org/t/how-to-speed-up-diagonalization-of-a-hamiltonian-matrix/80777)

<div class="topic-metadata">

**Author:** [@BastienD](https://discourse.julialang.org/u/BastienD)\
**Replies:** 0\
**Last updated:** [May 9, 2022, 7:51pm UTC](https://discourse.julialang.org/t/how-to-speed-up-diagonalization-of-a-hamiltonian-matrix/80777 "2022-05-09T19:51:50Z")

</div>

I would like to diagonalize the following Hamiltonian: \\mathcal{H} = \\begin{pmatrix} H & \\bar{\\Delta}\\\\ \\bar{\\Delta}^\\dagger & -H^\*\\\\ \\end{pmatrix} where H = \\begin{pmatrix} H\_s & H\_b\\\\ H\_b^T & H\_n\\\\ \\end{pmatrix} us…

---

## [Move Random into Base?](https://discourse.julialang.org/t/move-random-into-base/80669)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 22\
**Last updated:** [May 9, 2022, 7:51pm UTC](https://discourse.julialang.org/t/move-random-into-base/80669 "2022-05-09T19:51:01Z")

</div>

It would be nice to have quicksort select its pivot randomly rather than using median of three to prevent malicious data from causing unexpected quadratic runtime. Benchmarking reveals that this causes negligible perform…

---

## [Krotov’s Method in quantum control](https://discourse.julialang.org/t/krotov-s-method-in-quantum-control/80146)

<div class="topic-metadata">

**Author:** [@marllos](https://discourse.julialang.org/u/marllos)\
**Replies:** 11\
**Last updated:** [May 9, 2022, 5:05pm UTC](https://discourse.julialang.org/t/krotov-s-method-in-quantum-control/80146 "2022-05-09T17:05:13Z")

</div>

Hello everybody. I’m looking for a krotov method in Julia, but I’ve been having doubts with the search result. What is the recommended package for the krotov optimization method? I’m going to use it with quantum control.…

---

## [Reading archives JLD2](https://discourse.julialang.org/t/reading-archives-jld2/80717)

<div class="topic-metadata">

**Author:** [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)\
**Replies:** 1\
**Last updated:** [May 9, 2022, 4:53pm UTC](https://discourse.julialang.org/t/reading-archives-jld2/80717 "2022-05-09T16:53:54Z")

</div>

Dear all, I have the matrix Xa\_heuristico\_1\_MP30.jld2 saved in a JLD2 format. When I run: Xa1\_heuristico\_MP30 = FileIO.load("Xa\_heuristico\_1\_MP30.jld2","RH") appears the folowing: How can I acess the element 1,…

---

## [Searching for Julia tutoring for my project](https://discourse.julialang.org/t/searching-for-julia-tutoring-for-my-project/80768)

<div class="topic-metadata">

**Author:** [@Floyd\_Gartner](https://discourse.julialang.org/u/Floyd_Gartner)\
**Replies:** 0\
**Last updated:** [May 9, 2022, 4:53pm UTC](https://discourse.julialang.org/t/searching-for-julia-tutoring-for-my-project/80768 "2022-05-09T16:53:03Z")

</div>

Hello everybody, I’m currently working on a project to “solve” the patient-bed assignment problem in emergency department (ED) of hospitals using agent-based modelling and reinforcement learning. I’m very new to using J…

---

## [System of NonLinear Equations with Inequality and Equality Constraints](https://discourse.julialang.org/t/system-of-nonlinear-equations-with-inequality-and-equality-constraints/80690)

<div class="topic-metadata">

**Author:** [@tugberk21](https://discourse.julialang.org/u/tugberk21)\
**Replies:** 4\
**Last updated:** [May 9, 2022, 3:47pm UTC](https://discourse.julialang.org/t/system-of-nonlinear-equations-with-inequality-and-equality-constraints/80690 "2022-05-09T15:47:08Z")

</div>

Hi All! I’m trying to switch Julia from MATLAB. I’m using MATLAB more specifically fmincon to solve system of nonlinear equations with inequality and equality constraints. Fmincon is great function for me which accepts …

---

## [I have a much faster version of evalpoly. Why is it faster?](https://discourse.julialang.org/t/i-have-a-much-faster-version-of-evalpoly-why-is-it-faster/79899)

<div class="topic-metadata">

**Author:** [@Luapulu](https://discourse.julialang.org/u/Luapulu)\
**Replies:** 14\
**Last updated:** [May 9, 2022, 3:36pm UTC](https://discourse.julialang.org/t/i-have-a-much-faster-version-of-evalpoly-why-is-it-faster/79899 "2022-05-09T15:36:16Z")

</div>

I was playing around with different ways to implement the evalpoly function. TLDR My best version is about twice as fast as the version currently in base and works with custom array indices. In this case while loops s…

---

## [Poor CPU Utilisation on HPC Cluster](https://discourse.julialang.org/t/poor-cpu-utilisation-on-hpc-cluster/80756)

<div class="topic-metadata">

**Author:** [@jewh](https://discourse.julialang.org/u/jewh)\
**Replies:** 4\
**Last updated:** [May 9, 2022, 3:20pm UTC](https://discourse.julialang.org/t/poor-cpu-utilisation-on-hpc-cluster/80756 "2022-05-09T15:20:48Z")

</div>

Running into an odd error and not sure where to begin, wondering if you folks had any advice. I’m using Distributed.jl to parallelise iterations of a CPU-intensive function, with my code looking like this: # code in my…

---

## [\[CFP\] Parallel Applications Workshop, Alternatives To MPI+X 2022](https://discourse.julialang.org/t/cfp-parallel-applications-workshop-alternatives-to-mpi-x-2022/80763)

<div class="topic-metadata">

**Author:** [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Replies:** 0\
**Last updated:** [May 9, 2022, 3:28pm UTC](https://discourse.julialang.org/t/cfp-parallel-applications-workshop-alternatives-to-mpi-x-2022/80763 "2022-05-09T15:28:33Z")

</div>

Call for Papers PAW-ATM 2022: Parallel Applications Workshop, Alternatives To MPI+X Held in conjunction with SC22, Dallas, TX http://sourceryinstitute.github.io/PAW/ …

---

## [Update packages without restarting](https://discourse.julialang.org/t/update-packages-without-restarting/68417)

<div class="topic-metadata">

**Author:** [@jzr](https://discourse.julialang.org/u/jzr)\
**Replies:** 14\
**Last updated:** [May 9, 2022, 3:25pm UTC](https://discourse.julialang.org/t/update-packages-without-restarting/68417 "2022-05-09T15:25:49Z")

</div>

I don’t like having to restart Julia when I update packages because I lose my state and have to wait 10 minutes or more to get back to it, usually once or twice a day. Is it possible to avoid this? Is that a feature Jul…

---

## [Latex Strings in Makie Axis Ticks](https://discourse.julialang.org/t/latex-strings-in-makie-axis-ticks/80729)

<div class="topic-metadata">

**Author:** [@Whyborn](https://discourse.julialang.org/u/Whyborn)\
**Replies:** 2\
**Last updated:** [May 9, 2022, 3:20pm UTC](https://discourse.julialang.org/t/latex-strings-in-makie-axis-ticks/80729 "2022-05-09T15:20:55Z")

</div>

Hi, I have been having some issues with generating my desired tick labels in Makie. I would like to use LaTeX style formatting (for example \\rho\_{B}). Unfortunately, Makie does not seem to accept LatexStrings for the ax…

---

## [Using a keyword argument leads to enormous allocations](https://discourse.julialang.org/t/using-a-keyword-argument-leads-to-enormous-allocations/80354)

<div class="topic-metadata">

**Author:** [@moble](https://discourse.julialang.org/u/moble)\
**Replies:** 8\
**Last updated:** [May 9, 2022, 3:09pm UTC](https://discourse.julialang.org/t/using-a-keyword-argument-leads-to-enormous-allocations/80354 "2022-05-09T15:09:00Z")

</div>

I’ve been running into a bizarre problem with huge allocations, and I’ve just discovered that the problem can be avoided if I don’t use a keyword argument to a function inside my main computation function. The allocatio…

---

## [Remove references to \`OS\_HANDLE\` in docs](https://discourse.julialang.org/t/remove-references-to-os-handle-in-docs/80602)

<div class="topic-metadata">

**Author:** [@nandoconde](https://discourse.julialang.org/u/nandoconde)\
**Replies:** 4\
**Last updated:** [May 9, 2022, 2:11pm UTC](https://discourse.julialang.org/t/remove-references-to-os-handle-in-docs/80602 "2022-05-09T14:11:37Z")

</div>

In the official docs, there is a function whose input type is defined as OS\_HANDLE. This type is not mentioned anywhere else in the docs. Furthermore, it is not exported, and help about it says: help?\> Base.OS\_HANDLE …

---

## [Is there a \`slices\` function?](https://discourse.julialang.org/t/is-there-a-slices-function/80724)

<div class="topic-metadata">

**Author:** [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Replies:** 4\
**Last updated:** [May 9, 2022, 1:59pm UTC](https://discourse.julialang.org/t/is-there-a-slices-function/80724 "2022-05-09T13:59:08Z")

</div>

Is there a lazy equivalent to mapslices that returns a sliced view into an array? We have sortperm and sortslices, but I’d like to get the permutation that puts slices in order. I’d like to accomplish this with sortperm…

---

## [How to manage versions in my package?](https://discourse.julialang.org/t/how-to-manage-versions-in-my-package/80713)

<div class="topic-metadata">

**Author:** [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Replies:** 5\
**Last updated:** [May 9, 2022, 12:42pm UTC](https://discourse.julialang.org/t/how-to-manage-versions-in-my-package/80713 "2022-05-09T12:42:39Z")

</div>

I am writing my own package, and I want to implement versions. I am using this package in my projects, and I want to make sure that old projects can use an old version of the package while new projects can use the new v…

---

## [Standard Module Main, Core, Base definition](https://discourse.julialang.org/t/standard-module-main-core-base-definition/80712)

<div class="topic-metadata">

**Author:** [@Hawk](https://discourse.julialang.org/u/Hawk)\
**Replies:** 8\
**Last updated:** [May 9, 2022, 12:07pm UTC](https://discourse.julialang.org/t/standard-module-main-core-base-definition/80712 "2022-05-09T12:07:34Z")

</div>

In Julia Manual, it says that “There are three important standard modules: Main, Core, and Base.”, But I just wonder where are these modules defined, can we find their file path? By the way, are there smart methods to fi…

---

## [Call @enumx macro with NamedTuple constant as input](https://discourse.julialang.org/t/call-enumx-macro-with-namedtuple-constant-as-input/80699)

<div class="topic-metadata">

**Author:** [@FireCrumb](https://discourse.julialang.org/u/FireCrumb)\
**Replies:** 1\
**Last updated:** [May 9, 2022, 11:43am UTC](https://discourse.julialang.org/t/call-enumx-macro-with-namedtuple-constant-as-input/80699 "2022-05-09T11:43:21Z")

</div>

Hi, I have a NamedTuple and would like to create an EnumX from it, how can this be done? CC @fredrikekre Specifically, I’m using ProtoBuf.il to load an enum from Protocol Buffers. And I want to create a new type using…

---

## [Julia 1.7.3 testing period](https://discourse.julialang.org/t/julia-1-7-3-testing-period/79811)

<div class="topic-metadata">

**Author:** [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Replies:** 3\
**Last updated:** [May 9, 2022, 11:31am UTC](https://discourse.julialang.org/t/julia-1-7-3-testing-period/79811 "2022-05-09T11:31:07Z")

</div>

The release-1.7 branch on the Julia repository now contains the set of commits we’re planning to tag as v1.7.3, the third patch release in the 1.7 series. The list of commits included since v1.7.2 is available here . As …

---

## [Nonlinear expressions may contain only scalar](https://discourse.julialang.org/t/nonlinear-expressions-may-contain-only-scalar/80721)

<div class="topic-metadata">

**Author:** [@Tri](https://discourse.julialang.org/u/Tri)\
**Replies:** 5\
**Last updated:** [May 9, 2022, 10:16am UTC](https://discourse.julialang.org/t/nonlinear-expressions-may-contain-only-scalar/80721 "2022-05-09T10:16:08Z")

</div>

Totally new to Julia. I tried to look up a solution to this error message but couldn’t find a helpful answer “Nonlinear expressions may contain only scalar expressions” What exactly should I do to circumvent this error…

---

## [Is this possible to do with Turing?](https://discourse.julialang.org/t/is-this-possible-to-do-with-turing/80742)

<div class="topic-metadata">

**Author:** [@donk\_fish](https://discourse.julialang.org/u/donk_fish)\
**Replies:** 0\
**Last updated:** [May 9, 2022, 9:20am UTC](https://discourse.julialang.org/t/is-this-possible-to-do-with-turing/80742 "2022-05-09T09:20:19Z")

</div>

Hi, Imagine I have two models, for simplicity say an AR(1) model and a MA(1) model. I want to construct and sample from a composition of their likelihoods, i.e. a geometric average, where the weight themselves is a par…

---

## [Detect and Return Cycles in a given directed graph](https://discourse.julialang.org/t/detect-and-return-cycles-in-a-given-directed-graph/80493)

<div class="topic-metadata">

**Author:** [@Temi-Tory](https://discourse.julialang.org/u/Temi-Tory)\
**Replies:** 20\
**Last updated:** [May 9, 2022, 9:20am UTC](https://discourse.julialang.org/t/detect-and-return-cycles-in-a-given-directed-graph/80493 "2022-05-09T09:20:17Z")

</div>

Hi there, I was wondering if there was a way to detect the number of cycles in a graph. And for each cycle detected, i want to know which nodes are involved in the cycle. I have attached an example of the simplest form…

---

## [Codecov missing function signatures in code coverage](https://discourse.julialang.org/t/codecov-missing-function-signatures-in-code-coverage/79518)

<div class="topic-metadata">

**Author:** [@kellertuer](https://discourse.julialang.org/u/kellertuer)\
**Replies:** 1\
**Last updated:** [May 9, 2022, 8:32am UTC](https://discourse.julialang.org/t/codecov-missing-function-signatures-in-code-coverage/79518 "2022-05-09T08:32:06Z")

</div>

We have a strange behaviour in our codecoverage that increased with our current redesign, so I would like to understand how this happens – and maybe how to avoid it. Here is an example https://app.codecov.io/gh/JuliaMan…

---

## [VS code crash loading big file NetCDF](https://discourse.julialang.org/t/vs-code-crash-loading-big-file-netcdf/80562)

<div class="topic-metadata">

**Author:** [@virgile-baudrot](https://discourse.julialang.org/u/virgile-baudrot)\
**Replies:** 5\
**Last updated:** [May 9, 2022, 8:28am UTC](https://discourse.julialang.org/t/vs-code-crash-loading-big-file-netcdf/80562 "2022-05-09T08:28:33Z")

</div>

I have to load a NetCDF file of around 50Mb, it’s working fine within the shell but not in VScode. The error message from julia is super fast I don’t have time to copy past here. VScode return this: path\\AppData\\Local…

---

## [Avoid Makie as a dependency?](https://discourse.julialang.org/t/avoid-makie-as-a-dependency/77063)

<div class="topic-metadata">

**Author:** [@BambOoxX](https://discourse.julialang.org/u/BambOoxX)\
**Replies:** 8\
**Last updated:** [May 9, 2022, 7:57am UTC](https://discourse.julialang.org/t/avoid-makie-as-a-dependency/77063 "2022-05-09T07:57:22Z")

</div>

I know that in order to avoid having a package depend on Plots I can depend on RecipesBase and write some recipes. In Makie, there is a recipe mechanism too, but in its current form it seems to rely on Makie itself. Th…

---

## [DifferentialEquations.jl package, variable rate jumps with complex variables](https://discourse.julialang.org/t/differentialequations-jl-package-variable-rate-jumps-with-complex-variables/80366)

<div class="topic-metadata">

**Author:** [@TTolppanen](https://discourse.julialang.org/u/TTolppanen)\
**Replies:** 11\
**Last updated:** [May 9, 2022, 7:23am UTC](https://discourse.julialang.org/t/differentialequations-jl-package-variable-rate-jumps-with-complex-variables/80366 "2022-05-09T07:23:02Z")

</div>

Hello, I’m trying to get the following example to work: using DifferentialEquations function f(dx, x,p,t) dx\[1\] = x\[1\] end function rate(x,p,t) t end function affect!(integrator) integrator.u\[1\] = integra…

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

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