# Specific Domains

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

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

**Page:** 319

---

## [ACOPF Problem](https://discourse.julialang.org/t/acopf-problem/72375)

<div class="topic-metadata">

**Author:** [@priod](https://discourse.julialang.org/u/priod)\
**Replies:** 2\
**Last updated:** [December 1, 2021, 7:40pm UTC](https://discourse.julialang.org/t/acopf-problem/72375 "2021-12-01T19:40:38Z")

</div>

I am trying to run an ACOPF (Alternating current optimal power flow) in the two-node network for a variable load in time “t”. The result of the model is just the zero values and nothing else. Can someone suggest to me a …

---

## [Help with ModelingToolkit](https://discourse.julialang.org/t/help-with-modelingtoolkit/72328)

<div class="topic-metadata">

**Author:** [@contradict](https://discourse.julialang.org/u/contradict)\
**Replies:** 2\
**Last updated:** [December 1, 2021, 6:14pm UTC](https://discourse.julialang.org/t/help-with-modelingtoolkit/72328 "2021-12-01T18:14:39Z")

</div>

I am playing with the continuous\_events feature in ModelingToolkit and have gotten stuck. My current example is here. With ModelingToolkit 7.1.3, running limit\_example() produces the error ERROR: AssertionError: maximum…

---

## [Updating only a subset of parameters in a neural network using Flux](https://discourse.julialang.org/t/updating-only-a-subset-of-parameters-in-a-neural-network-using-flux/72312)

<div class="topic-metadata">

**Author:** [@Handam](https://discourse.julialang.org/u/Handam)\
**Replies:** 2\
**Last updated:** [December 1, 2021, 5:25pm UTC](https://discourse.julialang.org/t/updating-only-a-subset-of-parameters-in-a-neural-network-using-flux/72312 "2021-12-01T17:25:53Z")

</div>

I am currently playing around with actor-critic methods. In my current problem, the actor has four outputs: pol = Chain(Dense(6, 32, relu), Dense(32, 4)) However, depending on the state only a subset of the actions are…

---

## [How to find dimesion of a polyhedron](https://discourse.julialang.org/t/how-to-find-dimesion-of-a-polyhedron/72383)

<div class="topic-metadata">

**Author:** [@XLVII](https://discourse.julialang.org/u/XLVII)\
**Replies:** 2\
**Last updated:** [December 1, 2021, 4:36pm UTC](https://discourse.julialang.org/t/how-to-find-dimesion-of-a-polyhedron/72383 "2021-12-01T16:36:14Z")

</div>

K = polyhedron(vrep(\[Ray(\[0.0,0.0,1.0\])\] )) let say we have K polyhedron is there any function like dim(k) which give the dimension of k if no how to find dimesion? using LinearAlgebra using Combinatorics using Poly…

---

## [Changing Ipopt options](https://discourse.julialang.org/t/changing-ipopt-options/72156)

<div class="topic-metadata">

**Author:** [@FH96](https://discourse.julialang.org/u/FH96)\
**Replies:** 8\
**Last updated:** [December 1, 2021, 12:28pm UTC](https://discourse.julialang.org/t/changing-ipopt-options/72156 "2021-12-01T12:28:37Z")

</div>

I have a nonlinear program which Ipopt finds the optimal solution for it, with adding some changes into the problem the solver can not find the optimal solution anymore and iterates till the maximum number of iterations…

---

## [Plotting a distribution](https://discourse.julialang.org/t/plotting-a-distribution/25356)

<div class="topic-metadata">

**Author:** [@stene](https://discourse.julialang.org/u/stene)\
**Replies:** 6\
**Last updated:** [December 1, 2021, 10:04am UTC](https://discourse.julialang.org/t/plotting-a-distribution/25356 "2021-12-01T10:04:36Z")

</div>

Trying to plot normal distributions from the Distributions package. How do I do this? julia\> normalDist = fit(Normal, data) Normal{Float64}(μ=100.3434334, σ=0.05) julia\> plot(normalDist) ERROR: No user recipe defined…

---

## [Makie.jl - how to change the cursor?](https://discourse.julialang.org/t/makie-jl-how-to-change-the-cursor/60380)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [December 1, 2021, 9:59am UTC](https://discourse.julialang.org/t/makie-jl-how-to-change-the-cursor/60380 "2021-12-01T09:59:23Z")

</div>

How can I change the cursor to a sand clock to indicate the user to wait with MakieGL?

---

## [Gadfly question: How to make Geom.bar slimmer, give alternating colors to bars and bars display their values](https://discourse.julialang.org/t/gadfly-question-how-to-make-geom-bar-slimmer-give-alternating-colors-to-bars-and-bars-display-their-values/72327)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 2\
**Last updated:** [December 1, 2021, 4:15am UTC](https://discourse.julialang.org/t/gadfly-question-how-to-make-geom-bar-slimmer-give-alternating-colors-to-bars-and-bars-display-their-values/72327 "2021-12-01T04:15:22Z")

</div>

Hello, I am trying to learn gadfly plotting library. I have a very simple dataset as follows: country,percent country1,47 country2,41 country3,39 country4,39 country5,36 country6,36 country7,36 country8,35 country9,34…

---

## [Error in solving simple SDP in Mosek+JuMP after updating related Julia packages (previously worked)](https://discourse.julialang.org/t/error-in-solving-simple-sdp-in-mosek-jump-after-updating-related-julia-packages-previously-worked/72308)

<div class="topic-metadata">

**Author:** [@Shuvomoy\_Das\_Gupta](https://discourse.julialang.org/u/Shuvomoy_Das_Gupta)\
**Replies:** 3\
**Last updated:** [November 30, 2021, 7:14pm UTC](https://discourse.julialang.org/t/error-in-solving-simple-sdp-in-mosek-jump-after-updating-related-julia-packages-previously-worked/72308 "2021-11-30T19:14:30Z")

</div>

Dear All, I recently updated some of my Julia packages related to optimization as follows: \[4076af6c\] ↑ JuMP v0.21.10 ⇒ v0.22.1 \[b8f27783\] ↑ MathOptInterface v0.9.22 ⇒ v0.10.6 \[1ec41992\] ↑ MosekTools v0.9.4 ⇒ v0.10.0 \[…

---

## [DataFramesMeta question](https://discourse.julialang.org/t/dataframesmeta-question/72268)

<div class="topic-metadata">

**Author:** [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Replies:** 9\
**Last updated:** [November 30, 2021, 5:25pm UTC](https://discourse.julialang.org/t/dataframesmeta-question/72268 "2021-11-30T17:25:36Z")

</div>

I am trying to learn DataFramesMeta LINQ similar syntax. I have not been able to come up the proper counter of following very simple DataFrames syntax for DataFramesMeta Get number of rows. combine(df, nrow)

---

## [Finding multiple fixed points of a non-linear problem](https://discourse.julialang.org/t/finding-multiple-fixed-points-of-a-non-linear-problem/72292)

<div class="topic-metadata">

**Author:** [@Joseph\_Bradley](https://discourse.julialang.org/u/Joseph_Bradley)\
**Replies:** 3\
**Last updated:** [November 30, 2021, 1:50pm UTC](https://discourse.julialang.org/t/finding-multiple-fixed-points-of-a-non-linear-problem/72292 "2021-11-30T13:50:25Z")

</div>

Hi! I’m looking for some Julia code that will find all the fixed points of a non-linear problem. Specifically, I’m looking for all the solutions of this fixed point problem: m = tanh(am + b) where a and b are paramete…

---

## [Production deployment of Genie app with systemd](https://discourse.julialang.org/t/production-deployment-of-genie-app-with-systemd/72281)

<div class="topic-metadata">

**Author:** [@PaulDebus](https://discourse.julialang.org/u/PaulDebus)\
**Replies:** 5\
**Last updated:** [November 30, 2021, 1:46pm UTC](https://discourse.julialang.org/t/production-deployment-of-genie-app-with-systemd/72281 "2021-11-30T13:46:26Z")

</div>

I am trying to deploy a website built with Genie to production behind a nginx reverse proxy. The documentation and most tutorials suggest using screen to keep the app running. I would however prefer using systemd, as it …

---

## [FASTX.FASTA.Reader, no method matching error](https://discourse.julialang.org/t/fastx-fasta-reader-no-method-matching-error/72240)

<div class="topic-metadata">

**Author:** [@Lamma](https://discourse.julialang.org/u/Lamma)\
**Replies:** 7\
**Last updated:** [November 30, 2021, 1:21pm UTC](https://discourse.julialang.org/t/fastx-fasta-reader-no-method-matching-error/72240 "2021-11-30T13:21:34Z")

</div>

I am using the ´FASTX\` package to stream over a large fasta file but am getting a no method matching error: ERROR: LoadError: TaskFailedException Stacktrace: \[1\] wait @ ./task.jl:334 \[inlined\] \[2\] threading\_run(fun…

---

## [How about new feature of \`:auto\` symbol of \`DataFrame\`?](https://discourse.julialang.org/t/how-about-new-feature-of-auto-symbol-of-dataframe/72271)

<div class="topic-metadata">

**Author:** [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)\
**Replies:** 3\
**Last updated:** [November 30, 2021, 6:34am UTC](https://discourse.julialang.org/t/how-about-new-feature-of-auto-symbol-of-dataframe/72271 "2021-11-30T06:34:06Z")

</div>

julia\> DataFrame(\[1 0; 2 0\], :auto) 2×2 DataFrame Row │ x1 x2 │ Int64 Int64 ─────┼────────────── 1 │ 1 0 2 │ 2 0 Recently, the :auto symbol can be used to above result. I want new …

---

## [Concept of continuous depths for neural networks in UDEs](https://discourse.julialang.org/t/concept-of-continuous-depths-for-neural-networks-in-udes/72090)

<div class="topic-metadata">

**Author:** [@saadfaizan](https://discourse.julialang.org/u/saadfaizan)\
**Replies:** 7\
**Last updated:** [November 30, 2021, 5:52am UTC](https://discourse.julialang.org/t/concept-of-continuous-depths-for-neural-networks-in-udes/72090 "2021-11-30T05:52:33Z")

</div>

I recently came across the concept of continuous depth in Neural ODEs. I was wondering if the neural networks in the UDE framework have a similar concept of continuous depths. @ChrisRackauckas

---

## [Construct multiple graphs from sparse adjacency matrix](https://discourse.julialang.org/t/construct-multiple-graphs-from-sparse-adjacency-matrix/72256)

<div class="topic-metadata">

**Author:** [@markmbaum](https://discourse.julialang.org/u/markmbaum)\
**Replies:** 4\
**Last updated:** [November 29, 2021, 8:38pm UTC](https://discourse.julialang.org/t/construct-multiple-graphs-from-sparse-adjacency-matrix/72256 "2021-11-29T20:38:26Z")

</div>

I have a sparse adjacency matrix (SparseMatrixCSC) representing connections between the elements of a collection. I see that I can neatly convert it to a graph with the Graph constructor from Graphs.jl. However, I know …

---

## [CUDA.@atomic causes type instability?](https://discourse.julialang.org/t/cuda-atomic-causes-type-instability/72224)

<div class="topic-metadata">

**Author:** [@guyvdb](https://discourse.julialang.org/u/guyvdb)\
**Replies:** 5\
**Last updated:** [November 29, 2021, 6:27pm UTC](https://discourse.julialang.org/t/cuda-atomic-causes-type-instability/72224 "2021-11-29T18:27:31Z")

</div>

I am not sure why adding CUDA.@atomic in the below code causes an error? # works fine without CUDA.@atomic function f(test) broadcast(CuVector(1:2), transpose(CuVector(1:3))) do i,j v::Float32 = j te…

---

## [Isbits union support in CUDA.jl](https://discourse.julialang.org/t/isbits-union-support-in-cuda-jl/72219)

<div class="topic-metadata">

**Author:** [@guyvdb](https://discourse.julialang.org/u/guyvdb)\
**Replies:** 2\
**Last updated:** [November 29, 2021, 5:18pm UTC](https://discourse.julialang.org/t/isbits-union-support-in-cuda-jl/72219 "2021-11-29T17:18:40Z")

</div>

I’m confused about the support that CUDA.jl has for isbits unions: # Unions of two work fine: map(x-\>1, CuVector(\[1,missing\])); map(x-\>1, CuVector(\[1,nothing\])); # It is possible to move unions of three to the GPU memo…

---

## [Target Variable is a Deterministic Function of Random Variables](https://discourse.julialang.org/t/target-variable-is-a-deterministic-function-of-random-variables/71935)

<div class="topic-metadata">

**Author:** [@Stephen2](https://discourse.julialang.org/u/Stephen2)\
**Replies:** 9\
**Last updated:** [November 29, 2021, 4:48pm UTC](https://discourse.julialang.org/t/target-variable-is-a-deterministic-function-of-random-variables/71935 "2021-11-29T16:48:29Z")

</div>

Crossposting this from “New to Julia” as I received no responses. Hi, I am new to Julia and struggling to formulate my model correctly. My model consists of: A regressor x\_t An intermediate variable y\_t = k \* x\_t + ϵ…

---

## [Unable to use lagrange to solve 2 varable functions in modeling toolkit](https://discourse.julialang.org/t/unable-to-use-lagrange-to-solve-2-varable-functions-in-modeling-toolkit/72043)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 29\
**Last updated:** [November 29, 2021, 2:12pm UTC](https://discourse.julialang.org/t/unable-to-use-lagrange-to-solve-2-varable-functions-in-modeling-toolkit/72043 "2021-11-29T14:12:33Z")

</div>

@parameters x\_1 x\_2 @variables u eqs = \[ 0 ~ u - (x\_1+2)\*(x\_2+1), 130 ~ 4\*x\_1+6\*x\_2\] @named sys = NonlinearSystem(eqs, \[x\_1, x\_2\],\[\]) prob = NonlinearProblem(structural\_simplify(sys),\[x\_1=\>1.0,x\_2=\>1.0,u=\>max\]) …

---

## [Significant compile time latency in Flux with a GAN](https://discourse.julialang.org/t/significant-compile-time-latency-in-flux-with-a-gan/68518)

<div class="topic-metadata">

**Author:** [@Alexander-Barth](https://discourse.julialang.org/u/Alexander-Barth)\
**Replies:** 28\
**Last updated:** [November 29, 2021, 12:00am UTC](https://discourse.julialang.org/t/significant-compile-time-latency-in-flux-with-a-gan/68518 "2021-11-29T00:00:32Z")

</div>

I am trying to implement a SRGAN (super-resolution generative adversarial networks) in Flux (I am happy to share once it works… :-)) The generator network is composed of 5 residual blocks (function resblock below). Unf…

---

## [Set Ipot (with JuMP) to terminate only if max time is reached](https://discourse.julialang.org/t/set-ipot-with-jump-to-terminate-only-if-max-time-is-reached/72160)

<div class="topic-metadata">

**Author:** [@cricci](https://discourse.julialang.org/u/cricci)\
**Replies:** 3\
**Last updated:** [November 29, 2021, 12:28am UTC](https://discourse.julialang.org/t/set-ipot-with-jump-to-terminate-only-if-max-time-is-reached/72160 "2021-11-29T00:28:31Z")

</div>

I would like to do the following: setting the Ipopt optimizer (used via JuMP) to terminate ONLY when max\_cpu\_time is reached. Is it possible? motivation for doing such a stupid thing: I need to run multiple optimizatio…

---

## [Autodifferentiation of a recursive function](https://discourse.julialang.org/t/autodifferentiation-of-a-recursive-function/71972)

<div class="topic-metadata">

**Author:** [@mvsoom](https://discourse.julialang.org/u/mvsoom)\
**Replies:** 27\
**Last updated:** [November 28, 2021, 9:40pm UTC](https://discourse.julialang.org/t/autodifferentiation-of-a-recursive-function/71972 "2021-11-28T21:40:53Z")

</div>

I am interested in wavelets W\_n(t,p) that are generated by convolving a Chebyshev polynomial of the first kind T\_n(x) with a complex sinusoid \\exp(pt): W\_n(t,p) = T\_n(t) \* \\exp(p t) Here n = 0,1,2,\\ldots, t \\in \\mathb…

---

## [Making the font bold or italic in Makie.jl](https://discourse.julialang.org/t/making-the-font-bold-or-italic-in-makie-jl/72089)

<div class="topic-metadata">

**Author:** [@mmkim1210](https://discourse.julialang.org/u/mmkim1210)\
**Replies:** 11\
**Last updated:** [November 28, 2021, 8:53pm UTC](https://discourse.julialang.org/t/making-the-font-bold-or-italic-in-makie-jl/72089 "2021-11-28T20:53:46Z")

</div>

How can you make your font either bold or italic in Makie? I do not want the Latex font, just good old bold or italic “Arial” font. Thank you.

---

## [Adjusting the height of Colorbar in Makie.jl](https://discourse.julialang.org/t/adjusting-the-height-of-colorbar-in-makie-jl/72206)

<div class="topic-metadata">

**Author:** [@mmkim1210](https://discourse.julialang.org/u/mmkim1210)\
**Replies:** 1\
**Last updated:** [November 28, 2021, 6:16pm UTC](https://discourse.julialang.org/t/adjusting-the-height-of-colorbar-in-makie-jl/72206 "2021-11-28T18:16:24Z")

</div>

Would it be possible to customize the height of colorbar in Makie? I have noticed that width can be adjusted, but how about height? Thank you.

---

## [Element-wise operations in Tullio.jl on GPU](https://discourse.julialang.org/t/element-wise-operations-in-tullio-jl-on-gpu/72186)

<div class="topic-metadata">

**Author:** [@cuihantao](https://discourse.julialang.org/u/cuihantao)\
**Replies:** 2\
**Last updated:** [November 28, 2021, 3:34pm UTC](https://discourse.julialang.org/t/element-wise-operations-in-tullio-jl-on-gpu/72186 "2021-11-28T15:34:47Z")

</div>

Hello, I wonder what is the correct way to implement element-wise operations in Tullio.jl on GPU. The MWE is as follows: using CUDA, Tullio using BenchmarkTools mul(A, B, C) = @tullio C\[k\] = A\[k\] \* B\[k\] a = rand(8000…

---

## [Unstable learning of neural net with few nodes using Flux](https://discourse.julialang.org/t/unstable-learning-of-neural-net-with-few-nodes-using-flux/72115)

<div class="topic-metadata">

**Author:** [@Handam](https://discourse.julialang.org/u/Handam)\
**Replies:** 9\
**Last updated:** [November 28, 2021, 10:18am UTC](https://discourse.julialang.org/t/unstable-learning-of-neural-net-with-few-nodes-using-flux/72115 "2021-11-28T10:18:38Z")

</div>

I have a neural network with only one binary input node, one hidden layer and one output node. When I try to train the network, such that it outputs the value x\_1 when the input is 0 and x\_2 when the input is 1, it will …

---

## [SQLite, DataFrame and Missing](https://discourse.julialang.org/t/sqlite-dataframe-and-missing/72171)

<div class="topic-metadata">

**Author:** [@JackStrauss](https://discourse.julialang.org/u/JackStrauss)\
**Replies:** 3\
**Last updated:** [November 28, 2021, 8:25am UTC](https://discourse.julialang.org/t/sqlite-dataframe-and-missing/72171 "2021-11-28T08:25:19Z")

</div>

Hello Julia is wonderful, but this got me stymied I am reading a sqlite table into a dataframe, where one column is r real and all values are missing. I use df=DBInterface.execute(db, sql) |\> DataFrame; and get df…

---

## [Smoothing over date axis in AlgebraOfGraphics](https://discourse.julialang.org/t/smoothing-over-date-axis-in-algebraofgraphics/72152)

<div class="topic-metadata">

**Author:** [@sleak](https://discourse.julialang.org/u/sleak)\
**Replies:** 2\
**Last updated:** [November 28, 2021, 5:22am UTC](https://discourse.julialang.org/t/smoothing-over-date-axis-in-algebraofgraphics/72152 "2021-11-28T05:22:12Z")

</div>

I have a bunch of observations (date on x-axis, weight on y-axis) that I want to plot a trend line through. Using DataFrames and AlgebraOfGraphics I can plot the individual points: using AlgebraOfGraphics using CairoMak…

---

## [PyPlot on macOS Monterey with M1](https://discourse.julialang.org/t/pyplot-on-macos-monterey-with-m1/72185)

<div class="topic-metadata">

**Author:** [@George9000](https://discourse.julialang.org/u/George9000)\
**Replies:** 0\
**Last updated:** [November 27, 2021, 11:53pm UTC](https://discourse.julialang.org/t/pyplot-on-macos-monterey-with-m1/72185 "2021-11-27T23:53:56Z")

</div>

While trying out Fatou.jl, I had difficulty getting PyPlot to work on an M1 Mac. Here is the environement and steps that got things working. Python I am not using Conda. I did follow directions here to set things up on …

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

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