# Specific Domains

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

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

**Page:** 79

---

## [How to dynamically assign unique names to models in a loop with @named in ModelingToolkit](https://discourse.julialang.org/t/how-to-dynamically-assign-unique-names-to-models-in-a-loop-with-named-in-modelingtoolkit/121367)

<div class="topic-metadata">

**Author:** [@DanaO](https://discourse.julialang.org/u/DanaO)\
**Replies:** 1\
**Last updated:** [October 16, 2024, 10:20am UTC](https://discourse.julialang.org/t/how-to-dynamically-assign-unique-names-to-models-in-a-loop-with-named-in-modelingtoolkit/121367 "2024-10-16T10:20:14Z")

</div>

Hi everyone, I’m working on a simulation of a gas network using ModelingToolkit in Julia, where I create multiple Pipe models inside a loop. My issue is that I need to assign unique names to each pipe created in the loo…

---

## [SDP constraints in nonlinear programm](https://discourse.julialang.org/t/sdp-constraints-in-nonlinear-programm/121283)

<div class="topic-metadata">

**Author:** [@Tbr2](https://discourse.julialang.org/u/Tbr2)\
**Replies:** 11\
**Last updated:** [October 16, 2024, 7:55am UTC](https://discourse.julialang.org/t/sdp-constraints-in-nonlinear-programm/121283 "2024-10-16T07:55:09Z")

</div>

Hello, I have quite experience with Yalmip, cvxpy, casadi, GAMS, etc and I am now thinking about moving towards Julia and JuMP. I have an important question for me, that I could not find in the documentation where I jus…

---

## [Some introductory Julia codes for HPC!](https://discourse.julialang.org/t/some-introductory-julia-codes-for-hpc/121361)

<div class="topic-metadata">

**Author:** [@hunKing](https://discourse.julialang.org/u/hunKing)\
**Replies:** 0\
**Last updated:** [October 16, 2024, 6:45am UTC](https://discourse.julialang.org/t/some-introductory-julia-codes-for-hpc/121361 "2024-10-16T06:45:14Z")

</div>

Hey folks, I wrote a few codes to serve as a jump start to learning how to use Julia with SLURM managed clusters. I uploaded them to this repository: https://github.com/AtilaSaraiva/Julia-HPC-intro-codes I’ve got a fe…

---

## [Write a String with parallel HDF5](https://discourse.julialang.org/t/write-a-string-with-parallel-hdf5/121025)

<div class="topic-metadata">

**Author:** [@johnomotani](https://discourse.julialang.org/u/johnomotani)\
**Replies:** 1\
**Last updated:** [October 16, 2024, 6:09am UTC](https://discourse.julialang.org/t/write-a-string-with-parallel-hdf5/121025 "2024-10-16T06:09:21Z")

</div>

Does anyone know the ‘correct’ way to write a scalar variable (especially a String) using parallel HDF5? I think I have a way of doing it, but it’s so ugly I’m hoping there’s a better way! The problem: suppose I have a …

---

## [How to solving SOCP and SDP by AmplNLWriter with these two solvers GUROBI 11.0.3 and Lindoapi 15?](https://discourse.julialang.org/t/how-to-solving-socp-and-sdp-by-amplnlwriter-with-these-two-solvers-gurobi-11-0-3-and-lindoapi-15/121322)

<div class="topic-metadata">

**Author:** [@wjulia](https://discourse.julialang.org/u/wjulia)\
**Replies:** 2\
**Last updated:** [October 16, 2024, 2:58am UTC](https://discourse.julialang.org/t/how-to-solving-socp-and-sdp-by-amplnlwriter-with-these-two-solvers-gurobi-11-0-3-and-lindoapi-15/121322 "2024-10-16T02:58:28Z")

</div>

hello, everyone, what is wrong with the following code of using JuMP using AmplNLWriter using LinearAlgebra using SCS using MathOptInterface # import MathOptInterface as MOI model = Model(() -\> AmplNLWriter.Optimizer…

---

## [Question about Nonlinear expressions in jump](https://discourse.julialang.org/t/question-about-nonlinear-expressions-in-jump/121353)

<div class="topic-metadata">

**Author:** [@lukebhan](https://discourse.julialang.org/u/lukebhan)\
**Replies:** 5\
**Last updated:** [October 15, 2024, 11:17pm UTC](https://discourse.julialang.org/t/question-about-nonlinear-expressions-in-jump/121353 "2024-10-15T23:17:21Z")

</div>

Hi, I am trying to use Jump (v 1.23.2) with Julia (1.11.0) with nonlinear constraints where I essential invert a constructed matrix depending on the variable x. Namely, something like m = Model(optimizer\_with\_attribute…

---

## [Evolving a DynamicalSystem until it is close to an attractor](https://discourse.julialang.org/t/evolving-a-dynamicalsystem-until-it-is-close-to-an-attractor/121294)

<div class="topic-metadata">

**Author:** [@andreasmorr](https://discourse.julialang.org/u/andreasmorr)\
**Replies:** 2\
**Last updated:** [October 15, 2024, 11:16am UTC](https://discourse.julialang.org/t/evolving-a-dynamicalsystem-until-it-is-close-to-an-attractor/121294 "2024-10-15T11:16:34Z")

</div>

Hello! I’ve been working with DynamicalSystems.jl and Attractors.jl and I’m wondering if there exists the following functionality: I would like to obtain a trajectory of a given DynamicalSystem and initial condition, wh…

---

## [I use Solver of AmplNLWriter with some errors](https://discourse.julialang.org/t/i-use-solver-of-amplnlwriter-with-some-errors/119585)

<div class="topic-metadata">

**Author:** [@wjulia](https://discourse.julialang.org/u/wjulia)\
**Replies:** 3\
**Last updated:** [October 15, 2024, 9:52am UTC](https://discourse.julialang.org/t/i-use-solver-of-amplnlwriter-with-some-errors/119585 "2024-10-15T09:52:10Z")

</div>

The following is my code : using JuMP, AmplNLWriter m = Model(() -\> AmplNLWriter.Optimizer("Your\_Path\\\\lindoapi\\\\bin\\\\win64\\\\runlindo.exe")) @variable(m, -2 \<= x1 \<= 2,Int) @variable(m, -2 \<= x2 \<= 2) @constraint(m,…

---

## [Problem installing Gridap.jl Tutorials](https://discourse.julialang.org/t/problem-installing-gridap-jl-tutorials/121306)

<div class="topic-metadata">

**Author:** [@uri](https://discourse.julialang.org/u/uri)\
**Replies:** 0\
**Last updated:** [October 14, 2024, 9:07pm UTC](https://discourse.julialang.org/t/problem-installing-gridap-jl-tutorials/121306 "2024-10-14T21:07:57Z")

</div>

I followed all the steps to install the Gridap.jl Tutorials, but when I try to instantiate the project it didin’t precompile 11 dependencies: (Tutorials) pkg\> instantiate Precompiling project… ✗ Algoim ✗ Conda ✗ Min…

---

## [Issues when using Turing with DynamicHMC](https://discourse.julialang.org/t/issues-when-using-turing-with-dynamichmc/31127)

<div class="topic-metadata">

**Author:** [@Jakob](https://discourse.julialang.org/u/Jakob)\
**Replies:** 9\
**Last updated:** [October 14, 2024, 8:35pm UTC](https://discourse.julialang.org/t/issues-when-using-turing-with-dynamichmc/31127 "2024-10-14T20:35:16Z")

</div>

Hi, when I try to run the DynamicNUTS example from the documentation upon loading the libraries (and having installed current versions) the below issues occur: Warning: Error requiring LogDensityProblems from Turing: U…

---

## [Finding steady-states symbolicaly](https://discourse.julialang.org/t/finding-steady-states-symbolicaly/119545)

<div class="topic-metadata">

**Author:** [@adhalanay](https://discourse.julialang.org/u/adhalanay)\
**Replies:** 17\
**Last updated:** [October 14, 2024, 3:06pm UTC](https://discourse.julialang.org/t/finding-steady-states-symbolicaly/119545 "2024-10-14T15:06:05Z")

</div>

Maybe the question is trivial, but I cannot find an answer. Using Catalyst.jl I introduced a reaction network rn and constructed the corresponding system of ODEs with convert(ODESystem,rn). The system has a number of pa…

---

## [Stream Connections of Subsystems](https://discourse.julialang.org/t/stream-connections-of-subsystems/121279)

<div class="topic-metadata">

**Author:** [@Sebastian\_Schmitt](https://discourse.julialang.org/u/Sebastian_Schmitt)\
**Replies:** 2\
**Last updated:** [October 14, 2024, 1:20pm UTC](https://discourse.julialang.org/t/stream-connections-of-subsystems/121279 "2024-10-14T13:20:48Z")

</div>

Hi, I have a system with two subsystems (which themself have two connectors with stream variables). I want to connect the connectors of the subsystem in the main system using ModelingToolkit using ModelingToolkit: t\_nou…

---

## [How to have each node in a cluster run a parallel job on its own CPUs, using SSH?](https://discourse.julialang.org/t/how-to-have-each-node-in-a-cluster-run-a-parallel-job-on-its-own-cpus-using-ssh/80813)

<div class="topic-metadata">

**Author:** [@ultrapoci](https://discourse.julialang.org/u/ultrapoci)\
**Replies:** 4\
**Last updated:** [October 14, 2024, 11:05am UTC](https://discourse.julialang.org/t/how-to-have-each-node-in-a-cluster-run-a-parallel-job-on-its-own-cpus-using-ssh/80813 "2024-10-14T11:05:05Z")

</div>

I have access to a cluster with multiple nodes, connected thorugh SSH, each of which has multiple CPUs. My algorithm uses DistributedArrays.jl to create a distributed array and have multiple processes work on it: at the …

---

## [MTK bugging for spacing between variable and operation?](https://discourse.julialang.org/t/mtk-bugging-for-spacing-between-variable-and-operation/121278)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 2\
**Last updated:** [October 14, 2024, 10:02am UTC](https://discourse.julialang.org/t/mtk-bugging-for-spacing-between-variable-and-operation/121278 "2024-10-14T10:02:31Z")

</div>

Hello, I have a toy replication of a problem I have faced. using ModelingToolkit, DifferentialEquations @independent\_variables t @connector function myConnector(;name) vars = @variables begin x(t), \[inpu…

---

## [Configure Slurm File for Parallelization](https://discourse.julialang.org/t/configure-slurm-file-for-parallelization/121239)

<div class="topic-metadata">

**Author:** [@benjamin.nunez](https://discourse.julialang.org/u/benjamin.nunez)\
**Replies:** 4\
**Last updated:** [October 13, 2024, 7:41pm UTC](https://discourse.julialang.org/t/configure-slurm-file-for-parallelization/121239 "2024-10-13T19:41:57Z")

</div>

Hello everyone! I am using a computer cluster to parallelize the execution of my Julia code. The partition I am using has a total of 14 nodes, and my goal is to connect to this partition and execute my main.jl file, wh…

---

## [How to solve heat equation on a plane curve?](https://discourse.julialang.org/t/how-to-solve-heat-equation-on-a-plane-curve/121220)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 9\
**Last updated:** [October 13, 2024, 9:57am UTC](https://discourse.julialang.org/t/how-to-solve-heat-equation-on-a-plane-curve/121220 "2024-10-13T09:57:51Z")

</div>

Say there is thermo-conductive string which can be described by a plane curve f(x, y)=0. Heat cannot diffuse to ambient but only along the curve. How to describe this heat equation on the curve? I google it and it seems…

---

## [Radar plot in Plots.jl or Makie.jl?](https://discourse.julialang.org/t/radar-plot-in-plots-jl-or-makie-jl/88576)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 10\
**Last updated:** [October 13, 2024, 4:45am UTC](https://discourse.julialang.org/t/radar-plot-in-plots-jl-or-makie-jl/88576 "2024-10-13T04:45:10Z")

</div>

Is there a simple way to make a radar plot (like a polar plot but categorical) using Plots.jl or Makie.jl ? I can see these should be possible with a package named ECharts, but it doesn’t support VSCode and seems a bit …

---

## [Can I consider variables as Float32 or Float16 in JuMP](https://discourse.julialang.org/t/can-i-consider-variables-as-float32-or-float16-in-jump/121216)

<div class="topic-metadata">

**Author:** [@Anassis\_b](https://discourse.julialang.org/u/Anassis_b)\
**Replies:** 2\
**Last updated:** [October 12, 2024, 10:00pm UTC](https://discourse.julialang.org/t/can-i-consider-variables-as-float32-or-float16-in-jump/121216 "2024-10-12T22:00:45Z")

</div>

Hi all, I’m working on an optimization problem using JuMP with IPOPT, and I noticed that by default, variables are declared as Float64. I would like to explore using Float32 and Float16 for my variables instead. Additio…

---

## [Can LinearSolve.jl be used for non-square matrices?](https://discourse.julialang.org/t/can-linearsolve-jl-be-used-for-non-square-matrices/121217)

<div class="topic-metadata">

**Author:** [@l8l](https://discourse.julialang.org/u/l8l)\
**Replies:** 4\
**Last updated:** [October 12, 2024, 7:19pm UTC](https://discourse.julialang.org/t/can-linearsolve-jl-be-used-for-non-square-matrices/121217 "2024-10-12T19:19:07Z")

</div>

This might be a naive question, and the title basically says it already: I am trying to use LinearSolve.jl but get an error for non-square matrices: Assume I have matrix A of dimension n\\times p and vector b of dimension…

---

## [Performance of derivatives of Ensemble problem](https://discourse.julialang.org/t/performance-of-derivatives-of-ensemble-problem/121167)

<div class="topic-metadata">

**Author:** [@stochasticguy](https://discourse.julialang.org/u/stochasticguy)\
**Replies:** 2\
**Last updated:** [October 12, 2024, 6:34pm UTC](https://discourse.julialang.org/t/performance-of-derivatives-of-ensemble-problem/121167 "2024-10-12T18:34:29Z")

</div>

Hi everyone, I’m working on simulating trajectories of a Geometric Brownian Motion (GBM) and calculating sensitivities using automatic differentiation. I’m comparing two approaches: Custom GBM implementation where I d…

---

## [Put linear ODE system in matrix-vector form](https://discourse.julialang.org/t/put-linear-ode-system-in-matrix-vector-form/121170)

<div class="topic-metadata">

**Author:** [@langestefan](https://discourse.julialang.org/u/langestefan)\
**Replies:** 5\
**Last updated:** [October 12, 2024, 1:51pm UTC](https://discourse.julialang.org/t/put-linear-ode-system-in-matrix-vector-form/121170 "2024-10-12T13:51:51Z")

</div>

Hi, I am trying to put my linear ODE system in state space form. My model is quite simple: function TiThTe(input\_funcs::Dict) @parameters begin C\_i C\_e C\_h R\_ie R\_ih …

---

## [Unexpected(?) behavior using ModelingToolkit.jl, discrete\_events and irreducible](https://discourse.julialang.org/t/unexpected-behavior-using-modelingtoolkit-jl-discrete-events-and-irreducible/121142)

<div class="topic-metadata">

**Author:** [@jmaedler](https://discourse.julialang.org/u/jmaedler)\
**Replies:** 2\
**Last updated:** [October 12, 2024, 1:40pm UTC](https://discourse.julialang.org/t/unexpected-behavior-using-modelingtoolkit-jl-discrete-events-and-irreducible/121142 "2024-10-12T13:40:24Z")

</div>

Hi everyone, I am running into an issues using discrete events and irreducible variables in ModelingToolkit.jl. I hope the following example is sufficent as an MWE. It is a composite model of two tanks in sequence which…

---

## [Makie observable lift functions](https://discourse.julialang.org/t/makie-observable-lift-functions/121202)

<div class="topic-metadata">

**Author:** [@Andy2K11](https://discourse.julialang.org/u/Andy2K11)\
**Replies:** 5\
**Last updated:** [October 12, 2024, 6:37am UTC](https://discourse.julialang.org/t/makie-observable-lift-functions/121202 "2024-10-12T06:37:57Z")

</div>

Hi. I’ve been trying to learn how to use observables in Makie and have managed to make an interactive plot with an IntervalSlider. The xaxis ticks are controlled with a lift function: xticks = lift(ab\_slider.inte…

---

## [How to clear a plot from a scene with other elements in GLMakie](https://discourse.julialang.org/t/how-to-clear-a-plot-from-a-scene-with-other-elements-in-glmakie/121164)

<div class="topic-metadata">

**Author:** [@Emerson\_Vitor\_Castel](https://discourse.julialang.org/u/Emerson_Vitor_Castel)\
**Replies:** 4\
**Last updated:** [October 12, 2024, 1:09am UTC](https://discourse.julialang.org/t/how-to-clear-a-plot-from-a-scene-with-other-elements-in-glmakie/121164 "2024-10-12T01:09:01Z")

</div>

Well, I’m new to using GLMakie. I wrote a script where I want to capture mouse events and plot the points using the scatter! function. In this same scene, I would like to insert a button with the ability to clear the poi…

---

## [Odd behaviour regarding Adjoint Sensitivity Analysis](https://discourse.julialang.org/t/odd-behaviour-regarding-adjoint-sensitivity-analysis/121141)

<div class="topic-metadata">

**Author:** [@nil](https://discourse.julialang.org/u/nil)\
**Replies:** 8\
**Last updated:** [October 11, 2024, 9:49pm UTC](https://discourse.julialang.org/t/odd-behaviour-regarding-adjoint-sensitivity-analysis/121141 "2024-10-11T21:49:13Z")

</div>

Hello dear community, I have a question regarding the following code I have written. I am trying to calculate the adjoint of the simple (linear) systems forward simulation with respect to the input u. using LinearAlgeb…

---

## [Flux - sigmoid in last layer destroys learning?](https://discourse.julialang.org/t/flux-sigmoid-in-last-layer-destroys-learning/121174)

<div class="topic-metadata">

**Author:** [@BioTurboNick](https://discourse.julialang.org/u/BioTurboNick)\
**Replies:** 13\
**Last updated:** [October 11, 2024, 3:12pm UTC](https://discourse.julialang.org/t/flux-sigmoid-in-last-layer-destroys-learning/121174 "2024-10-11T15:12:18Z")

</div>

I’m fairly new to ML. But my understanding is that inner layers should generally use relu, and the final layer should use whatever function constrains the output to the range you want. In my case, sigmoid to constrain be…

---

## [Local Error Estimation for DAEs](https://discourse.julialang.org/t/local-error-estimation-for-daes/121159)

<div class="topic-metadata">

**Author:** [@aaliqureshi](https://discourse.julialang.org/u/aaliqureshi)\
**Replies:** 7\
**Last updated:** [October 11, 2024, 3:09pm UTC](https://discourse.julialang.org/t/local-error-estimation-for-daes/121159 "2024-10-11T15:09:15Z")

</div>

I’m inquiring about the error estimation approach used for solving Differential Algebraic Equations (DAEs) in Julia. The current approach considers all variables (state and algebraic) in the estimation of local error. H…

---

## [Slow indexing of constant-valued variables in MTK](https://discourse.julialang.org/t/slow-indexing-of-constant-valued-variables-in-mtk/120922)

<div class="topic-metadata">

**Author:** [@bspanoghe](https://discourse.julialang.org/u/bspanoghe)\
**Replies:** 8\
**Last updated:** [October 11, 2024, 8:42am UTC](https://discourse.julialang.org/t/slow-indexing-of-constant-valued-variables-in-mtk/120922 "2024-10-11T08:42:17Z")

</div>

Hi I’m currently working with large hierarchical models in ModelingToolkit.jl and found that indexing the solution with constant-valued variables becomes incredibly slow for larger systems. This results in plotting of t…

---

## [How to use the second method of GLM.lm?](https://discourse.julialang.org/t/how-to-use-the-second-method-of-glm-lm/121139)

<div class="topic-metadata">

**Author:** [@MJulia](https://discourse.julialang.org/u/MJulia)\
**Replies:** 2\
**Last updated:** [October 11, 2024, 12:59am UTC](https://discourse.julialang.org/t/how-to-use-the-second-method-of-glm-lm/121139 "2024-10-11T00:59:38Z")

</div>

In the documents of GLM.lm, it says: “In the second method, X must be a matrix holding values of the independent variable(s) in columns (including if appropriate the intercept), and y must be a vector holding values of …

---

## [Magnus solver slow compared with Tsitouras for linear state independent ODE](https://discourse.julialang.org/t/magnus-solver-slow-compared-with-tsitouras-for-linear-state-independent-ode/121118)

<div class="topic-metadata">

**Author:** [@facusapienza](https://discourse.julialang.org/u/facusapienza)\
**Replies:** 5\
**Last updated:** [October 10, 2024, 10:49pm UTC](https://discourse.julialang.org/t/magnus-solver-slow-compared-with-tsitouras-for-linear-state-independent-ode/121118 "2024-10-10T22:49:44Z")

</div>

Hi! I was playing a bit with the Magnus solvers included in the examples for linear ODEs in the docs: Non-autonomous Linear ODE / Lie Group ODE Solvers. I was particularly interesting in benchmarking the solver I am cur…

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

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