# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?page=216

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

**Page:** 217

---

## [Native eigenvals for differentiable programming](https://discourse.julialang.org/t/native-eigenvals-for-differentiable-programming/27126)

<div class="topic-metadata">

**Author:** [@GJBoth](https://discourse.julialang.org/u/GJBoth)\
**Replies:** 23\
**Last updated:** [February 13, 2023, 3:32pm UTC](https://discourse.julialang.org/t/native-eigenvals-for-differentiable-programming/27126 "2023-02-13T15:32:20Z")

</div>

Hi all, I’m working on a problem where I require an autodifferentiable eigenvalue solver for real, square matrices (but non-hermitian). Since Linear algebra’s version is based on LAPACK, I can’t use autodiff and I haven…

---

## [ProgressiveHedging.jl - Decision Variables](https://discourse.julialang.org/t/progressivehedging-jl-decision-variables/94414)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 2\
**Last updated:** [February 13, 2023, 1:22pm UTC](https://discourse.julialang.org/t/progressivehedging-jl-decision-variables/94414 "2023-02-13T13:22:48Z")

</div>

Hello! I’m starting to use ProgressiveHedging.jl and testing it in a two-stage problem. However, both the first and second stages variables in my case present different dimensions. For example, I have 6 first-stage dec…

---

## [GLMakie: Reset all sliders inside SliderGrid via Button](https://discourse.julialang.org/t/glmakie-reset-all-sliders-inside-slidergrid-via-button/94555)

<div class="topic-metadata">

**Author:** [@ellocco](https://discourse.julialang.org/u/ellocco)\
**Replies:** 0\
**Last updated:** [February 13, 2023, 12:35pm UTC](https://discourse.julialang.org/t/glmakie-reset-all-sliders-inside-slidergrid-via-button/94555 "2023-02-13T12:35:45Z")

</div>

I wonder, if something exist like “Mouse.DoubleClick” on SliderGrid? The code below does what it should do, but it uses a for-loop over the SliderGrid. using GLMakie fig = Figure() # --- figure set-up: two panes side …

---

## [The heat equation solution use MethodOfLines.jl](https://discourse.julialang.org/t/the-heat-equation-solution-use-methodoflines-jl/94331)

<div class="topic-metadata">

**Author:** [@Fred\_He](https://discourse.julialang.org/u/Fred_He)\
**Replies:** 12\
**Last updated:** [February 13, 2023, 11:31am UTC](https://discourse.julialang.org/t/the-heat-equation-solution-use-methodoflines-jl/94331 "2023-02-13T11:31:56Z")

</div>

the solution looks weird in https://docs.sciml.ai/MethodOfLines/stable/tutorials/heatss/ why its u(1, 1) = 0?

---

## [Integration of arbitrarily-spaced data](https://discourse.julialang.org/t/integration-of-arbitrarily-spaced-data/94533)

<div class="topic-metadata">

**Author:** [@SantiagoOrtiz](https://discourse.julialang.org/u/SantiagoOrtiz)\
**Replies:** 2\
**Last updated:** [February 13, 2023, 7:25am UTC](https://discourse.julialang.org/t/integration-of-arbitrarily-spaced-data/94533 "2023-02-13T07:25:22Z")

</div>

Hello all, Is there any function/package in Julia that I could use to integrate one-dimensional arbitrarily-spaced data? NumericalIntegration has several options, but they require evenly spaced data. Best, Santiago

---

## [Using interpolation with unit verification in ModelingToolkit](https://discourse.julialang.org/t/using-interpolation-with-unit-verification-in-modelingtoolkit/93837)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 1\
**Last updated:** [February 12, 2023, 10:46pm UTC](https://discourse.julialang.org/t/using-interpolation-with-unit-verification-in-modelingtoolkit/93837 "2023-02-12T22:46:59Z")

</div>

I am trying to build a simulation driven by tabulated data and use unit validation. This requires interpolation of the table, and it seems DataInterpolation.jl is the intended tool (Interpolations.jl could work, but I th…

---

## [Help needed with FFT and NFFT](https://discourse.julialang.org/t/help-needed-with-fft-and-nfft/93449)

<div class="topic-metadata">

**Author:** [@Karajan](https://discourse.julialang.org/u/Karajan)\
**Replies:** 14\
**Last updated:** [February 12, 2023, 11:36am UTC](https://discourse.julialang.org/t/help-needed-with-fft-and-nfft/93449 "2023-02-12T11:36:10Z")

</div>

Hi, I think I could use some help understanding nonuniform discrete Fourier transforms (NFFT). Either I’m not using the tools correctly or I’m misunderstanding how they work in general. I read that when my signal has no…

---

## [Makie app from command line](https://discourse.julialang.org/t/makie-app-from-command-line/53890)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 12\
**Last updated:** [February 11, 2023, 9:29pm UTC](https://discourse.julialang.org/t/makie-app-from-command-line/53890 "2023-02-11T21:29:30Z")

</div>

How can I launch a Makie.jl based app from the command line? I tried: julia --project -e "include(\\"./src/KiteViewer.jl\\");main()" which shortly shows the Makie windows but then terminates. How can I achieve that it …

---

## [Seems the new update SciMLBase results in the error of DiffEqOperators.jl](https://discourse.julialang.org/t/seems-the-new-update-scimlbase-results-in-the-error-of-diffeqoperators-jl/94463)

<div class="topic-metadata">

**Author:** [@Fred\_He](https://discourse.julialang.org/u/Fred_He)\
**Replies:** 2\
**Last updated:** [February 11, 2023, 2:41pm UTC](https://discourse.julialang.org/t/seems-the-new-update-scimlbase-results-in-the-error-of-diffeqoperators-jl/94463 "2023-02-11T14:41:13Z")

</div>

I understand that DiffEqOperators.jl will be deprecated but it is still useful for me to solve some PDEs. Can anyone suggest to me how to resolve this problem? using DiffEqOperators dx = 0.1 Δ1 = UpwindDifference(1,2, d…

---

## [Mu synthesis with RobustAndOptimalControl?](https://discourse.julialang.org/t/mu-synthesis-with-robustandoptimalcontrol/94427)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 9\
**Last updated:** [February 11, 2023, 2:23pm UTC](https://discourse.julialang.org/t/mu-synthesis-with-robustandoptimalcontrol/94427 "2023-02-11T14:23:18Z")

</div>

µ synthesis is a generalization of the controller design done using H infinity control. Is there a way to do µ synthesis using the RobustAndOptimalControl package?

---

## [About the implementation of SciMLOperators.FunctionOperator](https://discourse.julialang.org/t/about-the-implementation-of-scimloperators-functionoperator/93738)

<div class="topic-metadata">

**Author:** [@sbrisard](https://discourse.julialang.org/u/sbrisard)\
**Replies:** 8\
**Last updated:** [February 11, 2023, 10:30am UTC](https://discourse.julialang.org/t/about-the-implementation-of-scimloperators-functionoperator/93738 "2023-02-11T10:30:26Z")

</div>

I am looking into SciMLOperators to define convolution linear operators. I was wondering why FunctionOperator requires prototypes of the input and output. Would the sizes not be sufficient? Also, it seems to me that t…

---

## [Reactive UI that does not stop tasks after page refresh/close](https://discourse.julialang.org/t/reactive-ui-that-does-not-stop-tasks-after-page-refresh-close/94455)

<div class="topic-metadata">

**Author:** [@wiseac](https://discourse.julialang.org/u/wiseac)\
**Replies:** 0\
**Last updated:** [February 11, 2023, 5:33am UTC](https://discourse.julialang.org/t/reactive-ui-that-does-not-stop-tasks-after-page-refresh-close/94455 "2023-02-11T05:33:40Z")

</div>

Hello, I’m trying to get into using a reactive web ui like Stipple.jl to create a Web UI that can control an analytical instrument. My main problem is i do not know how to keep a function running on the backend when the…

---

## [Initial conditions as functions of parameters in ModelingToolkit?](https://discourse.julialang.org/t/initial-conditions-as-functions-of-parameters-in-modelingtoolkit/94438)

<div class="topic-metadata">

**Author:** [@sdwfrost](https://discourse.julialang.org/u/sdwfrost)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 10:23pm UTC](https://discourse.julialang.org/t/initial-conditions-as-functions-of-parameters-in-modelingtoolkit/94438 "2023-02-10T22:23:32Z")

</div>

Hi everyone, Is it possible to have initial conditions as functions of the parameters in ModelingToolkit?

---

## [JuMP: get (warm)start value of an expression](https://discourse.julialang.org/t/jump-get-warm-start-value-of-an-expression/93259)

<div class="topic-metadata">

**Author:** [@john\_standard](https://discourse.julialang.org/u/john_standard)\
**Replies:** 3\
**Last updated:** [February 10, 2023, 8:24pm UTC](https://discourse.julialang.org/t/jump-get-warm-start-value-of-an-expression/93259 "2023-02-10T20:24:07Z")

</div>

Context I’m trying to write some utility functions to solve non linear control problems using JuMP. Following the Rocket control tutorial I set my state variables as JuMP variables and the dynamics as constraints. Howev…

---

## [Question about CUDA kernels](https://discourse.julialang.org/t/question-about-cuda-kernels/94345)

<div class="topic-metadata">

**Author:** [@EduMolinero](https://discourse.julialang.org/u/EduMolinero)\
**Replies:** 4\
**Last updated:** [February 10, 2023, 3:33pm UTC](https://discourse.julialang.org/t/question-about-cuda-kernels/94345 "2023-02-10T15:33:02Z")

</div>

Hi! I’m struggling to implement the following CUDA kernel: using CUDA using LinearAlgebra function kernel!(A, B, C) X = CUDA.size(A)\[3\] Y = CUDA.size(B)\[3\] for j in 1:X for i in 1:Y @in…

---

## [Surprising benchmark results for a basic mixed precision example](https://discourse.julialang.org/t/surprising-benchmark-results-for-a-basic-mixed-precision-example/94410)

<div class="topic-metadata">

**Author:** [@nvenkov1](https://discourse.julialang.org/u/nvenkov1)\
**Replies:** 1\
**Last updated:** [February 10, 2023, 1:47pm UTC](https://discourse.julialang.org/t/surprising-benchmark-results-for-a-basic-mixed-precision-example/94410 "2023-02-10T13:47:57Z")

</div>

I started to experiment with mixed precision and I benchmarked a basic example as follows: using BenchmarkTools using Quadmath using LinearAlgebra a16 = Vector{Float16}(undef, 100\_000\_000); a32 = Vector{Float32}(undef, …

---

## [DiffEqFlux.jl: Questions about Neural ODEs](https://discourse.julialang.org/t/diffeqflux-jl-questions-about-neural-odes/94409)

<div class="topic-metadata">

**Author:** [@scj](https://discourse.julialang.org/u/scj)\
**Replies:** 1\
**Last updated:** [February 10, 2023, 1:46pm UTC](https://discourse.julialang.org/t/diffeqflux-jl-questions-about-neural-odes/94409 "2023-02-10T13:46:05Z")

</div>

I’m relatively new to both Julia and deep learning. I want to learn the dynamical model of a system using a set of observed trajectories. I’ve heard neural ODEs may be of promise, but they seem quite new, and I haven’t b…

---

## [Web server with latency-sensitive and compute-heavy task separate thread pools](https://discourse.julialang.org/t/web-server-with-latency-sensitive-and-compute-heavy-task-separate-thread-pools/93949)

<div class="topic-metadata">

**Author:** [@simsurace](https://discourse.julialang.org/u/simsurace)\
**Replies:** 12\
**Last updated:** [February 10, 2023, 9:32am UTC](https://discourse.julialang.org/t/web-server-with-latency-sensitive-and-compute-heavy-task-separate-thread-pools/93949 "2023-02-10T09:32:03Z")

</div>

I need to set up a web server that mainly serves requests which are computationally heavy and multithreaded, but should remain responsive to health checks (from a Kubernetes cluster) which are latency sensitive. I want t…

---

## [Saving Unitful DataFrame to file](https://discourse.julialang.org/t/saving-unitful-dataframe-to-file/69313)

<div class="topic-metadata">

**Author:** [@Gregstrq](https://discourse.julialang.org/u/Gregstrq)\
**Replies:** 8\
**Last updated:** [February 10, 2023, 7:08am UTC](https://discourse.julialang.org/t/saving-unitful-dataframe-to-file/69313 "2023-02-10T07:08:03Z")

</div>

Imagine I have a DataFrame with some of the columns being Unitful. Is there a way to save such a DataFrame into a file while preserving the information about the units? The only solution I can think about is to strip it…

---

## [ReverseDiff for loss function with Zygote derivatives](https://discourse.julialang.org/t/reversediff-for-loss-function-with-zygote-derivatives/94382)

<div class="topic-metadata">

**Author:** [@PatrickMcFarlane](https://discourse.julialang.org/u/PatrickMcFarlane)\
**Replies:** 1\
**Last updated:** [February 10, 2023, 3:30am UTC](https://discourse.julialang.org/t/reversediff-for-loss-function-with-zygote-derivatives/94382 "2023-02-10T03:30:24Z")

</div>

I’m trying to use Flux.jl to find the solution to a function equation with a form a bit like g(f(x)\[1\]) = h(f’(x)), where f(x) is an unkown function to be approximated by a neural network. The loss function for this set…

---

## [Can I use user defined data types with ODE?](https://discourse.julialang.org/t/can-i-use-user-defined-data-types-with-ode/94390)

<div class="topic-metadata">

**Author:** [@shaurya](https://discourse.julialang.org/u/shaurya)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 3:26am UTC](https://discourse.julialang.org/t/can-i-use-user-defined-data-types-with-ode/94390 "2023-02-10T03:26:36Z")

</div>

Can I use user defined data type with ODE function? mutable struct ud a::Float64 b::Float64 end function od!(dx,x,t) dx.= \[1, x.a \]; end ic = ud(1.0,2.0); prob=ODEProblem(od!,ic,(0.0,1.2)); sol1=solve(p…

---

## [NLopt :FORCED\_STOP after one iteration Gradient based optimization](https://discourse.julialang.org/t/nlopt-forced-stop-after-one-iteration-gradient-based-optimization/94383)

<div class="topic-metadata">

**Author:** [@SamerGerges](https://discourse.julialang.org/u/SamerGerges)\
**Replies:** 7\
**Last updated:** [February 10, 2023, 2:33am UTC](https://discourse.julialang.org/t/nlopt-forced-stop-after-one-iteration-gradient-based-optimization/94383 "2023-02-10T02:33:19Z")

</div>

Hello, I am using NLopt to solve an optimization problem with non-linear constraints. I provide the gradients for both the optimization function and the gradient function. Both functions provide the correct values of th…

---

## [How to test solvers in JuMP](https://discourse.julialang.org/t/how-to-test-solvers-in-jump/94250)

<div class="topic-metadata">

**Author:** [@kevinqiao](https://discourse.julialang.org/u/kevinqiao)\
**Replies:** 2\
**Last updated:** [February 10, 2023, 1:42am UTC](https://discourse.julialang.org/t/how-to-test-solvers-in-jump/94250 "2023-02-10T01:42:58Z")

</div>

I have installed JuMP and some solvers, how to test solvers in JuMP, as I want to verify the solvers work well and the correct solution can be obtained. Thanks in advance.

---

## [How to optimize trace of matrix inverse with JuMP or Convex?](https://discourse.julialang.org/t/how-to-optimize-trace-of-matrix-inverse-with-jump-or-convex/94167)

<div class="topic-metadata">

**Author:** [@biona001](https://discourse.julialang.org/u/biona001)\
**Replies:** 6\
**Last updated:** [February 10, 2023, 1:03am UTC](https://discourse.julialang.org/t/how-to-optimize-trace-of-matrix-inverse-with-jump-or-convex/94167 "2023-02-10T01:03:43Z")

</div>

Hi community, I want to minimize tr(S^{-1}) + tr((A - S)^{-1}) such that S \\succeq 0 and A - S \\succeq 0 (S is the optimization matrix, A is some fixed positive definite matrix) I tried using JuMP + Hypatia: using Hyp…

---

## [Using CuSparseMatrixCSR](https://discourse.julialang.org/t/using-cusparsematrixcsr/94379)

<div class="topic-metadata">

**Author:** [@shakedregev](https://discourse.julialang.org/u/shakedregev)\
**Replies:** 1\
**Last updated:** [February 9, 2023, 11:09pm UTC](https://discourse.julialang.org/t/using-cusparsematrixcsr/94379 "2023-02-09T23:09:35Z")

</div>

Hi, Based on the CUDA.jl github I tried to create a CuSparseMatrixCSR matrix. I’m sparing the loading of the data, all of the values I input in are defined. using CUDA export CuSparseMatrixCSC, CuSparseMatrixCSR, CuSp…

---

## [MTK & vector equations -- get error message on "axes of broadcast not known"](https://discourse.julialang.org/t/mtk-vector-equations-get-error-message-on-axes-of-broadcast-not-known/94343)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 9\
**Last updated:** [February 9, 2023, 9:15pm UTC](https://discourse.julialang.org/t/mtk-vector-equations-get-error-message-on-axes-of-broadcast-not-known/94343 "2023-02-09T21:15:23Z")

</div>

OK… I’m finally trying to learn MTK by re-implementing old models from Modelica (i.e., the models work). Now, I’m doing a manual discretization of an advection PDE/simple gas pipe. It is not super realistic, but that is…

---

## [What is the difference between variable definition in JuMP like these two ways](https://discourse.julialang.org/t/what-is-the-difference-between-variable-definition-in-jump-like-these-two-ways/94337)

<div class="topic-metadata">

**Author:** [@Betristor](https://discourse.julialang.org/u/Betristor)\
**Replies:** 4\
**Last updated:** [February 9, 2023, 8:20pm UTC](https://discourse.julialang.org/t/what-is-the-difference-between-variable-definition-in-jump-like-these-two-ways/94337 "2023-02-09T20:20:20Z")

</div>

I got two difinition ways used in my JuMP model. And I encountered some trouble when I try to access their results using value function. A is a variable defined as @variable(M, A\[i = 1:3, t = 1:24\]) and B is like @variab…

---

## [Number of iterations increases with successive optimizations](https://discourse.julialang.org/t/number-of-iterations-increases-with-successive-optimizations/94352)

<div class="topic-metadata">

**Author:** [@aurelhern](https://discourse.julialang.org/u/aurelhern)\
**Replies:** 2\
**Last updated:** [February 9, 2023, 7:40pm UTC](https://discourse.julialang.org/t/number-of-iterations-increases-with-successive-optimizations/94352 "2023-02-09T19:40:59Z")

</div>

Dear all, I am running an optimization problem (multi-period DC-optimal power flow). And when using set\_normalized\_rhs function to modify the constant term on the right-hand-side of the concerned constraints and re-opti…

---

## [Error in InfiniteOpt.jl quick start example](https://discourse.julialang.org/t/error-in-infiniteopt-jl-quick-start-example/94275)

<div class="topic-metadata">

**Author:** [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)\
**Replies:** 5\
**Last updated:** [February 9, 2023, 7:23pm UTC](https://discourse.julialang.org/t/error-in-infiniteopt-jl-quick-start-example/94275 "2023-02-09T19:23:37Z")

</div>

Hi everyone, I have tried to run a tutorial example in InfiniteOpt.jl. using InfiniteOpt, Distributions, Ipopt # DEFINE THE PROBLEM CONSTANTS μ = 1; σ = 0.2 x0 = \[0, 0\]; v0 = \[0, 0\] p = \[1 4 6 1; 1 3 0 1\]; tw = \[0,…

---

## [How to resize and fill more efficiently?](https://discourse.julialang.org/t/how-to-resize-and-fill-more-efficiently/94081)

<div class="topic-metadata">

**Author:** [@Ahmed\_Salih](https://discourse.julialang.org/u/Ahmed_Salih)\
**Replies:** 14\
**Last updated:** [February 9, 2023, 7:16pm UTC](https://discourse.julialang.org/t/how-to-resize-and-fill-more-efficiently/94081 "2023-02-09T19:16:37Z")

</div>

Hello! Suppose I have: using StaticArrays S = rand(SVector{3,Float32},10^6) function MyResizeAndFill!(S,N) resize!(S,N) fill!(S,zero(eltype(S))) end @benchmark MyResizeAndFill!($S,$(10^8)) BenchmarkTools.Tri…

[Previous page](https://discourse.julialang.org/c/domain/10.md?page=215)

[Next page](https://discourse.julialang.org/c/domain/10.md?page=217)
