# Specific Domains

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

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

**Page:** 88

---

## [How to work with JuMP and Graphs.jl](https://discourse.julialang.org/t/how-to-work-with-jump-and-graphs-jl/118948)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 2\
**Last updated:** [September 2, 2024, 9:33pm UTC](https://discourse.julialang.org/t/how-to-work-with-jump-and-graphs-jl/118948 "2024-09-02T21:33:46Z")

</div>

I try to build a flow model using JuMP and (Meta)Graphs.jl. In particular I fail to index the variables. Here is an MWE: using Graphs using JuMP g = SimpleDiGraph(4) for i in 1:3 add\_edge!(g, i, i+1) end model = M…

---

## [No method matching iterate(::Shapefile.Polygon)](https://discourse.julialang.org/t/no-method-matching-iterate-shapefile-polygon/118959)

<div class="topic-metadata">

**Author:** [@schwob](https://discourse.julialang.org/u/schwob)\
**Replies:** 0\
**Last updated:** [September 2, 2024, 7:50pm UTC](https://discourse.julialang.org/t/no-method-matching-iterate-shapefile-polygon/118959 "2024-09-02T19:50:27Z")

</div>

I want to know if a lat/long coordinate is inside a specified set of US states. I downloaded a shapefile for the US states from the Census Bureau. Suppose my coordinate is (38.4511,-80.5194), and I want to know if this c…

---

## [Makie - What could be holding references to plots after I empty! an axis?](https://discourse.julialang.org/t/makie-what-could-be-holding-references-to-plots-after-i-empty-an-axis/118913)

<div class="topic-metadata">

**Author:** [@AMB](https://discourse.julialang.org/u/AMB)\
**Replies:** 3\
**Last updated:** [September 2, 2024, 7:32pm UTC](https://discourse.julialang.org/t/makie-what-could-be-holding-references-to-plots-after-i-empty-an-axis/118913 "2024-09-02T19:32:03Z")

</div>

Hi all! I am using GeoMakie and GeoAxis, in case that makes any difference. My application creates a series of visualizations on the GeoAxis, one at a time. When the user indicates that they want the next visualization…

---

## [Detecting problems with numerically challenging models](https://discourse.julialang.org/t/detecting-problems-with-numerically-challenging-models/118592)

<div class="topic-metadata">

**Author:** [@sstroemer](https://discourse.julialang.org/u/sstroemer)\
**Replies:** 4\
**Last updated:** [September 2, 2024, 4:28pm UTC](https://discourse.julialang.org/t/detecting-problems-with-numerically-challenging-models/118592 "2024-09-02T16:28:47Z")

</div>

Consider loading and solving a model using using JuMP import Gurobi mwe = read\_from\_file("mwe.mps"; format = MOI.FileFormats.FORMAT\_MPS) set\_optimizer(mwe, Gurobi.Optimizer) set\_attribute(mwe, "Method", 2) set\_attribut…

---

## [Makie: swapping plots, un-hiding decorations, loading existing plot objects into axes](https://discourse.julialang.org/t/makie-swapping-plots-un-hiding-decorations-loading-existing-plot-objects-into-axes/118922)

<div class="topic-metadata">

**Author:** [@oscarvdvelde](https://discourse.julialang.org/u/oscarvdvelde)\
**Replies:** 3\
**Last updated:** [September 2, 2024, 1:55pm UTC](https://discourse.julialang.org/t/makie-swapping-plots-un-hiding-decorations-loading-existing-plot-objects-into-axes/118922 "2024-09-02T13:55:08Z")

</div>

I am making a toggle (or later, a menu) that swaps a subplot for a totally different plot in the same space e.g. fig\[1:2, 3:4\]. Say I predefine two Axes objects, ax2a and ax2b with their x and y tick properties and labe…

---

## [Geocoding in Julia? (getting latitude and longitude from addresses)](https://discourse.julialang.org/t/geocoding-in-julia-getting-latitude-and-longitude-from-addresses/118814)

<div class="topic-metadata">

**Author:** [@indymnv](https://discourse.julialang.org/u/indymnv)\
**Replies:** 5\
**Last updated:** [September 2, 2024, 1:10pm UTC](https://discourse.julialang.org/t/geocoding-in-julia-getting-latitude-and-longitude-from-addresses/118814 "2024-09-02T13:10:34Z")

</div>

I have a dataframe with several addresses and I want to extract the latitude and longitude potentially using OpenStreetMap, is there a package that help with that?

---

## [Truncate a distribution using draws of a random variable as bound](https://discourse.julialang.org/t/truncate-a-distribution-using-draws-of-a-random-variable-as-bound/117683)

<div class="topic-metadata">

**Author:** [@Tobias-Thomas](https://discourse.julialang.org/u/Tobias-Thomas)\
**Replies:** 1\
**Last updated:** [September 2, 2024, 7:52am UTC](https://discourse.julialang.org/t/truncate-a-distribution-using-draws-of-a-random-variable-as-bound/117683 "2024-09-02T07:52:27Z")

</div>

Hi, Is it possible to use the draw of one random variable as the bound for another one? In my example, I have a simple linear relationship with x-values in the interval \[0,1\] and I want to bound the resulting y-value to…

---

## [Writing a Metal Kernel](https://discourse.julialang.org/t/writing-a-metal-kernel/100891)

<div class="topic-metadata">

**Author:** [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Replies:** 9\
**Last updated:** [September 1, 2024, 3:35pm UTC](https://discourse.julialang.org/t/writing-a-metal-kernel/100891 "2024-09-01T15:35:54Z")

</div>

I have the following kernel in CUDA function inv!(scale, nthreads) nblocks = cld(length(scale), nthreads) @cuda threads=nthreads blocks=nblocks inv\_kernel!(scale) end function inv\_kernel!(scale) index = (blockIdx()…

---

## [Stability of steady-state heat equation example for MethodOfLines.jl](https://discourse.julialang.org/t/stability-of-steady-state-heat-equation-example-for-methodoflines-jl/98651)

<div class="topic-metadata">

**Author:** [@thomasteisberg](https://discourse.julialang.org/u/thomasteisberg)\
**Replies:** 16\
**Last updated:** [September 1, 2024, 2:59pm UTC](https://discourse.julialang.org/t/stability-of-steady-state-heat-equation-example-for-methodoflines-jl/98651 "2024-09-01T14:59:31Z")

</div>

The steady-state heat equation example from the MethodOfLines.jl documentation seems to break for smaller step sizes. The example I’m referring to is here: Steady State Heat Equation - No Time Dependence - NonlinearProbl…

---

## [Examodels: Dealing with empty constraints and data](https://discourse.julialang.org/t/examodels-dealing-with-empty-constraints-and-data/118669)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 4\
**Last updated:** [August 31, 2024, 9:25pm UTC](https://discourse.julialang.org/t/examodels-dealing-with-empty-constraints-and-data/118669 "2024-08-31T21:25:59Z")

</div>

@sshin23 , @frapac I am solving AC OPF with extended modeled features. In particular my issue is that I may have actively controlled transformers in data, but also there could be no actively controlled transformers and …

---

## [Need a basic example on using custom structs in CUDA.jl with Adapt.jl](https://discourse.julialang.org/t/need-a-basic-example-on-using-custom-structs-in-cuda-jl-with-adapt-jl/118829)

<div class="topic-metadata">

**Author:** [@NonDairyNeutrino](https://discourse.julialang.org/u/NonDairyNeutrino)\
**Replies:** 2\
**Last updated:** [August 31, 2024, 7:11pm UTC](https://discourse.julialang.org/t/need-a-basic-example-on-using-custom-structs-in-cuda-jl-with-adapt-jl/118829 "2024-08-31T19:11:26Z")

</div>

I’m having a hard time understanding both the purpose of and how to use Adapt.jl to pass custom structs to CUDA kernels (that might not even be right). I’ve tried reading the CUDA.jl documentation and implementing a tri…

---

## [Using flat() in LinearInterpolation](https://discourse.julialang.org/t/using-flat-in-linearinterpolation/58740)

<div class="topic-metadata">

**Author:** [@bojeryd91](https://discourse.julialang.org/u/bojeryd91)\
**Replies:** 3\
**Last updated:** [August 31, 2024, 1:50am UTC](https://discourse.julialang.org/t/using-flat-in-linearinterpolation/58740 "2024-08-31T01:50:36Z")

</div>

I want to create an interpolation object which uses the Flat() option when extrapolating, but I run into “Flat() not defined” when specifying it so. The Line() option works well. Eg., the following works interp1 = Line…

---

## [Float16 with AMDGPU](https://discourse.julialang.org/t/float16-with-amdgpu/118805)

<div class="topic-metadata">

**Author:** [@snowgum](https://discourse.julialang.org/u/snowgum)\
**Replies:** 10\
**Last updated:** [August 30, 2024, 8:14pm UTC](https://discourse.julialang.org/t/float16-with-amdgpu/118805 "2024-08-30T20:14:46Z")

</div>

Does AMDGPU support optimised Float16 or BFloat16 operations? I am testing in a AMD Instinct MI100, which theoretically has much better performance for Float16 (and BFloat16). However, when I try the sample vadd!() funct…

---

## [Plots.jl : positioning and scaling of "annotate!"](https://discourse.julialang.org/t/plots-jl-positioning-and-scaling-of-annotate/11290)

<div class="topic-metadata">

**Author:** [@Rob\_van\_Weelderen](https://discourse.julialang.org/u/Rob_van_Weelderen)\
**Replies:** 8\
**Last updated:** [August 30, 2024, 5:46pm UTC](https://discourse.julialang.org/t/plots-jl-positioning-and-scaling-of-annotate/11290 "2024-08-30T17:46:03Z")

</div>

I would like to put on the lower right corner of my plots a notification text string, typically citing the the “data source : date of production” Although I can put text using annotate!(xpos, ypos, "my text", :color) i…

---

## [Solving Stiff-ODE using PINN via NNODE](https://discourse.julialang.org/t/solving-stiff-ode-using-pinn-via-nnode/118485)

<div class="topic-metadata">

**Author:** [@Reza\_AO](https://discourse.julialang.org/u/Reza_AO)\
**Replies:** 6\
**Last updated:** [August 30, 2024, 3:07pm UTC](https://discourse.julialang.org/t/solving-stiff-ode-using-pinn-via-nnode/118485 "2024-08-30T15:07:30Z")

</div>

Hi I have been trying to solve the ODE below: dc/dt = - Acexp(-E/(R\*T(t))) Then I scaled time and Temperature it turned into: dc/dt\_ = - Actim\_maxexp(-E/(RT\_(t)\*T\_max)) !Note that the temperature increases through …

---

## [ERROR: ArgumentError: EPSG/ESRI code for the ESRI ID "GCS\_North\_American\_1983" not found in dictionary](https://discourse.julialang.org/t/error-argumenterror-epsg-esri-code-for-the-esri-id-gcs-north-american-1983-not-found-in-dictionary/118794)

<div class="topic-metadata">

**Author:** [@imantha](https://discourse.julialang.org/u/imantha)\
**Replies:** 5\
**Last updated:** [August 30, 2024, 11:03am UTC](https://discourse.julialang.org/t/error-argumenterror-epsg-esri-code-for-the-esri-id-gcs-north-american-1983-not-found-in-dictionary/118794 "2024-08-30T11:03:41Z")

</div>

Any one can help me with this error when attempting read a shape file using GeoIO using GeoIO df\_lo = GeoIO.load("data/processed/low/us\_division\_2018/us\_division\_2018.shp") \>\>\> ERROR: ArgumentError: EPSG/ESRI code for …

---

## [How do I import t\_nounits with a different name than t in ModelingToolkit?](https://discourse.julialang.org/t/how-do-i-import-t-nounits-with-a-different-name-than-t-in-modelingtoolkit/118640)

<div class="topic-metadata">

**Author:** [@pmc4](https://discourse.julialang.org/u/pmc4)\
**Replies:** 4\
**Last updated:** [August 30, 2024, 10:10am UTC](https://discourse.julialang.org/t/how-do-i-import-t-nounits-with-a-different-name-than-t-in-modelingtoolkit/118640 "2024-08-30T10:10:59Z")

</div>

Hi everyone! I’ve been playing with ModelingToolkit for several weeks, but there’s still one issue I haven’t been able to fully understand. In the NEWS.md file of the github repo, it states: ModelingToolkit.jl now exp…

---

## [Get the maximum value by row in a DataFrame containing missing values](https://discourse.julialang.org/t/get-the-maximum-value-by-row-in-a-dataframe-containing-missing-values/118777)

<div class="topic-metadata">

**Author:** [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Replies:** 10\
**Last updated:** [August 30, 2024, 5:37am UTC](https://discourse.julialang.org/t/get-the-maximum-value-by-row-in-a-dataframe-containing-missing-values/118777 "2024-08-30T05:37:15Z")

</div>

I want to aggregate data over rows, which works well if the row contains some values. When the data row is empty maximum throws an error. Maybe someone has an idea how to make this faster. My table has usually about r…

---

## [Current State of Hyperparameter Tuning?](https://discourse.julialang.org/t/current-state-of-hyperparameter-tuning/118701)

<div class="topic-metadata">

**Author:** [@jacobadenbaum](https://discourse.julialang.org/u/jacobadenbaum)\
**Replies:** 1\
**Last updated:** [August 30, 2024, 4:19am UTC](https://discourse.julialang.org/t/current-state-of-hyperparameter-tuning/118701 "2024-08-30T04:19:55Z")

</div>

For people who work on machine learning, I’m trying to figure out what is the state of the art for packages/methods to do hyperparameter tuning. I see there is a package Hyperopt.jl, which has a lot of contributions but…

---

## [Animation with start and stop control in Plots.jl?](https://discourse.julialang.org/t/animation-with-start-and-stop-control-in-plots-jl/118729)

<div class="topic-metadata">

**Author:** [@BVPs](https://discourse.julialang.org/u/BVPs)\
**Replies:** 3\
**Last updated:** [August 29, 2024, 9:44pm UTC](https://discourse.julialang.org/t/animation-with-start-and-stop-control-in-plots-jl/118729 "2024-08-29T21:44:32Z")

</div>

Hello. I started my experiments on animations using Plots.jl. There is a quite useful webpage: Animations with Plots.jl (juliafordatascience.com) Using @animate or @gif macros, it’s quite easy to generate animations. H…

---

## [Bug in write\_to\_file for max-type problems in bilinear terms?](https://discourse.julialang.org/t/bug-in-write-to-file-for-max-type-problems-in-bilinear-terms/118781)

<div class="topic-metadata">

**Author:** [@anogaja](https://discourse.julialang.org/u/anogaja)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 9:16pm UTC](https://discourse.julialang.org/t/bug-in-write-to-file-for-max-type-problems-in-bilinear-terms/118781 "2024-08-29T21:16:50Z")

</div>

The max objective problem in JuMP when written to an mps file is converted to a min type objective by flipping the signs. However, it didn’t do it for the bilinear terms in the objective. Am I missing something? Follow…

---

## [Add coordinate transformation before first layer in NeuralPDE.jl](https://discourse.julialang.org/t/add-coordinate-transformation-before-first-layer-in-neuralpde-jl/118769)

<div class="topic-metadata">

**Author:** [@nico](https://discourse.julialang.org/u/nico)\
**Replies:** 5\
**Last updated:** [August 29, 2024, 8:16pm UTC](https://discourse.julialang.org/t/add-coordinate-transformation-before-first-layer-in-neuralpde-jl/118769 "2024-08-29T20:16:54Z")

</div>

Hi, I woud like to add a transformation to the coordinates x and y before they are passed to the first layer of a neural net defined with Lux using NerualPDE.jl. I am implementing physics informed neural networks. The …

---

## [Matrix multiplication time with JuMP variables](https://discourse.julialang.org/t/matrix-multiplication-time-with-jump-variables/118650)

<div class="topic-metadata">

**Author:** [@mhar](https://discourse.julialang.org/u/mhar)\
**Replies:** 5\
**Last updated:** [August 29, 2024, 7:59pm UTC](https://discourse.julialang.org/t/matrix-multiplication-time-with-jump-variables/118650 "2024-08-29T19:59:40Z")

</div>

I am using JuMP to solve some large problems. A bottleneck right now is computing a matrix-vector product. M is a short and fat matrix of floats, and x is a variable vector. Mx will be a vector of moderate length, but f…

---

## [Why does the plot of EnsembleProblem differ from the original ODEProblem?](https://discourse.julialang.org/t/why-does-the-plot-of-ensembleproblem-differ-from-the-original-odeproblem/118415)

<div class="topic-metadata">

**Author:** [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 5:59pm UTC](https://discourse.julialang.org/t/why-does-the-plot-of-ensembleproblem-differ-from-the-original-odeproblem/118415 "2024-08-29T17:59:44Z")

</div>

I assume that if I don’t change the problem in EnsembleProblem, the EnsembleSummary should produce the same plot as the original ODEProblem solution. Simple example: module test using Plots, StatsPlots using LinearAlg…

---

## [Pick the value from a result](https://discourse.julialang.org/t/pick-the-value-from-a-result/118713)

<div class="topic-metadata">

**Author:** [@Stephen](https://discourse.julialang.org/u/Stephen)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 8:36am UTC](https://discourse.julialang.org/t/pick-the-value-from-a-result/118713 "2024-08-29T08:36:46Z")

</div>

Here is a solution of a Bayesian inference using RxInfer: julia\> result Inference results: Posteriors | available for (i\_β) julia\> result.posteriors Dict{Symbol, Vector{Dirichlet{Float64, Vector{Float64}, Float…

---

## [Which function in julia.Flux is similar to "detach()" in pytorch?](https://discourse.julialang.org/t/which-function-in-julia-flux-is-similar-to-detach-in-pytorch/118757)

<div class="topic-metadata">

**Author:** [@ZC\_H](https://discourse.julialang.org/u/ZC_H)\
**Replies:** 2\
**Last updated:** [August 29, 2024, 8:59am UTC](https://discourse.julialang.org/t/which-function-in-julia-flux-is-similar-to-detach-in-pytorch/118757 "2024-08-29T08:59:36Z")

</div>

When I train a network using pytorch, sometimes I do not what a tensor participate in gradient backward. But however, I cannot find a function that is similar to “detach()” in julia.Flux. So when I use julia to train a n…

---

## [My second order ODE explodes](https://discourse.julialang.org/t/my-second-order-ode-explodes/118758)

<div class="topic-metadata">

**Author:** [@minetest2048](https://discourse.julialang.org/u/minetest2048)\
**Replies:** 1\
**Last updated:** [August 29, 2024, 8:15am UTC](https://discourse.julialang.org/t/my-second-order-ode-explodes/118758 "2024-08-29T08:15:30Z")

</div>

I’m trying to simulate a one-body problem: Two-Body Numerical Solution in an Inertial Frame — Orbital Mechanics & Astrodynamics \\ddot{r} = \\frac{-GM}{|r|^3}r = \\frac{\\mu}{|r|^3}r Which can be split into: \\ddot{r\_x} =…

---

## [Using derived quantities from previous time step](https://discourse.julialang.org/t/using-derived-quantities-from-previous-time-step/118642)

<div class="topic-metadata">

**Author:** [@pulk\_jain](https://discourse.julialang.org/u/pulk_jain)\
**Replies:** 11\
**Last updated:** [August 28, 2024, 10:29pm UTC](https://discourse.julialang.org/t/using-derived-quantities-from-previous-time-step/118642 "2024-08-28T22:29:54Z")

</div>

What is the best way to use a derived value (not part of the solution vector) from the previous time step. I was thinking of passing it like a parameter and updating at each time. I did something like: #Approach1 funct…

---

## [Source code annotation using NVTX in CUDA.jl](https://discourse.julialang.org/t/source-code-annotation-using-nvtx-in-cuda-jl/118730)

<div class="topic-metadata">

**Author:** [@Cibin\_Joseph](https://discourse.julialang.org/u/Cibin_Joseph)\
**Replies:** 2\
**Last updated:** [August 28, 2024, 7:07pm UTC](https://discourse.julialang.org/t/source-code-annotation-using-nvtx-in-cuda-jl/118730 "2024-08-28T19:07:50Z")

</div>

I’ve been able to get source code annotation working with the CUDA.jl source code but not with my own kernels. For example, the following MWE does not seem to work and complains with unsupported call to unknown functio…

---

## [Matrix inverse and multivariate normal distribution](https://discourse.julialang.org/t/matrix-inverse-and-multivariate-normal-distribution/118724)

<div class="topic-metadata">

**Author:** [@fmor](https://discourse.julialang.org/u/fmor)\
**Replies:** 2\
**Last updated:** [August 28, 2024, 6:07pm UTC](https://discourse.julialang.org/t/matrix-inverse-and-multivariate-normal-distribution/118724 "2024-08-28T18:07:09Z")

</div>

Hello, I am fitting a spatio-temporal-and-informed-with-covariates bayesian model in Julia. I have a regression vector with prior distribution \\vec{\\beta}\_t \\sim \\mathcal{N}\_p(\\vec{b\_0},s^2I) (where p is the number of c…

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

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