# Specific Domains

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

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

**Page:** 461

---

## [Help me with repeated index](https://discourse.julialang.org/t/help-me-with-repeated-index/35339)

<div class="topic-metadata">

**Author:** [@varun\_yaramasu](https://discourse.julialang.org/u/varun_yaramasu)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 9:49pm UTC](https://discourse.julialang.org/t/help-me-with-repeated-index/35339 "2020-02-29T21:49:27Z")

</div>

using JuMP,SCS m=Model(with\_optimizer(SCS.Optimizer)) branch=\[1 2 0.1 3 4 0.1 4 5 0.2 4 6 0.3 5 6 0.1 \] If we want only the first column of the branch, what we have to do ? I…

---

## [Printing Frequency Tables as Tables](https://discourse.julialang.org/t/printing-frequency-tables-as-tables/35333)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 3\
**Last updated:** [February 29, 2020, 9:39pm UTC](https://discourse.julialang.org/t/printing-frequency-tables-as-tables/35333 "2020-02-29T21:39:08Z")

</div>

I’m trying to print out Frequency Tables of Data I have out = DataFrame(Q1 = \[3,3,3\], Q2 = \[3,2,1\]) when I run this line or type julia\> AllOut) I get a table like this. Dim1 ╲ Dim2 │ 1 2 3 ────────────┼──────── 1 …

---

## [Polar heatmap with PyPlot works in REPL but not in IJulia](https://discourse.julialang.org/t/polar-heatmap-with-pyplot-works-in-repl-but-not-in-ijulia/35328)

<div class="topic-metadata">

**Author:** [@KajWiik](https://discourse.julialang.org/u/KajWiik)\
**Replies:** 1\
**Last updated:** [February 29, 2020, 6:21pm UTC](https://discourse.julialang.org/t/polar-heatmap-with-pyplot-works-in-repl-but-not-in-ijulia/35328 "2020-02-29T18:21:36Z")

</div>

Plotting polar heatmap works in REPL but not in IJulia, here’s the MWE: using PyPlot r = \[rd for rd = range(0.0, 10, length = 100), theta = range(0, 2π, length = 100)\] th = \[theta for rd = range(0.0, 10, length = 100), …

---

## [Understand apply! of JuAFEM](https://discourse.julialang.org/t/understand-apply-of-juafem/35325)

<div class="topic-metadata">

**Author:** [@koehlerson](https://discourse.julialang.org/u/koehlerson)\
**Replies:** 9\
**Last updated:** [February 29, 2020, 5:44pm UTC](https://discourse.julialang.org/t/understand-apply-of-juafem/35325 "2020-02-29T17:44:05Z")

</div>

Hey there, I’m new to Julia and I wanted to transport my existing FEM Code written with FEniCS in C++ to JuAFEM code. First of all thanks to the developers of the package! My problem is a SUPG stabilized advection diff…

---

## [Code to train a Support Vector Machine?](https://discourse.julialang.org/t/code-to-train-a-support-vector-machine/35300)

<div class="topic-metadata">

**Author:** [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)\
**Replies:** 0\
**Last updated:** [February 28, 2020, 8:39pm UTC](https://discourse.julialang.org/t/code-to-train-a-support-vector-machine/35300 "2020-02-28T20:39:15Z")

</div>

Hello, In the MITx 6.86x “Machine Learning with Python-From Linear Models to Deep Learning” course we has been presented with a recitation that uses scikit-learn to train a SVM model (code follows). In particular, the …

---

## [Error in JuMP with nonlinear objective](https://discourse.julialang.org/t/error-in-jump-with-nonlinear-objective/35261)

<div class="topic-metadata">

**Author:** [@mleprovost](https://discourse.julialang.org/u/mleprovost)\
**Replies:** 6\
**Last updated:** [February 28, 2020, 5:38pm UTC](https://discourse.julialang.org/t/error-in-jump-with-nonlinear-objective/35261 "2020-02-28T17:38:12Z")

</div>

Hello everyone, I am interested in the following optimization problem that I would like to solve with JuMP: \\begin{split} \\min\_{x \\in \\mathbb{R}^n} & (z^Tx)^2 - \\log(b^T x\[1:k\])\\\\ \\mbox{ subject to }& x\[1:k\] \\geq 0…

---

## [\[ANN\] DBInterface.jl, MySQL.jl 1.0, and SQLite.jl 1.0](https://discourse.julialang.org/t/ann-dbinterface-jl-mysql-jl-1-0-and-sqlite-jl-1-0/34701)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 5\
**Last updated:** [February 28, 2020, 3:42pm UTC](https://discourse.julialang.org/t/ann-dbinterface-jl-mysql-jl-1-0-and-sqlite-jl-1-0/34701 "2020-02-28T15:42:29Z")

</div>

Sorry for all the posting lately, but I’ve been trying to coordinate a few 1.0 releases, so bear with me :sweat\_smile: This is the first official announcement of the new DBInterface.jl package, aiming to provide a stand…

---

## [How to fit a normal distribution to some points in the tail](https://discourse.julialang.org/t/how-to-fit-a-normal-distribution-to-some-points-in-the-tail/35233)

<div class="topic-metadata">

**Author:** [@lesshaste](https://discourse.julialang.org/u/lesshaste)\
**Replies:** 18\
**Last updated:** [February 28, 2020, 2:18pm UTC](https://discourse.julialang.org/t/how-to-fit-a-normal-distribution-to-some-points-in-the-tail/35233 "2020-02-28T14:18:48Z")

</div>

I have some empirical values for the cdf of a distribution which should be close to Normal. These are for x = 1, 2, … , 13. They are as follows: \[5.2909066017292616e-17, 2.998035847356917e-15, 2.893916126231429e-12, 2.8…

---

## [How can I use Optim/BFGS on functions I can't evaluate but whose gradients I can compute?](https://discourse.julialang.org/t/how-can-i-use-optim-bfgs-on-functions-i-cant-evaluate-but-whose-gradients-i-can-compute/35160)

<div class="topic-metadata">

**Author:** [@marius311](https://discourse.julialang.org/u/marius311)\
**Replies:** 11\
**Last updated:** [February 28, 2020, 11:24am UTC](https://discourse.julialang.org/t/how-can-i-use-optim-bfgs-on-functions-i-cant-evaluate-but-whose-gradients-i-can-compute/35160 "2020-02-28T11:24:53Z")

</div>

Suppose I have function I want to maximize with Optim’s BFGS algorithm. While I can compute gradients for this function, I cannot compute its value (this is typical if e.g. a high-dimensional determinant is involved, sin…

---

## [Help me with indexing](https://discourse.julialang.org/t/help-me-with-indexing/35203)

<div class="topic-metadata">

**Author:** [@varun\_yaramasu](https://discourse.julialang.org/u/varun_yaramasu)\
**Replies:** 3\
**Last updated:** [February 28, 2020, 4:12am UTC](https://discourse.julialang.org/t/help-me-with-indexing/35203 "2020-02-28T04:12:15Z")

</div>

For example using JuMP,SCS m=Model(with\_optimizer(SCS.Optimizer)) branch=\[1 2 0.1 3 4 0.1 4 5 0.2 4 6 0.3 5 6 0.1 \] G=length(branch\[:,1\]) @variable(m,P\[branch\[1:G,1\], branch\[1…

---

## [Entering xlsx columns into HypothosisTests](https://discourse.julialang.org/t/entering-xlsx-columns-into-hypothosistests/35157)

<div class="topic-metadata">

**Author:** [@brett\_knoss](https://discourse.julialang.org/u/brett_knoss)\
**Replies:** 26\
**Last updated:** [February 27, 2020, 10:55pm UTC](https://discourse.julialang.org/t/entering-xlsx-columns-into-hypothosistests/35157 "2020-02-27T22:55:59Z")

</div>

I’m trying to do Chi Squared tests of variables in a dataframe, from an xlsx file. When I use describe() I get a table: ────┼─────────┼──────────┼──────────┤ │ 1 │ Q1 │ 1.47727 │ 1 │ 1.0 │ 2 │ 2 …

---

## [Faster Bernoulli sampling](https://discourse.julialang.org/t/faster-bernoulli-sampling/35209)

<div class="topic-metadata">

**Author:** [@Adriel](https://discourse.julialang.org/u/Adriel)\
**Replies:** 7\
**Last updated:** [February 27, 2020, 9:31pm UTC](https://discourse.julialang.org/t/faster-bernoulli-sampling/35209 "2020-02-27T21:31:48Z")

</div>

I have a need for huge numbers of Bernoulli samples, so I tried to do better than the simple implementation in Distributions.jl (which just does rand() \< p), using a binary arithmetic decoder. Some timing results. juli…

---

## [Optimization giving wildly different answers depending on box constraints](https://discourse.julialang.org/t/optimization-giving-wildly-different-answers-depending-on-box-constraints/35244)

<div class="topic-metadata">

**Author:** [@lesshaste](https://discourse.julialang.org/u/lesshaste)\
**Replies:** 2\
**Last updated:** [February 27, 2020, 5:54pm UTC](https://discourse.julialang.org/t/optimization-giving-wildly-different-answers-depending-on-box-constraints/35244 "2020-02-27T17:54:08Z")

</div>

I am trying to fit a skew normal distribution to some data. I only have data from the left tail. My code is as follow: using Optim using Distributions using QuadGK unction T(h, a) return 1/(2\*π) \* quadgk(x -\> exp(-(…

---

## [Request for testing: CUDA from BinaryBuilder](https://discourse.julialang.org/t/request-for-testing-cuda-from-binarybuilder/34856)

<div class="topic-metadata">

**Author:** [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Replies:** 19\
**Last updated:** [February 27, 2020, 4:21pm UTC](https://discourse.julialang.org/t/request-for-testing-cuda-from-binarybuilder/34856 "2020-02-27T16:21:55Z")

</div>

Hi all, We are looking into using BinaryBuilder for installing CUDA when you use the Julia/CUDA stack, i.e. CuArrays or CUDAnative. The support for this has been merged to the master branches of the respective repositor…

---

## [Strange error when using Cbc for MILP =\> "This application has requested the Runtime to terminate it in an unusual way"](https://discourse.julialang.org/t/strange-error-when-using-cbc-for-milp-this-application-has-requested-the-runtime-to-terminate-it-in-an-unusual-way/3478)

<div class="topic-metadata">

**Author:** [@Jonathan\_Droxler](https://discourse.julialang.org/u/Jonathan_Droxler)\
**Replies:** 2\
**Last updated:** [February 27, 2020, 2:11pm UTC](https://discourse.julialang.org/t/strange-error-when-using-cbc-for-milp-this-application-has-requested-the-runtime-to-terminate-it-in-an-unusual-way/3478 "2020-02-27T14:11:04Z")

</div>

Dear all, Have got an error when using the Cbc solver for MILP problem (unit commitment for hydropower production). First, if I solve a problem with 3162 linear constraints 3628 variables : 1581 binary I got really …

---

## [How to read in a list of integers into an array](https://discourse.julialang.org/t/how-to-read-in-a-list-of-integers-into-an-array/35185)

<div class="topic-metadata">

**Author:** [@lesshaste](https://discourse.julialang.org/u/lesshaste)\
**Replies:** 16\
**Last updated:** [February 27, 2020, 10:24am UTC](https://discourse.julialang.org/t/how-to-read-in-a-list-of-integers-into-an-array/35185 "2020-02-27T10:24:19Z")

</div>

I have been a number of files, each contains one list of integers. I would just like to read in the contents into an array in Julia. Here is an example file: http://paste.ubuntu.com/p/pxmwPXkNNk/ How can I do that? I…

---

## [Replacing missing, really](https://discourse.julialang.org/t/replacing-missing-really/7952)

<div class="topic-metadata">

**Author:** [@harven](https://discourse.julialang.org/u/harven)\
**Replies:** 8\
**Last updated:** [February 26, 2020, 11:20pm UTC](https://discourse.julialang.org/t/replacing-missing-really/7952 "2020-02-26T23:20:15Z")

</div>

How can I replace the missing value in a dataframe by, say, 0? There is a Missings.replace function but it does not actually make the replacement. It builds a lazy data structure Missings.EachReplaceMissing{DataFrames.D…

---

## [Multiple Variable Types in JuMP Extensions](https://discourse.julialang.org/t/multiple-variable-types-in-jump-extensions/34948)

<div class="topic-metadata">

**Author:** [@pulsipher](https://discourse.julialang.org/u/pulsipher)\
**Replies:** 6\
**Last updated:** [February 26, 2020, 11:06pm UTC](https://discourse.julialang.org/t/multiple-variable-types-in-jump-extensions/34948 "2020-02-26T23:06:41Z")

</div>

With JuMP 0.21 I was wondering what the might be the recommended way to extend it to allow for mixed variable types? In other words, I am trying to figure out which functions I should extend to permit this behavior. For …

---

## [\[ANN\] Turing 0.9.0](https://discourse.julialang.org/t/ann-turing-0-9-0/35102)

<div class="topic-metadata">

**Author:** [@cpfiffer](https://discourse.julialang.org/u/cpfiffer)\
**Replies:** 6\
**Last updated:** [February 26, 2020, 8:57pm UTC](https://discourse.julialang.org/t/ann-turing-0-9-0/35102 "2020-02-26T20:57:38Z")

</div>

Turing 0.9 has been released. Bugs have been fixed and we’ve got new features and some key performance improvements. Precompilation and using Turing time should be dramatically improved. Informal benchmarks suggest that…

---

## [JuMP warning messages](https://discourse.julialang.org/t/jump-warning-messages/35143)

<div class="topic-metadata">

**Author:** [@bandaya](https://discourse.julialang.org/u/bandaya)\
**Replies:** 5\
**Last updated:** [February 26, 2020, 8:01pm UTC](https://discourse.julialang.org/t/jump-warning-messages/35143 "2020-02-26T20:01:24Z")

</div>

I get this warning message on some optimization problems. ┌ Warning: The addition operator has been used on JuMP expressions a large number of times. This warning is safe to ignore but may indicate that model generation…

---

## [Regression from JuMP 0.18 to 0.21](https://discourse.julialang.org/t/regression-from-jump-0-18-to-0-21/35175)

<div class="topic-metadata">

**Author:** [@Lukros](https://discourse.julialang.org/u/Lukros)\
**Replies:** 1\
**Last updated:** [February 26, 2020, 3:20pm UTC](https://discourse.julialang.org/t/regression-from-jump-0-18-to-0-21/35175 "2020-02-26T15:20:47Z")

</div>

Hello, I am updating some functions I coded on JuMP 0.18. There I made used of the next: solve(model, relaxation = true) In JuMP 0.21, I could not find a way to implement it using optimize!(model). Is there any gener…

---

## [Turing.jl - update variables within the model](https://discourse.julialang.org/t/turing-jl-update-variables-within-the-model/35168)

<div class="topic-metadata">

**Author:** [@tpoisot](https://discourse.julialang.org/u/tpoisot)\
**Replies:** 3\
**Last updated:** [February 26, 2020, 2:41pm UTC](https://discourse.julialang.org/t/turing-jl-update-variables-within-the-model/35168 "2020-02-26T14:41:58Z")

</div>

I’m using Turing to fit a model, where every data point is a pair (S,L), as we describe in the following paper: Revisiting the links-species scaling relationship in food webs | bioRxiv In practice, we do not use L to fi…

---

## [Example Chi Square test - why different answers from HypothesisTests and Distances?](https://discourse.julialang.org/t/example-chi-square-test-why-different-answers-from-hypothesistests-and-distances/13392)

<div class="topic-metadata">

**Author:** [@robblackwell](https://discourse.julialang.org/u/robblackwell)\
**Replies:** 6\
**Last updated:** [February 26, 2020, 1:43pm UTC](https://discourse.julialang.org/t/example-chi-square-test-why-different-answers-from-hypothesistests-and-distances/13392 "2020-02-26T13:43:32Z")

</div>

I’m trying to reproduce an example Chi square test given in in the text book, Practical Statistics for Field Biology which compares the histogram of some numbers (O) with expected values (E). The worked example gives 5.2…

---

## [Keep filter state for frame-wise processing](https://discourse.julialang.org/t/keep-filter-state-for-frame-wise-processing/34867)

<div class="topic-metadata">

**Author:** [@hagi](https://discourse.julialang.org/u/hagi)\
**Replies:** 4\
**Last updated:** [February 26, 2020, 8:53am UTC](https://discourse.julialang.org/t/keep-filter-state-for-frame-wise-processing/34867 "2020-02-26T08:53:46Z")

</div>

When I want to do frame-wise filtering of a longer signal, I want to use the last filter states for processing the next frame. While it is clear how to pass the argument, I don’t get how the states are returned. If I u…

---

## [\[MOI / JuMP\] Multiple Result Indexing Bug](https://discourse.julialang.org/t/moi-jump-multiple-result-indexing-bug/35140)

<div class="topic-metadata">

**Author:** [@pulsipher](https://discourse.julialang.org/u/pulsipher)\
**Replies:** 2\
**Last updated:** [February 25, 2020, 10:12pm UTC](https://discourse.julialang.org/t/moi-jump-multiple-result-indexing-bug/35140 "2020-02-25T22:12:12Z")

</div>

While developing tests for my JuMP extension in accordance with the newly supported multiple result indexing, I discovered that the same MOI attribute value is returned irrespective of the result index (returning the val…

---

## [Cbc with MILP too slow](https://discourse.julialang.org/t/cbc-with-milp-too-slow/35111)

<div class="topic-metadata">

**Author:** [@jayce\_ram](https://discourse.julialang.org/u/jayce_ram)\
**Replies:** 2\
**Last updated:** [February 25, 2020, 7:46pm UTC](https://discourse.julialang.org/t/cbc-with-milp-too-slow/35111 "2020-02-25T19:46:25Z")

</div>

I have launched a simulation of my MILP and almost 24 hours has been passed and the script is have not finished yet. I have wondering what is the real cause of this : the large amount of binary variables present in my…

---

## [Ipopt with MathProgBase returns Domain Error for log() function](https://discourse.julialang.org/t/ipopt-with-mathprogbase-returns-domain-error-for-log-function/35097)

<div class="topic-metadata">

**Author:** [@ykc](https://discourse.julialang.org/u/ykc)\
**Replies:** 8\
**Last updated:** [February 25, 2020, 7:25pm UTC](https://discourse.julialang.org/t/ipopt-with-mathprogbase-returns-domain-error-for-log-function/35097 "2020-02-25T19:25:14Z")

</div>

Hi all, I have been estimating a nonlinear model using the Ipopt solver through MathProgBase. The objective function takes sum(log.(x)) for a vector x at the end. From what I understand, if x is ever negative, Ipopt sh…

---

## [Trying to run DiffEqTutorials in a notebook](https://discourse.julialang.org/t/trying-to-run-diffeqtutorials-in-a-notebook/35124)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 0\
**Last updated:** [February 25, 2020, 5:18pm UTC](https://discourse.julialang.org/t/trying-to-run-diffeqtutorials-in-a-notebook/35124 "2020-02-25T17:18:00Z")

</div>

Hi, I am trying to run the Differential Equation Tutorials from within the notebook. So I execute: (v1.3) pkg\> add GitHub - SciML/SciMLTutorials.jl: Tutorials for doing scientific machine learning (SciML) and high-per…

---

## [Declaration of variable JuMP works well on ATOM but does not work on VSCODE](https://discourse.julialang.org/t/declaration-of-variable-jump-works-well-on-atom-but-does-not-work-on-vscode/35058)

<div class="topic-metadata">

**Author:** [@jayce\_ram](https://discourse.julialang.org/u/jayce_ram)\
**Replies:** 3\
**Last updated:** [February 25, 2020, 3:05pm UTC](https://discourse.julialang.org/t/declaration-of-variable-jump-works-well-on-atom-but-does-not-work-on-vscode/35058 "2020-02-25T15:05:16Z")

</div>

I have been working in a huge optimization problem and I have tried to execute my script on VSCode to see if I could improve the simulation time. I have installed VSCode (OS Debian) and I simply have executed the same s…

---

## [\[JuMP\] Updating NLparameter of a model in a loop](https://discourse.julialang.org/t/jump-updating-nlparameter-of-a-model-in-a-loop/35081)

<div class="topic-metadata">

**Author:** [@migarstka](https://discourse.julialang.org/u/migarstka)\
**Replies:** 3\
**Last updated:** [February 25, 2020, 2:40pm UTC](https://discourse.julialang.org/t/jump-updating-nlparameter-of-a-model-in-a-loop/35081 "2020-02-25T14:40:18Z")

</div>

copied from JuMP Gitter channel I have a question about solving a nonlinear JuMP model in a loop while updating some nonlinear parameters of the obj function: using JuMP, Ipopt function setup\_model() model = JuMP.…

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

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