# Specific Domains

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

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

**Page:** 404

---

## [Random number in (0,1)](https://discourse.julialang.org/t/random-number-in-0-1/51451)

<div class="topic-metadata">

**Author:** [@jherekhealy](https://discourse.julialang.org/u/jherekhealy)\
**Replies:** 9\
**Last updated:** [December 9, 2020, 10:38am UTC](https://discourse.julialang.org/t/random-number-in-0-1/51451 "2020-12-09T10:38:22Z")

</div>

In Random.jl, there is the possibility to generate a random number in the interval \[0,1) through CloseOpen01, or even in \[1,2) (I can see the reason for this for implementation, less so for a user) through CloseOpen12, …

---

## [Trying to solve a second order differential equation. Your advices](https://discourse.julialang.org/t/trying-to-solve-a-second-order-differential-equation-your-advices/41162)

<div class="topic-metadata">

**Author:** [@aquarelle332](https://discourse.julialang.org/u/aquarelle332)\
**Replies:** 19\
**Last updated:** [December 9, 2020, 7:40am UTC](https://discourse.julialang.org/t/trying-to-solve-a-second-order-differential-equation-your-advices/41162 "2020-12-09T07:40:15Z")

</div>

Hello dear all, I don’t know whether it is the right place to post what follows… I am trying to resolve a differential equation like (namely Rayleigh-Plesset eq): R\*d²R/dt²+3/2\*dR/dt=P where P is a constant, say. Pre…

---

## [Packages for interval and radius of power series](https://discourse.julialang.org/t/packages-for-interval-and-radius-of-power-series/51230)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 24\
**Last updated:** [December 8, 2020, 6:06pm UTC](https://discourse.julialang.org/t/packages-for-interval-and-radius-of-power-series/51230 "2020-12-08T18:06:14Z")

</div>

What packages exist for studying power series(not sure the plural)? I’m trying to find the formula that originated the series, as well as the radius and interval of convergence.

---

## [\[Solved\] Time evaluation issue in a non-autonomous ODE](https://discourse.julialang.org/t/solved-time-evaluation-issue-in-a-non-autonomous-ode/51458)

<div class="topic-metadata">

**Author:** [@Wen-Wei\_Tseng](https://discourse.julialang.org/u/Wen-Wei_Tseng)\
**Replies:** 2\
**Last updated:** [December 8, 2020, 2:09pm UTC](https://discourse.julialang.org/t/solved-time-evaluation-issue-in-a-non-autonomous-ode/51458 "2020-12-08T14:09:22Z")

</div>

Hello everyone, I found a weird situation that a time-dependent parameter seemed to be ignored in my calcium dynamics model. After some trimming, I had an MWE here. Any suggestions/corrections are welcome. Edit: solved …

---

## [A differentiable and slicable 2D data structure for parameters?](https://discourse.julialang.org/t/a-differentiable-and-slicable-2d-data-structure-for-parameters/51405)

<div class="topic-metadata">

**Author:** [@kmaile](https://discourse.julialang.org/u/kmaile)\
**Replies:** 0\
**Last updated:** [December 7, 2020, 3:28pm UTC](https://discourse.julialang.org/t/a-differentiable-and-slicable-2d-data-structure-for-parameters/51405 "2020-12-07T15:28:36Z")

</div>

I am implementing neural architecture search methods in Julia. One class of them uses trainable architecture weights to learn the best option for each layer of the network. Each repeated cell within a network has N layer…

---

## [ModelingToolkit variable with Distributions.cdf()](https://discourse.julialang.org/t/modelingtoolkit-variable-with-distributions-cdf/51434)

<div class="topic-metadata">

**Author:** [@jmmm](https://discourse.julialang.org/u/jmmm)\
**Replies:** 4\
**Last updated:** [December 8, 2020, 3:36am UTC](https://discourse.julialang.org/t/modelingtoolkit-variable-with-distributions-cdf/51434 "2020-12-08T03:36:20Z")

</div>

Hi, I am new to Julia and trying out the ModelingToolking package. I have a basic understanding of the type system and the dynamic dispatch, but couldn’t figure out why this didn’t work. This works perfectly - almost m…

---

## [Error in JuMP / dataframe: How to get rid of missing and replace with blanks in DataFrames?](https://discourse.julialang.org/t/error-in-jump-dataframe-how-to-get-rid-of-missing-and-replace-with-blanks-in-dataframes/51417)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 9\
**Last updated:** [December 7, 2020, 8:12pm UTC](https://discourse.julialang.org/t/error-in-jump-dataframe-how-to-get-rid-of-missing-and-replace-with-blanks-in-dataframes/51417 "2020-12-07T20:12:44Z")

</div>

I am running into an error and the error message suggests that the source is JuMP. But I think the source is missing reported in dataframe. I would like to get rid of missing so the dataframe shows those entries as blank…

---

## [Plots: reducing subplot size](https://discourse.julialang.org/t/plots-reducing-subplot-size/51407)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 0\
**Last updated:** [December 7, 2020, 3:49pm UTC](https://discourse.julialang.org/t/plots-reducing-subplot-size/51407 "2020-12-07T15:49:45Z")

</div>

Hi, I’m making composed plots where the legend would be the same for each subplot. As such, I want only one legend for all plots and it would have to be next to the grid layout. At the moment I can only set label = "" f…

---

## [Introduction to oneAPI.jl](https://discourse.julialang.org/t/introduction-to-oneapi-jl/51054)

<div class="topic-metadata">

**Author:** [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Replies:** 2\
**Last updated:** [December 7, 2020, 6:10pm UTC](https://discourse.julialang.org/t/introduction-to-oneapi-jl/51054 "2020-12-07T18:10:48Z")

</div>

@maleadt is going to give a short introduction to his recent work on oneAPI.jl at the next virtual JuliaGPU user call. The next user call is at Mon, December 7, 17:00 – 18:00 UTC and the details on how to join can be fo…

---

## [Missing attribution](https://discourse.julialang.org/t/missing-attribution/51386)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 2\
**Last updated:** [December 7, 2020, 10:14am UTC](https://discourse.julialang.org/t/missing-attribution/51386 "2020-12-07T10:14:30Z")

</div>

I am looking at Julia packages that deals with missing attribution, i.e. with the problem to use in a dataset the existing information to predict the missing values. I recall I read of a package that does that, but I co…

---

## [Nonlinear Objective Function Splatting](https://discourse.julialang.org/t/nonlinear-objective-function-splatting/51251)

<div class="topic-metadata">

**Author:** [@Flesko](https://discourse.julialang.org/u/Flesko)\
**Replies:** 3\
**Last updated:** [December 7, 2020, 8:30am UTC](https://discourse.julialang.org/t/nonlinear-objective-function-splatting/51251 "2020-12-07T08:30:01Z")

</div>

Hey everyone, I was playing around with nonlinear functions for optimal control problems utilizing JuMP with IPOPT as the solver. I realized convergence problems as soon as I use the splatting operator for passing vecto…

---

## [What is a good way to get the n largest elements of a CuArray?](https://discourse.julialang.org/t/what-is-a-good-way-to-get-the-n-largest-elements-of-a-cuarray/51324)

<div class="topic-metadata">

**Author:** [@pjentsch0](https://discourse.julialang.org/u/pjentsch0)\
**Replies:** 1\
**Last updated:** [December 7, 2020, 7:26am UTC](https://discourse.julialang.org/t/what-is-a-good-way-to-get-the-n-largest-elements-of-a-cuarray/51324 "2020-12-07T07:26:11Z")

</div>

I noticed that partialsort! is not yet defined forCuArray, I don’t need the n largest in any particular order, either. Thank you!

---

## [Mixed input layer using Flux gives "ERROR: Mutating arrays is not supported"](https://discourse.julialang.org/t/mixed-input-layer-using-flux-gives-error-mutating-arrays-is-not-supported/41595)

<div class="topic-metadata">

**Author:** [@rsteckel](https://discourse.julialang.org/u/rsteckel)\
**Replies:** 1\
**Last updated:** [December 7, 2020, 5:08am UTC](https://discourse.julialang.org/t/mixed-input-layer-using-flux-gives-error-mutating-arrays-is-not-supported/41595 "2020-12-07T05:08:45Z")

</div>

I would like to combine input types in the input layer of my Flux model. For example, using the Embedded example layer (found on this forum), I would like to embed the first column of my input data and use a Dense layer…

---

## [Relationship between variables](https://discourse.julialang.org/t/relationship-between-variables/51272)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 6\
**Last updated:** [December 6, 2020, 7:52pm UTC](https://discourse.julialang.org/t/relationship-between-variables/51272 "2020-12-06T19:52:34Z")

</div>

In an optimisation problem, I have some relationships between variables i.e. they should take same values. I define a dataframe (called Master) that contains all the data and another dataframe (called Relationship) that …

---

## [Flux: "cannot broadcast array to have fewer dimensions"](https://discourse.julialang.org/t/flux-cannot-broadcast-array-to-have-fewer-dimensions/39821)

<div class="topic-metadata">

**Author:** [@dunefox](https://discourse.julialang.org/u/dunefox)\
**Replies:** 4\
**Last updated:** [December 6, 2020, 7:06pm UTC](https://discourse.julialang.org/t/flux-cannot-broadcast-array-to-have-fewer-dimensions/39821 "2020-12-06T19:06:23Z")

</div>

I’m trying to get into Flux and Julia, so I defined two simple models. The first one works, the second one throws an error that I don’t quite understand yet. I’m sure it’s relatively simple to solve, I just don’t see it. …

---

## [Plots and Makie comingling packages](https://discourse.julialang.org/t/plots-and-makie-comingling-packages/51345)

<div class="topic-metadata">

**Author:** [@Allan\_Baker](https://discourse.julialang.org/u/Allan_Baker)\
**Replies:** 0\
**Last updated:** [December 6, 2020, 3:31pm UTC](https://discourse.julialang.org/t/plots-and-makie-comingling-packages/51345 "2020-12-06T15:31:45Z")

</div>

As I’ve learned julia and written my own composite types, I started creating recipes for Plots.jl. Then I discovered that Makie.jl was better for 3D and interacting so more recent packages I developed used Makie.jl to p…

---

## [JuliaActors: a road to an Actors ecosystem](https://discourse.julialang.org/t/juliaactors-a-road-to-an-actors-ecosystem/49898)

<div class="topic-metadata">

**Author:** [@pbayer](https://discourse.julialang.org/u/pbayer)\
**Replies:** 17\
**Last updated:** [December 6, 2020, 1:38pm UTC](https://discourse.julialang.org/t/juliaactors-a-road-to-an-actors-ecosystem/49898 "2020-12-06T13:38:25Z")

</div>

Following the discussion in another thread now we have JuliaActors, a yet small Julia GitHub group of enthusiasts dedicated to build an actors ecosystem in Julia. Since this is not anymore a discussion about one library,…

---

## [Summation formulation](https://discourse.julialang.org/t/summation-formulation/51276)

<div class="topic-metadata">

**Author:** [@Maria95](https://discourse.julialang.org/u/Maria95)\
**Replies:** 2\
**Last updated:** [December 6, 2020, 1:01pm UTC](https://discourse.julialang.org/t/summation-formulation/51276 "2020-12-06T13:01:20Z")

</div>

Hello, Apologies if this is not the right category for positing this question. I am not sure whether all linear algebra operations such as cumulative sum can be used with JuMP. I have given a working generic example to g…

---

## [How to write an objective function that has both a LASSO and a Ridge regularization term in JuMP](https://discourse.julialang.org/t/how-to-write-an-objective-function-that-has-both-a-lasso-and-a-ridge-regularization-term-in-jump/50727)

<div class="topic-metadata">

**Author:** [@Jaidy](https://discourse.julialang.org/u/Jaidy)\
**Replies:** 30\
**Last updated:** [December 6, 2020, 1:16am UTC](https://discourse.julialang.org/t/how-to-write-an-objective-function-that-has-both-a-lasso-and-a-ridge-regularization-term-in-jump/50727 "2020-12-06T01:16:27Z")

</div>

hello everyone, I am trying to use JuMP to minimize an objective function, essentially logistic regression with both LASSO and Ridge regularization term. Here is the setting: I have a matrix of inputs, X, having n rows…

---

## [Simplex implementation with A,b,c matrices](https://discourse.julialang.org/t/simplex-implementation-with-a-b-c-matrices/51307)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 5\
**Last updated:** [December 5, 2020, 8:06pm UTC](https://discourse.julialang.org/t/simplex-implementation-with-a-b-c-matrices/51307 "2020-12-05T20:06:02Z")

</div>

Hello, I would like to solve an LP min cx s.t. Ax = b for which I have A, b and c all prepared. That is, I don’t want to go through a modeling phase. Is there a way to define a JuMP model directly with these component…

---

## [Plots, animation, problem with indendent layout](https://discourse.julialang.org/t/plots-animation-problem-with-indendent-layout/51302)

<div class="topic-metadata">

**Author:** [@DIzer](https://discourse.julialang.org/u/DIzer)\
**Replies:** 2\
**Last updated:** [December 5, 2020, 3:52pm UTC](https://discourse.julialang.org/t/plots-animation-problem-with-indendent-layout/51302 "2020-12-05T15:52:21Z")

</div>

Hello everybody, I need to animate a peace of experimental data. The outline of calculation is below. … #some calculations anim = Animation() l = @layout \[a; c{0.2h}\] for (n\_, line) in enumerate(lines1) … #some ca…

---

## [How to apply Transfer Learning with Flux](https://discourse.julialang.org/t/how-to-apply-transfer-learning-with-flux/51250)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 6\
**Last updated:** [December 4, 2020, 10:49pm UTC](https://discourse.julialang.org/t/how-to-apply-transfer-learning-with-flux/51250 "2020-12-04T22:49:51Z")

</div>

I have a trained neural network, which is already giving good results, and I’d like to use the parameters previously obtained for the model as the starting parameters to train the ANN on a new task (basically, it’s a tra…

---

## [Problems with Ipopt in Big Sur](https://discourse.julialang.org/t/problems-with-ipopt-in-big-sur/51255)

<div class="topic-metadata">

**Author:** [@mreguant](https://discourse.julialang.org/u/mreguant)\
**Replies:** 8\
**Last updated:** [December 4, 2020, 9:57pm UTC](https://discourse.julialang.org/t/problems-with-ipopt-in-big-sur/51255 "2020-12-04T21:57:23Z")

</div>

Hello, I am using JuMP and Ipopt. It was all working but it failed after my Mac upgrade to Big Sur. I cannot even get the basic examples to work. The code runs, but the solver fails to find a solution due to numerical is…

---

## [\[RFC\] GenderInference.jl](https://discourse.julialang.org/t/rfc-genderinference-jl/22294)

<div class="topic-metadata">

**Author:** [@kevbonham](https://discourse.julialang.org/u/kevbonham)\
**Replies:** 42\
**Last updated:** [July 22, 2020, 8:51pm UTC](https://discourse.julialang.org/t/rfc-genderinference-jl/22294 "2020-07-22T20:51:20Z")

</div>

I made a little package, GenderInference.jl, that’ similar to Gender in R and SexMachine in python. Basically, you give a first name, and it guesses the gender: julia\> using GenderInference julia\> gender("Kevin") :male…

---

## [How to add rows in a DataFrame](https://discourse.julialang.org/t/how-to-add-rows-in-a-dataframe/51221)

<div class="topic-metadata">

**Author:** [@Smith](https://discourse.julialang.org/u/Smith)\
**Replies:** 5\
**Last updated:** [December 3, 2020, 11:25pm UTC](https://discourse.julialang.org/t/how-to-add-rows-in-a-dataframe/51221 "2020-12-03T23:25:07Z")

</div>

In a dataframe, how do we add rows containing numeric data where a column containing the NAME is same? df1 = DataFrame(NAME = \["PP","PC","PP","AB","AF","AF"\], VALUE =\[100,200,300,400,500,100\], INCOME = \[23,56,100,90,900…

---

## [Indexing in dataframes](https://discourse.julialang.org/t/indexing-in-dataframes/51216)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 5\
**Last updated:** [December 3, 2020, 8:33pm UTC](https://discourse.julialang.org/t/indexing-in-dataframes/51216 "2020-12-03T20:33:57Z")

</div>

Hi, This should be straightforward dataframes question, but I have not been able to get my head around it. I have two dataframes: 1. Describes the relationship between different quantities based on ID and 2. Contains so…

---

## [Can't use minimum() on constraint -MethodError: no method matching isless(...)](https://discourse.julialang.org/t/cant-use-minimum-on-constraint-methoderror-no-method-matching-isless/51219)

<div class="topic-metadata">

**Author:** [@valenmgama](https://discourse.julialang.org/u/valenmgama)\
**Replies:** 1\
**Last updated:** [December 3, 2020, 8:03pm UTC](https://discourse.julialang.org/t/cant-use-minimum-on-constraint-methoderror-no-method-matching-isless/51219 "2020-12-03T20:03:22Z")

</div>

I am trying to use minimum on a Julia Contraint but I get the following Method Error. I am 100% using the minimum() function is what causes the trouble. Any ideas on a work around? LoadError: MethodError: no method matc…

---

## [Can I use JuMP 0.18 with Gurobi.jl 0.9.3?](https://discourse.julialang.org/t/can-i-use-jump-0-18-with-gurobi-jl-0-9-3/51220)

<div class="topic-metadata">

**Author:** [@Wei\_Wang](https://discourse.julialang.org/u/Wei_Wang)\
**Replies:** 2\
**Last updated:** [December 3, 2020, 8:01pm UTC](https://discourse.julialang.org/t/can-i-use-jump-0-18-with-gurobi-jl-0-9-3/51220 "2020-12-03T20:01:42Z")

</div>

For some reasons, I currently still have to use JuMP 0.18. When I updated Gurobi to the latest version 9.1 and Gurobi.jl to 0.9.3, I got some problems building my model. When I do it with model=Model(solver=GurobiSolv…

---

## [Spaces for "base measures"](https://discourse.julialang.org/t/spaces-for-base-measures/50594)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 11\
**Last updated:** [December 3, 2020, 4:01pm UTC](https://discourse.julialang.org/t/spaces-for-base-measures/50594 "2020-12-03T16:01:41Z")

</div>

For MeasureTheory.jl, we need a nice way to represent some domains, like continuous sets ℝ, ℝ₊, and 𝕀 (unit interval) Infinite discrete sets ℤ, ℤ₊, ℤ₀₊ Also finite sets a:b, but that’s easier Eventually we’ll need to…

---

## [Help using the JuMPeR package](https://discourse.julialang.org/t/help-using-the-jumper-package/51184)

<div class="topic-metadata">

**Author:** [@RaquelSantos](https://discourse.julialang.org/u/RaquelSantos)\
**Replies:** 1\
**Last updated:** [December 3, 2020, 1:11pm UTC](https://discourse.julialang.org/t/help-using-the-jumper-package/51184 "2020-12-03T13:11:35Z")

</div>

Could someone point me to a tutorial on using JuMPeR? Thanks!!

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

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