# Latest

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

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

**Page:** 685

---

## [Does Flux not support Float16 convolution operation (Flux.NNlib.conv) with CuArray?](https://discourse.julialang.org/t/does-flux-not-support-float16-convolution-operation-flux-nnlib-conv-with-cuarray/99640)

<div class="topic-metadata">

**Author:** [@guixien](https://discourse.julialang.org/u/guixien)\
**Replies:** 1\
**Last updated:** [May 31, 2023, 3:48am UTC](https://discourse.julialang.org/t/does-flux-not-support-float16-convolution-operation-flux-nnlib-conv-with-cuarray/99640 "2023-05-31T03:48:24Z")

</div>

using Flux, CUDA struct filters{T \<: Real} f::AbstractArray{T,3} function filters{T}(f) where T \<: Real new(f) end end Flux.@functor filters And this works: T = Float32 q = filters{T}(cu(rand(50, 1…

---

## [New Theoretical Analysis for ADVI / BBVI](https://discourse.julialang.org/t/new-theoretical-analysis-for-advi-bbvi/99527)

<div class="topic-metadata">

**Author:** [@Red-Portal](https://discourse.julialang.org/u/Red-Portal)\
**Replies:** 10\
**Last updated:** [May 31, 2023, 1:37am UTC](https://discourse.julialang.org/t/new-theoretical-analysis-for-advi-bbvi/99527 "2023-05-31T01:37:38Z")

</div>

Hi all, We’ve recently uploaded to ArXiv a theoretical analysis for ADVI (although the title says black-box VI), which I believe is the first formal full convergence proof for any black-box VI-type algorithm that uses S…

---

## [Recommended way to do callbacks in MIP root node](https://discourse.julialang.org/t/recommended-way-to-do-callbacks-in-mip-root-node/99617)

<div class="topic-metadata">

**Author:** [@felipecordera](https://discourse.julialang.org/u/felipecordera)\
**Replies:** 3\
**Last updated:** [May 31, 2023, 1:36am UTC](https://discourse.julialang.org/t/recommended-way-to-do-callbacks-in-mip-root-node/99617 "2023-05-31T01:36:26Z")

</div>

Hi everyone, I would like to know whether there are any recommendations in the workflow for the following situation: I have defined a MIP model along with a solver-independent lazy callback function, and I would like t…

---

## [CVODE\_BDF using order of magnitude fewer function evals than Julia solvers](https://discourse.julialang.org/t/cvode-bdf-using-order-of-magnitude-fewer-function-evals-than-julia-solvers/98562)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 10\
**Last updated:** [May 31, 2023, 1:29am UTC](https://discourse.julialang.org/t/cvode-bdf-using-order-of-magnitude-fewer-function-evals-than-julia-solvers/98562 "2023-05-31T01:29:09Z")

</div>

Recently ported a Matlab implementation over to Julia. My RHS function evaluates faster in Julia, which is good, but the vast majority of Julia solvers seem to require far more function evaluations. CVODE\_BDF outperforms…

---

## [How to print ODEs after create ODEProblem](https://discourse.julialang.org/t/how-to-print-odes-after-create-odeproblem/99627)

<div class="topic-metadata">

**Author:** [@Ethan\_Tran](https://discourse.julialang.org/u/Ethan_Tran)\
**Replies:** 6\
**Last updated:** [May 31, 2023, 12:22am UTC](https://discourse.julialang.org/t/how-to-print-odes-after-create-odeproblem/99627 "2023-05-31T00:22:20Z")

</div>

Hi everyone, I would like to ask how to print the equations of the system after creating a problem by function ODEProblem() following: sys = ODESystem(eqs) prob = ODEProblem(sys,u0,tspan) I tried to use the equatio…

---

## [BiLevel with Lower Quadratic Constraints](https://discourse.julialang.org/t/bilevel-with-lower-quadratic-constraints/99603)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 3\
**Last updated:** [May 30, 2023, 10:26pm UTC](https://discourse.julialang.org/t/bilevel-with-lower-quadratic-constraints/99603 "2023-05-30T22:26:54Z")

</div>

As “BilevelJuMP is not able to solve problems with quadratic constraints in the lower level.” Is there a recommended way to solve bilevel optimizations where the lower level has quadratic constraints and the upper level …

---

## [\[ANN\] BoundedDegreeGraphs.jl](https://discourse.julialang.org/t/ann-boundeddegreegraphs-jl/99615)

<div class="topic-metadata">

**Author:** [@SteffenPL](https://discourse.julialang.org/u/SteffenPL)\
**Replies:** 2\
**Last updated:** [May 30, 2023, 9:36pm UTC](https://discourse.julialang.org/t/ann-boundeddegreegraphs-jl/99615 "2023-05-30T21:36:42Z")

</div>

This is a very small package with a specific aim: An allocation-free graph type for graphs that have a small (\< 30) bounded degree! To keep it short: The operations add\_edge!, rem\_edge!, has\_edge are allocations-fre…

---

## [ODE solving](https://discourse.julialang.org/t/ode-solving/99520)

<div class="topic-metadata">

**Author:** [@Ordens\_Ritter](https://discourse.julialang.org/u/Ordens_Ritter)\
**Replies:** 7\
**Last updated:** [May 30, 2023, 8:48pm UTC](https://discourse.julialang.org/t/ode-solving/99520 "2023-05-30T20:48:03Z")

</div>

I am Trying to model some temperature curves with a physically informed NN (PINN). I started solve the FOPDT first, to be able to apply it later. function FOPDT(z) τ, Κ, θ = z return \[T1\[i\] .- (1 ./ τ) .\* (-T1…

---

## [How to visualize a 3D slice of a higher-dimensional space](https://discourse.julialang.org/t/how-to-visualize-a-3d-slice-of-a-higher-dimensional-space/99610)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 1\
**Last updated:** [May 30, 2023, 6:26pm UTC](https://discourse.julialang.org/t/how-to-visualize-a-3d-slice-of-a-higher-dimensional-space/99610 "2023-05-30T18:26:27Z")

</div>

A few months ago, I read a book called The Elegant Universe and in it the author discusses Calabi-Yau manifolds and includes a plot that is a 2D slice of a Calabi-Yau manifold. Does anyone know how to go about taking a 2…

---

## [Improvements for solving an ODE "piecewise"](https://discourse.julialang.org/t/improvements-for-solving-an-ode-piecewise/99626)

<div class="topic-metadata">

**Author:** [@dnldlg](https://discourse.julialang.org/u/dnldlg)\
**Replies:** 1\
**Last updated:** [May 30, 2023, 7:55pm UTC](https://discourse.julialang.org/t/improvements-for-solving-an-ode-piecewise/99626 "2023-05-30T19:55:19Z")

</div>

Consider the following problem: I have a linear ODE x' = M(t) x, but at some times t\_i during the integration interval I need to apply some operation on the current state, i.e x\_\\text{new}(t\_i) = A \\cdot x(t). A little …

---

## [BoundaError with NLopt in JuMP with a user-defined function and its gradient](https://discourse.julialang.org/t/boundaerror-with-nlopt-in-jump-with-a-user-defined-function-and-its-gradient/99598)

<div class="topic-metadata">

**Author:** [@naouess](https://discourse.julialang.org/u/naouess)\
**Replies:** 1\
**Last updated:** [May 30, 2023, 7:28pm UTC](https://discourse.julialang.org/t/boundaerror-with-nlopt-in-jump-with-a-user-defined-function-and-its-gradient/99598 "2023-05-30T19:28:19Z")

</div>

Hello, I am solving an NLP in JuMP with several nonlinear user-defined functions as constraints. I provide the functions and their gradients in the following way: for j in 1:24 register(m, Symbol("myfunc\_$j"), length(…

---

## [\[ANN\] RustFFT.jl: Compute forward and inverse FFTs with RustFFT](https://discourse.julialang.org/t/ann-rustfft-jl-compute-forward-and-inverse-ffts-with-rustfft/99574)

<div class="topic-metadata">

**Author:** [@Taaitaaiger](https://discourse.julialang.org/u/Taaitaaiger)\
**Replies:** 13\
**Last updated:** [May 30, 2023, 7:10pm UTC](https://discourse.julialang.org/t/ann-rustfft-jl-compute-forward-and-inverse-ffts-with-rustfft/99574 "2023-05-30T19:10:19Z")

</div>

RustFFT is a high-performance, SIMD-accelerated FFT library written in pure Rust. It can compute FFTs of any size, including prime-number sizes, in O(nlogn) time. You can now use it from Julia! Usage Forward FFT: using…

---

## [Fast plotting of area-filled signals with interactive zoom](https://discourse.julialang.org/t/fast-plotting-of-area-filled-signals-with-interactive-zoom/63611)

<div class="topic-metadata">

**Author:** [@rafael.guerra](https://discourse.julialang.org/u/rafael.guerra)\
**Replies:** 8\
**Last updated:** [May 30, 2023, 7:03pm UTC](https://discourse.julialang.org/t/fast-plotting-of-area-filled-signals-with-interactive-zoom/63611 "2023-05-30T19:03:47Z")

</div>

Plotting 50 signals below with filled areas using PyPlot.jl takes ~0.2 s (after first plot) and allows fast interactive zoom-in: Interactive zoom-in: A MWE is provided herein: using PyCall pygui(:qt5) using PyPlo…

---

## [Delete one non-empty directory](https://discourse.julialang.org/t/delete-one-non-empty-directory/99623)

<div class="topic-metadata">

**Author:** [@jianqixi](https://discourse.julialang.org/u/jianqixi)\
**Replies:** 2\
**Last updated:** [May 30, 2023, 6:31pm UTC](https://discourse.julialang.org/t/delete-one-non-empty-directory/99623 "2023-05-30T18:31:15Z")

</div>

How could we delete one non-empty directory using Julia. I have tried to use rm(“path”, force=true), but it doesn’t work. Any better way to do it. Thanks

---

## [How to define FE basis function in gridap as fields](https://discourse.julialang.org/t/how-to-define-fe-basis-function-in-gridap-as-fields/99496)

<div class="topic-metadata">

**Author:** [@mary](https://discourse.julialang.org/u/mary)\
**Replies:** 11\
**Last updated:** [May 30, 2023, 6:00pm UTC](https://discourse.julialang.org/t/how-to-define-fe-basis-function-in-gridap-as-fields/99496 "2023-05-30T18:00:22Z")

</div>

I am using gridap for TO and like tutorial 18 i have defined o matrix but i am tackling with error that basis functions are not field which ∇ operate on that. evene in tutorial i couldnt find anywhere to define u as fiel…

---

## [Fixed Frequency Control in DiffEq](https://discourse.julialang.org/t/fixed-frequency-control-in-diffeq/99446)

<div class="topic-metadata">

**Author:** [@Guido\_Ballabio](https://discourse.julialang.org/u/Guido_Ballabio)\
**Replies:** 6\
**Last updated:** [May 30, 2023, 4:35pm UTC](https://discourse.julialang.org/t/fixed-frequency-control-in-diffeq/99446 "2023-05-30T16:35:48Z")

</div>

I am trying to use DiffEq and SciML sensitivity to build NN fixed-frequency controller for physical systems. I’ve tried PeriodicCallback and ti works (see original issue)but not with Neural Networks (Lux), because only…

---

## [Error saving ScikitLearn.jl pipeline](https://discourse.julialang.org/t/error-saving-scikitlearn-jl-pipeline/99614)

<div class="topic-metadata">

**Author:** [@klaus.68](https://discourse.julialang.org/u/klaus.68)\
**Replies:** 0\
**Last updated:** [May 30, 2023, 4:09pm UTC](https://discourse.julialang.org/t/error-saving-scikitlearn-jl-pipeline/99614 "2023-05-30T16:09:52Z")

</div>

Hi, I’m trying to save a ScikitLearn pipeline but JLD is encountering a fatal error. A MWE is below. My versions are ScikitLearn@v0.7.0, JLD@v0.10.0, PyCallJLD@v0.2.1. Pkg.status(outdated=true) returns that PyCallJLD is…

---

## [Could not import OrdinaryDiffEq.SavedValues into ControlSystems](https://discourse.julialang.org/t/could-not-import-ordinarydiffeq-savedvalues-into-controlsystems/99545)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 3\
**Last updated:** [May 30, 2023, 3:57pm UTC](https://discourse.julialang.org/t/could-not-import-ordinarydiffeq-savedvalues-into-controlsystems/99545 "2023-05-30T15:57:14Z")

</div>

What does this alert mean and how to resolve it? julia\> using ControlSystems \[ Info: Precompiling ControlSystems \[a6e380b2-a6ca-5380-bf3e-84a91bcd477e\] WARNING: could not import OrdinaryDiffEq.SavedValues into ControlSy…

---

## [Sobolov training in Flux - first derivative of input wrt output in loss function](https://discourse.julialang.org/t/sobolov-training-in-flux-first-derivative-of-input-wrt-output-in-loss-function/99612)

<div class="topic-metadata">

**Author:** [@Santa1806](https://discourse.julialang.org/u/Santa1806)\
**Replies:** 0\
**Last updated:** [May 30, 2023, 3:19pm UTC](https://discourse.julialang.org/t/sobolov-training-in-flux-first-derivative-of-input-wrt-output-in-loss-function/99612 "2023-05-30T15:19:28Z")

</div>

I have a dataset with input images x\_train, an objective value corresponding to each image y\_train, and the set of derivatives of y\_train wrt x\_train, dc\_train. I would like to train a CNN using this data, where I find t…

---

## [How to plot a 3D grid in Makie](https://discourse.julialang.org/t/how-to-plot-a-3d-grid-in-makie/99575)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 3\
**Last updated:** [May 30, 2023, 3:07pm UTC](https://discourse.julialang.org/t/how-to-plot-a-3d-grid-in-makie/99575 "2023-05-30T15:07:01Z")

</div>

It’s super easy to visualize a 3D grid with scatter!: using Makie using WGLMakie r = -2:2 fig = Figure() ax = LScene(fig\[1, 1\], show\_axis=false) scatter!(ax, \[Point3f(x,y,z) for x in r for y in r for z in r\]) fig ……

---

## [Problem installing Plots.jl on 1.9.0 (Windows)](https://discourse.julialang.org/t/problem-installing-plots-jl-on-1-9-0-windows/99561)

<div class="topic-metadata">

**Author:** [@Rishabh\_Jaiswal](https://discourse.julialang.org/u/Rishabh_Jaiswal)\
**Replies:** 2\
**Last updated:** [May 30, 2023, 2:27pm UTC](https://discourse.julialang.org/t/problem-installing-plots-jl-on-1-9-0-windows/99561 "2023-05-30T14:27:43Z")

</div>

I tried using Plots on Julia version 1.9.0(Windows) then it showed this error while building FFMPEG and Unable to open libLLVM!. Then I tried installing the older version 1.6.7 of Julia and it was able to install Plots. …

---

## [What is the meaning of multiple objective functions?](https://discourse.julialang.org/t/what-is-the-meaning-of-multiple-objective-functions/51857)

<div class="topic-metadata">

**Author:** [@prit](https://discourse.julialang.org/u/prit)\
**Replies:** 4\
**Last updated:** [May 30, 2023, 2:24pm UTC](https://discourse.julialang.org/t/what-is-the-meaning-of-multiple-objective-functions/51857 "2023-05-30T14:24:15Z")

</div>

I have multiple objective functions in my code, created by a loop around the @objective macro. Here’s the code: using JuMP using MosekTools K = 3 N = 2 penalties = \[1.0, 3.9, 8.7\] function fac1(r::Number, i::Number, l::…

---

## [Is there a reason for the LCHF approach to syntactic sugar?](https://discourse.julialang.org/t/is-there-a-reason-for-the-lchf-approach-to-syntactic-sugar/99607)

<div class="topic-metadata">

**Author:** [@Euhan](https://discourse.julialang.org/u/Euhan)\
**Replies:** 2\
**Last updated:** [May 30, 2023, 2:20pm UTC](https://discourse.julialang.org/t/is-there-a-reason-for-the-lchf-approach-to-syntactic-sugar/99607 "2023-05-30T14:20:40Z")

</div>

Preamble/Disclaimer: This topic is about syntactic sugar that I find missing. I know that these tasks are not hard to accomplish in other ways. I often find that my assumptions about what functions extend to what types…

---

## [Static Analysis with Semgrep](https://discourse.julialang.org/t/static-analysis-with-semgrep/99251)

<div class="topic-metadata">

**Author:** [@avik](https://discourse.julialang.org/u/avik)\
**Replies:** 1\
**Last updated:** [May 30, 2023, 1:22pm UTC](https://discourse.julialang.org/t/static-analysis-with-semgrep/99251 "2023-05-30T13:22:18Z")

</div>

Hi, I’m very pleased announce that the Semgrep static analysis toolkit can now be used to analyse Julia code. Semgrep is a fast, open source, static analysis engine for finding bugs, detecting dependency vulnerabilities…

---

## [Plotting with log axis](https://discourse.julialang.org/t/plotting-with-log-axis/99599)

<div class="topic-metadata">

**Author:** [@Sahil\_Khan](https://discourse.julialang.org/u/Sahil_Khan)\
**Replies:** 2\
**Last updated:** [May 30, 2023, 1:20pm UTC](https://discourse.julialang.org/t/plotting-with-log-axis/99599 "2023-05-30T13:20:40Z")

</div>

I have this code. Im trying to plot log x-axis but it doesn’t show anything and gives warning as below. I know its coming because of 0 at starting point and its log on x axis but how can i avoid and plot? x = zeros(12)…

---

## [Overwriting previous terminal output with built-in functions](https://discourse.julialang.org/t/overwriting-previous-terminal-output-with-built-in-functions/99593)

<div class="topic-metadata">

**Author:** [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Replies:** 3\
**Last updated:** [May 30, 2023, 1:20pm UTC](https://discourse.julialang.org/t/overwriting-previous-terminal-output-with-built-in-functions/99593 "2023-05-30T13:20:22Z")

</div>

This is heavily related to How clear the printed content in terminal and print to the same line?, which provides some good answers. The linked thread has examples that I used to create the showcase function below: juli…

---

## [Flux: \`nothing\` gradients with custom layer](https://discourse.julialang.org/t/flux-nothing-gradients-with-custom-layer/99565)

<div class="topic-metadata">

**Author:** [@FedeClaudi](https://discourse.julialang.org/u/FedeClaudi)\
**Replies:** 6\
**Last updated:** [May 30, 2023, 1:03pm UTC](https://discourse.julialang.org/t/flux-nothing-gradients-with-custom-layer/99565 "2023-05-30T13:03:02Z")

</div>

Hi all, I’m trying to define a custom Layer for Flux: struct CANCell topology::Symbol n::NTuple{D,Int} where {D} # number of neurons in each dimension d::Int # number of …

---

## [Unable install the Plots package in Julia 1.9.0](https://discourse.julialang.org/t/unable-install-the-plots-package-in-julia-1-9-0/99098)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 5\
**Last updated:** [May 30, 2023, 12:03pm UTC](https://discourse.julialang.org/t/unable-install-the-plots-package-in-julia-1-9-0/99098 "2023-05-30T12:03:13Z")

</div>

| | | | | | |/ \_\` | | | | |\_| | | | (\_| | | Version 1.9.0 (2023-05-07) \_/ |\\\_\_'\_|\_|\_|\\\_\_'\_| | Official https://julialang.org/ release |\_\_/ | (@v1.9) pkg\> st Status \`C:\\Users\\Hermesr\\.julia\\en…

---

## [enSight files with Julia](https://discourse.julialang.org/t/ensight-files-with-julia/99371)

<div class="topic-metadata">

**Author:** [@thomaskroi1996](https://discourse.julialang.org/u/thomaskroi1996)\
**Replies:** 3\
**Last updated:** [May 30, 2023, 11:57am UTC](https://discourse.julialang.org/t/ensight-files-with-julia/99371 "2023-05-30T11:57:43Z")

</div>

Hello! Does anyone have experience reading enSight files with Julia? If so, I was mainly wondering if there is any library that can be used for that, or whether one has to write everything! Thank you, Thomas

---

## [Is Pluto not (yet?) supported by Julia v1.9?](https://discourse.julialang.org/t/is-pluto-not-yet-supported-by-julia-v1-9/99548)

<div class="topic-metadata">

**Author:** [@apaoluzzi](https://discourse.julialang.org/u/apaoluzzi)\
**Replies:** 13\
**Last updated:** [May 30, 2023, 10:59am UTC](https://discourse.julialang.org/t/is-pluto-not-yet-supported-by-julia-v1-9/99548 "2023-05-30T10:59:22Z")

</div>

Hi guys, for many reasons I need Julia v1.9 for my project, but I get the errors below. Any cue? Julia Version 1.9.0 (2023-05-07) Official https://julialang.org/ release julia\> using Pluto julia\> Pluto.run() Opening…

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

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