# Specific Domains

**URL:** https://discourse.julialang.org/c/domain/10.md?page=461

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

**Page:** 462

---

## [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.…

---

## [Axis label skewed and wrongly positioned when setting guidefont](https://discourse.julialang.org/t/axis-label-skewed-and-wrongly-positioned-when-setting-guidefont/35116)

<div class="topic-metadata">

**Author:** [@mlanghinrichs](https://discourse.julialang.org/u/mlanghinrichs)\
**Replies:** 0\
**Last updated:** [February 25, 2020, 2:24pm UTC](https://discourse.julialang.org/t/axis-label-skewed-and-wrongly-positioned-when-setting-guidefont/35116 "2020-02-25T14:24:58Z")

</div>

Hi all, I noticed that my x axis label is somehow weirdly positioned and rotated when setting a particular font as guidefont (plot p2). I’m using the Plots.jl package with the GR backend. In case I don’t set the guidefo…

---

## [Why zip the data argument to the \`Flux::train!\` function?](https://discourse.julialang.org/t/why-zip-the-data-argument-to-the-flux-train-function/35024)

<div class="topic-metadata">

**Author:** [@arnaudmgh](https://discourse.julialang.org/u/arnaudmgh)\
**Replies:** 6\
**Last updated:** [February 25, 2020, 5:10am UTC](https://discourse.julialang.org/t/why-zip-the-data-argument-to-the-flux-train-function/35024 "2020-02-25T05:10:44Z")

</div>

I have been playing with the model zoo autoencoder code. I have a question about this line of code: @epochs 10 Flux.train!(loss, params(m), zip(data), opt, cb = evalcb) (permalink) What is zip(data) doing to the data,…

---

## [\[ANN\] New package: Strapping.jl](https://discourse.julialang.org/t/ann-new-package-strapping-jl/35038)

<div class="topic-metadata">

**Author:** [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Replies:** 9\
**Last updated:** [February 25, 2020, 4:38am UTC](https://discourse.julialang.org/t/ann-new-package-strapping-jl/35038 "2020-02-25T04:38:04Z")

</div>

I’ve been playing around with some “ORM” ideas for a bit in different ways, trying to find a good balance of “not-too-magical”, but still useful. I feel the design has finally come together well enough that I’d like to …

---

## [JuMP 0.21. How to stop the solver in callback?](https://discourse.julialang.org/t/jump-0-21-how-to-stop-the-solver-in-callback/35028)

<div class="topic-metadata">

**Author:** [@mike\_k](https://discourse.julialang.org/u/mike_k)\
**Replies:** 1\
**Last updated:** [February 25, 2020, 4:21am UTC](https://discourse.julialang.org/t/jump-0-21-how-to-stop-the-solver-in-callback/35028 "2020-02-25T04:21:20Z")

</div>

Dear community, in older JuMP versions, one was able to stop the solving process in a callback with JuMP.StopTheSolver. However, I did not find something similar in the documentation of the current release 0.21. Do have…

---

## [NLopt failed due to Forced Stop](https://discourse.julialang.org/t/nlopt-failed-due-to-forced-stop/34364)

<div class="topic-metadata">

**Author:** [@Fisheryu1234](https://discourse.julialang.org/u/Fisheryu1234)\
**Replies:** 3\
**Last updated:** [February 24, 2020, 11:47pm UTC](https://discourse.julialang.org/t/nlopt-failed-due-to-forced-stop/34364 "2020-02-24T23:47:06Z")

</div>

Hi, I encountered a rather complicated constrained maximum likelihood estimation The constraint is numerically solved from a large-scale nonlinear fixed-point problem given primitive parameters (12,800 equality constrai…

[Previous page](https://discourse.julialang.org/c/domain/10.md?page=460)

[Next page](https://discourse.julialang.org/c/domain/10.md?page=462)
