# Specific Domains

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

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

**Page:** 445

---

## [Bayesian inference in the presence of intractable integral](https://discourse.julialang.org/t/bayesian-inference-in-the-presence-of-intractable-integral/40061)

<div class="topic-metadata">

**Author:** [@francesco.alemanno](https://discourse.julialang.org/u/francesco.alemanno)\
**Replies:** 13\
**Last updated:** [May 25, 2020, 2:43pm UTC](https://discourse.julialang.org/t/bayesian-inference-in-the-presence-of-intractable-integral/40061 "2020-05-25T14:43:53Z")

</div>

Hi guys, recently i’ve learned about the powerful packages for bayesian inference in julia i would like some tips on how to attack this problem, given this probabiliy distribution over the angles \\theta: P(\\vec \\theta…

---

## [TArray push in Turing.jl](https://discourse.julialang.org/t/tarray-push-in-turing-jl/39980)

<div class="topic-metadata">

**Author:** [@fooman](https://discourse.julialang.org/u/fooman)\
**Replies:** 9\
**Last updated:** [May 25, 2020, 2:28pm UTC](https://discourse.julialang.org/t/tarray-push-in-turing-jl/39980 "2020-05-25T14:28:26Z")

</div>

Just trying to convert the “Infinite Mixture” tutorial example to work with bivariate (as opposed to univariate) clusters: https://turing.ml/dev/tutorials/6-infinitemixturemodel/ In the tutorial, one has: # Locatio…

---

## [Optimization using Optim and Roots](https://discourse.julialang.org/t/optimization-using-optim-and-roots/39301)

<div class="topic-metadata">

**Author:** [@optimist](https://discourse.julialang.org/u/optimist)\
**Replies:** 9\
**Last updated:** [May 24, 2020, 10:43pm UTC](https://discourse.julialang.org/t/optimization-using-optim-and-roots/39301 "2020-05-24T22:43:55Z")

</div>

Hello, I am a new user of Julia and the Optim package, and I am looking for some guidance on a simple piece of code. I have given my simple implementation of the equivalent of Excel XIRR (extended internal rate of retur…

---

## [Identifying the systems available linear solvers (With JuMP & Ipopt)](https://discourse.julialang.org/t/identifying-the-systems-available-linear-solvers-with-jump-ipopt/31675)

<div class="topic-metadata">

**Author:** [@Libbum](https://discourse.julialang.org/u/Libbum)\
**Replies:** 5\
**Last updated:** [May 24, 2020, 11:12am UTC](https://discourse.julialang.org/t/identifying-the-systems-available-linear-solvers-with-jump-ipopt/31675 "2020-05-24T11:12:57Z")

</div>

Hi all, I’d like to be able to verify / list available linear solvers on any given machine before running a model. My stack is JuMP and Ipopt, which means I can do something like this: import Ipopt; import JuMP; opti…

---

## [DiffEqParamEstim.jl on Ensemble problems: autodiff doesn't work](https://discourse.julialang.org/t/diffeqparamestim-jl-on-ensemble-problems-autodiff-doesnt-work/40004)

<div class="topic-metadata">

**Author:** [@DR59](https://discourse.julialang.org/u/DR59)\
**Replies:** 2\
**Last updated:** [May 23, 2020, 8:24pm UTC](https://discourse.julialang.org/t/diffeqparamestim-jl-on-ensemble-problems-autodiff-doesnt-work/40004 "2020-05-23T20:24:42Z")

</div>

Hi! Hi! I’m not sure if what I have highlighted below is a bug/missing design feature/necessary evil. Could anyone enlighten me? Thanks! I’m using the excellent build\_loss\_objective() function from DiffEqParamEstim.jl,…

---

## [JuMP stopped working](https://discourse.julialang.org/t/jump-stopped-working/40032)

<div class="topic-metadata">

**Author:** [@JohnZ](https://discourse.julialang.org/u/JohnZ)\
**Replies:** 5\
**Last updated:** [May 23, 2020, 6:57pm UTC](https://discourse.julialang.org/t/jump-stopped-working/40032 "2020-05-23T18:57:23Z")

</div>

Hello, I reinstalled Julia (v1.4.1), and now I am no longer able to use JuMP. Please find my code and error log below. Pkg.add("JuMP") should install the recent version of JuMP but when I check the status it is actually…

---

## [Help with JuMP model formulation](https://discourse.julialang.org/t/help-with-jump-model-formulation/40002)

<div class="topic-metadata">

**Author:** [@Vondoe79](https://discourse.julialang.org/u/Vondoe79)\
**Replies:** 4\
**Last updated:** [May 23, 2020, 4:34am UTC](https://discourse.julialang.org/t/help-with-jump-model-formulation/40002 "2020-05-23T04:34:15Z")

</div>

Hello there, I kindly need help with my code. The following is a piece of my model. The entire model is quite lengthy, so I do not wish to bore you with that. The error (stated immediately below) : julia\> for (key, val…

---

## [Huge thanks to core devs for having such good implimentations of random Linear Algebra functions!hr](https://discourse.julialang.org/t/huge-thanks-to-core-devs-for-having-such-good-implimentations-of-random-linear-algebra-functions-hr/40007)

<div class="topic-metadata">

**Author:** [@Oscar\_Smith](https://discourse.julialang.org/u/Oscar_Smith)\
**Replies:** 0\
**Last updated:** [May 23, 2020, 2:24am UTC](https://discourse.julialang.org/t/huge-thanks-to-core-devs-for-having-such-good-implimentations-of-random-linear-algebra-functions-hr/40007 "2020-05-23T02:24:26Z")

</div>

As an undergrad student studying math and computer science, I have learned a lot of linear algebra. That said, I am quite far from being an expert, and have needed state of the art solutions for some fairly specific prob…

---

## [Issues setting palette to matlplotlib's "tab10" colors](https://discourse.julialang.org/t/issues-setting-palette-to-matlplotlibs-tab10-colors/38661)

<div class="topic-metadata">

**Author:** [@Rouzaire](https://discourse.julialang.org/u/Rouzaire)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 5:01pm UTC](https://discourse.julialang.org/t/issues-setting-palette-to-matlplotlibs-tab10-colors/38661 "2020-05-22T17:01:08Z")

</div>

Hello, I’ve been trying to plot curves with the colors of matplotlib’s palette :tab10 but I can’t find the solution, even after removing and reinstalling Plots and ColorSchemes. Here are the desired colors : When …

---

## [Hidden layers in Flux](https://discourse.julialang.org/t/hidden-layers-in-flux/39910)

<div class="topic-metadata">

**Author:** [@Mariana](https://discourse.julialang.org/u/Mariana)\
**Replies:** 5\
**Last updated:** [May 22, 2020, 1:24pm UTC](https://discourse.julialang.org/t/hidden-layers-in-flux/39910 "2020-05-22T13:24:13Z")

</div>

I’m starting to work with Flux and I want to build a neural network with 5 entries and 6 exits. I have already built a network with no hidden layers, but now I want to add hidden layers. How should I do that? I believe I…

---

## [How to set environment variable in machine-file?](https://discourse.julialang.org/t/how-to-set-environment-variable-in-machine-file/39909)

<div class="topic-metadata">

**Author:** [@zxjroger](https://discourse.julialang.org/u/zxjroger)\
**Replies:** 1\
**Last updated:** [May 22, 2020, 5:21am UTC](https://discourse.julialang.org/t/how-to-set-environment-variable-in-machine-file/39909 "2020-05-22T05:21:00Z")

</div>

I have a Julia script which computes many linear programming problems using Gurobi+JuMP in parallel. When I test my code on HPC and submit the following slurm script: #!/bin/bash #SBATCH --job-name=xz49 #SBATCH --partit…

---

## [Can't seem to change PyPlot latex font](https://discourse.julialang.org/t/cant-seem-to-change-pyplot-latex-font/39886)

<div class="topic-metadata">

**Author:** [@KK\_JuliaNoob](https://discourse.julialang.org/u/KK_JuliaNoob)\
**Replies:** 2\
**Last updated:** [May 22, 2020, 12:28am UTC](https://discourse.julialang.org/t/cant-seem-to-change-pyplot-latex-font/39886 "2020-05-22T00:28:23Z")

</div>

I’m trying to recreate a plot I made in Python (attached) using PyPlot in Julia. I can’t seem to get the tick font and the x- and y- label fonts to match the ones in Python (Computer Modern I presume). Here are the…

---

## [NL Model Issue during forward diff](https://discourse.julialang.org/t/nl-model-issue-during-forward-diff/39888)

<div class="topic-metadata">

**Author:** [@Dominic\_Pazzula](https://discourse.julialang.org/u/Dominic_Pazzula)\
**Replies:** 1\
**Last updated:** [May 21, 2020, 5:49pm UTC](https://discourse.julialang.org/t/nl-model-issue-during-forward-diff/39888 "2020-05-21T17:49:35Z")

</div>

I’m still new to Julia and JuMP, so this might be an easy one. Setup: I have some complex business logic that takes in some planned changes in a DataFrame, and returns a DataFrame with projected output and error variab…

---

## [Gurobi Lazyconstraints with JuMP 0.21](https://discourse.julialang.org/t/gurobi-lazyconstraints-with-jump-0-21/39863)

<div class="topic-metadata">

**Author:** [@Wei\_Wang](https://discourse.julialang.org/u/Wei_Wang)\
**Replies:** 2\
**Last updated:** [May 21, 2020, 1:40am UTC](https://discourse.julialang.org/t/gurobi-lazyconstraints-with-jump-0-21/39863 "2020-05-21T01:40:42Z")

</div>

Hi, I am transferring some codes from old package versions (Julia 0.64, JuMP 0.18, Gurobi 8.5) to current environment. But I got some problems with one using lazyconstraints. In the old environment, the problem was sol…

---

## [ModelingToolkit: using intermediate calculation results multiple times](https://discourse.julialang.org/t/modelingtoolkit-using-intermediate-calculation-results-multiple-times/39738)

<div class="topic-metadata">

**Author:** [@caryan](https://discourse.julialang.org/u/caryan)\
**Replies:** 7\
**Last updated:** [May 20, 2020, 10:42pm UTC](https://discourse.julialang.org/t/modelingtoolkit-using-intermediate-calculation-results-multiple-times/39738 "2020-05-20T22:42:03Z")

</div>

Let’s say I have an expensive scalar that shows up multiple times in my set of differential equations. Is there a way to tell ModelingToolkit to hoist that calculation out and only do it once? If I use an intermediate ca…

---

## [MLJ: Evaluating a probabilistic metric and a deterministic metric at the same time](https://discourse.julialang.org/t/mlj-evaluating-a-probabilistic-metric-and-a-deterministic-metric-at-the-same-time/39775)

<div class="topic-metadata">

**Author:** [@CameronBieganek](https://discourse.julialang.org/u/CameronBieganek)\
**Replies:** 4\
**Last updated:** [May 20, 2020, 9:45pm UTC](https://discourse.julialang.org/t/mlj-evaluating-a-probabilistic-metric-and-a-deterministic-metric-at-the-same-time/39775 "2020-05-20T21:45:00Z")

</div>

The evaluate and evaluate! methods in MLJ can accept a vector of metric functions. However, it doesn’t appear that you can evaluate metrics based on probabilistic predictions (e.g. AUC) and metrics based on deterministic…

---

## [PyPlot set facecolor](https://discourse.julialang.org/t/pyplot-set-facecolor/39794)

<div class="topic-metadata">

**Author:** [@qwerytyui1234](https://discourse.julialang.org/u/qwerytyui1234)\
**Replies:** 1\
**Last updated:** [May 20, 2020, 5:57pm UTC](https://discourse.julialang.org/t/pyplot-set-facecolor/39794 "2020-05-20T17:57:55Z")

</div>

Can anyone get this code to work? using Plots pyplot() fig, ax = PyPlot.subplots(facecolor=(0.5,0.2,0.5)) ax.plot(rand(10)) fig This code runs without any error message, but for some reason the background color for t…

---

## [Delete!() row from DataFrame incompatible with CSV.jl?](https://discourse.julialang.org/t/delete-row-from-dataframe-incompatible-with-csv-jl/39835)

<div class="topic-metadata">

**Author:** [@Fred](https://discourse.julialang.org/u/Fred)\
**Replies:** 3\
**Last updated:** [May 20, 2020, 2:43pm UTC](https://discourse.julialang.org/t/delete-row-from-dataframe-incompatible-with-csv-jl/39835 "2020-05-20T14:43:59Z")

</div>

Hi ! Following some packages updates, the functions I add used to delete rows in dataframes, such as deleterows!(), have been deprecated and I try to make my old code running again but I face a difficult problem. When …

---

## [CPLEX.jl: how to call CPXcallbackgetinfoint?](https://discourse.julialang.org/t/cplex-jl-how-to-call-cpxcallbackgetinfoint/39834)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 1\
**Last updated:** [May 20, 2020, 2:36pm UTC](https://discourse.julialang.org/t/cplex-jl-how-to-call-cpxcallbackgetinfoint/39834 "2020-05-20T14:36:41Z")

</div>

Dear folks, I try to call CPXcallbackgetinfoint within a callback but unfortunately fail to do so. From what I could extract from the source code of the CPLEX package, it should work something like this: function myCal…

---

## [How to parallel Julia on multiple nodes on HPC (slurm)?](https://discourse.julialang.org/t/how-to-parallel-julia-on-multiple-nodes-on-hpc-slurm/39730)

<div class="topic-metadata">

**Author:** [@zxjroger](https://discourse.julialang.org/u/zxjroger)\
**Replies:** 11\
**Last updated:** [May 20, 2020, 3:55am UTC](https://discourse.julialang.org/t/how-to-parallel-julia-on-multiple-nodes-on-hpc-slurm/39730 "2020-05-20T03:55:35Z")

</div>

The parallel part of my Julia script utilizes the Distributed.jl package and the remotecall\_fetch function. (I am not using MPI.) In short, it calculates many linear programming problems in parallel independently. (Here …

---

## [Customize quantile in DataFrames Combine summary](https://discourse.julialang.org/t/customize-quantile-in-dataframes-combine-summary/39774)

<div class="topic-metadata">

**Author:** [@Nelain](https://discourse.julialang.org/u/Nelain)\
**Replies:** 2\
**Last updated:** [May 19, 2020, 7:32pm UTC](https://discourse.julialang.org/t/customize-quantile-in-dataframes-combine-summary/39774 "2020-05-19T19:32:15Z")

</div>

Hello, I am trying to summarize a GroupedDataFrame: df2 = CSV.read(raw"\_Q\\Test.csv"); gd = groupby(df2, :Age\_Catg) print( combine(gd, nrow ,:Income =\> mean ,:Income =\> middle ,:Income =\> …

---

## [Language impediments to inference of real-time streaming models](https://discourse.julialang.org/t/language-impediments-to-inference-of-real-time-streaming-models/39731)

<div class="topic-metadata">

**Author:** [@marty0801](https://discourse.julialang.org/u/marty0801)\
**Replies:** 6\
**Last updated:** [May 19, 2020, 1:42pm UTC](https://discourse.julialang.org/t/language-impediments-to-inference-of-real-time-streaming-models/39731 "2020-05-19T13:42:15Z")

</div>

I’m debating whether to attempt a Julia solution to a particular “streaming” inference problem in which a global data model is constantly being updated with new data. I’m new to the language, but there seems to be langua…

---

## [Removing redundant inequalities from a linear system of linear inequalities](https://discourse.julialang.org/t/removing-redundant-inequalities-from-a-linear-system-of-linear-inequalities/39742)

<div class="topic-metadata">

**Author:** [@KiriaKasis](https://discourse.julialang.org/u/KiriaKasis)\
**Replies:** 0\
**Last updated:** [May 19, 2020, 6:49am UTC](https://discourse.julialang.org/t/removing-redundant-inequalities-from-a-linear-system-of-linear-inequalities/39742 "2020-05-19T06:49:02Z")

</div>

I have a satisfiable system of inequalities Ax ≤ b or equivalently a\_i · x ≤ b\_i for 1 ≤ i ≤ n. I would like to find all indexes i such that the i\\text{-th} inequality is redundant. For example in \\begin{aligned} x + …

---

## [Beginners question: how to formulate this assignment/scheduling problem?](https://discourse.julialang.org/t/beginners-question-how-to-formulate-this-assignment-scheduling-problem/39681)

<div class="topic-metadata">

**Author:** [@scheidan](https://discourse.julialang.org/u/scheidan)\
**Replies:** 5\
**Last updated:** [May 19, 2020, 1:38am UTC](https://discourse.julialang.org/t/beginners-question-how-to-formulate-this-assignment-scheduling-problem/39681 "2020-05-19T01:38:22Z")

</div>

Hi all, I’m quite new to mathematical programming. I try to solve this seemingly simple problem: I have N speakers and M \> N slots for talks. Each slot can hold a single talk. Other constrains may be added. How should…

---

## [MILP optimization using Gurobi gives error related to Attribute MathOptInterface](https://discourse.julialang.org/t/milp-optimization-using-gurobi-gives-error-related-to-attribute-mathoptinterface/39700)

<div class="topic-metadata">

**Author:** [@mamuniut09](https://discourse.julialang.org/u/mamuniut09)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 3:32pm UTC](https://discourse.julialang.org/t/milp-optimization-using-gurobi-gives-error-related-to-attribute-mathoptinterface/39700 "2020-05-18T15:32:48Z")

</div>

Hello all, I was trying to optimize an MILP problem using Gurobi. However, I am getting the below error. MathOptInterface.UnsupportedAttribute{MathOptInterface.NLPBlock}: Attribute MathOptInterface.NLPBlock() is not su…

---

## [\[JuMP\] Connecting JuMP to custom Solver Simplex](https://discourse.julialang.org/t/jump-connecting-jump-to-custom-solver-simplex/39623)

<div class="topic-metadata">

**Author:** [@RaulBritto](https://discourse.julialang.org/u/RaulBritto)\
**Replies:** 7\
**Last updated:** [May 18, 2020, 11:22am UTC](https://discourse.julialang.org/t/jump-connecting-jump-to-custom-solver-simplex/39623 "2020-05-18T11:22:21Z")

</div>

Hello, I’m new in Julia Language and I’m currently coding the Simplex algorithm and I would like to use JuMP to write the optimization models to my solver. My ideia is write the models using JuMP and call my solver or Ju…

---

## [Julia method error](https://discourse.julialang.org/t/julia-method-error/39644)

<div class="topic-metadata">

**Author:** [@DeepQ](https://discourse.julialang.org/u/DeepQ)\
**Replies:** 6\
**Last updated:** [May 18, 2020, 10:36am UTC](https://discourse.julialang.org/t/julia-method-error/39644 "2020-05-18T10:36:40Z")

</div>

I created a neural network using Flux library. My code is based on the paper “neural importance sampling”. I defined custom layers and custom loss function. Each layer returns two outputs. When I run my code, I receive t…

---

## [Alternativa to softmax?](https://discourse.julialang.org/t/alternativa-to-softmax/39671)

<div class="topic-metadata">

**Author:** [@BMval](https://discourse.julialang.org/u/BMval)\
**Replies:** 1\
**Last updated:** [May 18, 2020, 2:55am UTC](https://discourse.julialang.org/t/alternativa-to-softmax/39671 "2020-05-18T02:55:51Z")

</div>

alternativa to softmax? Would you suggest it? I don’t like softmax since softmax(const \* x) != softmax (x) . For instance softmax(\[0,0.2,0.05\]) = \[0.3,0.37,0.32\], so I can’t interpretare it as probability at all, bacu…

---

## [InexactError: trunc(Int64, NaN) while using theme(:mute) in plots](https://discourse.julialang.org/t/inexacterror-trunc-int64-nan-while-using-theme-mute-in-plots/39640)

<div class="topic-metadata">

**Author:** [@SarthakDsh](https://discourse.julialang.org/u/SarthakDsh)\
**Replies:** 2\
**Last updated:** [May 17, 2020, 8:08pm UTC](https://discourse.julialang.org/t/inexacterror-trunc-int64-nan-while-using-theme-mute-in-plots/39640 "2020-05-17T20:08:41Z")

</div>

I have the following code using Plots gr() theme(:mute) x1 =200:0.1:300.0 plot(x1,rand(length(x1))) which produces the following error InexactError: trunc(Int64, NaN) Stacktrace: \[1\] trunc at .\\float.jl:703 \[inline…

---

## [Primitive drawing in array (Luxor & JuliaImages)](https://discourse.julialang.org/t/primitive-drawing-in-array-luxor-juliaimages/39580)

<div class="topic-metadata">

**Author:** [@JuliaIncomplete](https://discourse.julialang.org/u/JuliaIncomplete)\
**Replies:** 3\
**Last updated:** [May 17, 2020, 5:08pm UTC](https://discourse.julialang.org/t/primitive-drawing-in-array-luxor-juliaimages/39580 "2020-05-17T17:08:34Z")

</div>

I’m trying to do some probabilistic programming and generate some ellipses to look like the target image. In theory this can work but it is quite slow as the way I’m drawing ellipses is using Luxor. As far as I can see, …

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

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