# Latest

**URL:** https://discourse.julialang.org/latest.md?page=1047

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

**Page:** 1048

---

## [Cannot take the CPU address of a CUDA.CuArray{Float32, 1, CUDA.Mem.DeviceBuffer} in LinearAlgebra matmul](https://discourse.julialang.org/t/cannot-take-the-cpu-address-of-a-cuda-cuarray-float32-1-cuda-mem-devicebuffer-in-linearalgebra-matmul/80666)

<div class="topic-metadata">

**Author:** [@LarsWl](https://discourse.julialang.org/u/LarsWl)\
**Replies:** 0\
**Last updated:** [May 7, 2022, 12:53pm UTC](https://discourse.julialang.org/t/cannot-take-the-cpu-address-of-a-cuda-cuarray-float32-1-cuda-mem-devicebuffer-in-linearalgebra-matmul/80666 "2022-05-07T12:53:17Z")

</div>

Have such function, that usually calculated correct. function predict\_train(model::Model, batch) (calculate\_hidden(model, batch, dropout\_active=true) .^ 3) |\> model.upper\_layer |\> (upper) -\> model.output\_laye…

---

## [Does Searchlight ORM have relationships?](https://discourse.julialang.org/t/does-searchlight-orm-have-relationships/80660)

<div class="topic-metadata">

**Author:** [@Xergon](https://discourse.julialang.org/u/Xergon)\
**Replies:** 1\
**Last updated:** [May 7, 2022, 12:23pm UTC](https://discourse.julialang.org/t/does-searchlight-orm-have-relationships/80660 "2022-05-07T12:23:27Z")

</div>

Hey all, Does Searchlight have active support for relational databases? I know it has a Relationships module but the usage is not very clear. If so, can you explain a bit? I am very new to the genie ecosystem and my ex…

---

## [Create vector with dependent values](https://discourse.julialang.org/t/create-vector-with-dependent-values/80611)

<div class="topic-metadata">

**Author:** [@vamp](https://discourse.julialang.org/u/vamp)\
**Replies:** 4\
**Last updated:** [May 7, 2022, 12:16pm UTC](https://discourse.julialang.org/t/create-vector-with-dependent-values/80611 "2022-05-07T12:16:57Z")

</div>

Hello, I am new to Julia and I have to create a vector which values are dependent. Let me put an example: If I have MyStruct(22, \[0, 0, 0\], 0) , the next values can be MyStruct(21, \[0, 0, 1\], 0) , MyStruct(21, \[0, 1, 0…

---

## [Useful: How to check the parameters that can be used by a function](https://discourse.julialang.org/t/useful-how-to-check-the-parameters-that-can-be-used-by-a-function/80659)

<div class="topic-metadata">

**Author:** [@dmolina](https://discourse.julialang.org/u/dmolina)\
**Replies:** 0\
**Last updated:** [May 7, 2022, 11:24am UTC](https://discourse.julialang.org/t/useful-how-to-check-the-parameters-that-can-be-used-by-a-function/80659 "2022-05-07T11:24:04Z")

</div>

Sometimes I create functions that receive a function as parameter, but in Julia the type is Function without any information, so when the function pass as parameter is not right, the error message is not very informative…

---

## [Working with \`LinearAlgebra.mul!\`](https://discourse.julialang.org/t/working-with-linearalgebra-mul/80649)

<div class="topic-metadata">

**Author:** [@sinecera10](https://discourse.julialang.org/u/sinecera10)\
**Replies:** 12\
**Last updated:** [May 7, 2022, 11:42am UTC](https://discourse.julialang.org/t/working-with-linearalgebra-mul/80649 "2022-05-07T11:42:30Z")

</div>

Reposting a reddit post here to solicit comments from the Julia community. I may have chanced upon a bug? According to reddit users No-Distribution4263 and Foura5 both foo! and bar! should result in an error. But the cas…

---

## [Weave hangs when I tried it](https://discourse.julialang.org/t/weave-hangs-when-i-tried-it/38483)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 2\
**Last updated:** [May 7, 2022, 10:38am UTC](https://discourse.julialang.org/t/weave-hangs-when-i-tried-it/38483 "2022-05-07T10:38:35Z")

</div>

I tried the following code from the document. (weave) pkg\> st Status \`~/Work/weave/Project.toml\` \[717857b8\] DSP v0.6.6 \[91a5bcdd\] Plots v1.2.0 \[44d3d7a6\] Weave v0.9.4 julia\> using Weave julia\> weave(joinpath(dir…

---

## [Using Polynomials.jl with CUDA.jl](https://discourse.julialang.org/t/using-polynomials-jl-with-cuda-jl/80580)

<div class="topic-metadata">

**Author:** [@GHRALIMA](https://discourse.julialang.org/u/GHRALIMA)\
**Replies:** 3\
**Last updated:** [May 7, 2022, 10:15am UTC](https://discourse.julialang.org/t/using-polynomials-jl-with-cuda-jl/80580 "2022-05-07T10:15:03Z")

</div>

I’m on my very first trial with CUDA.jl, and I’m trying to use it together with Polynomials.jl to calculate the roots of thousands of polynomials with my NVidia GPU. However, when I try to create a polynomial using CuArr…

---

## [The reasons why ABM is not a parameterized type in Agents.jl?](https://discourse.julialang.org/t/the-reasons-why-abm-is-not-a-parameterized-type-in-agents-jl/80538)

<div class="topic-metadata">

**Author:** [@Atiyah](https://discourse.julialang.org/u/Atiyah)\
**Replies:** 4\
**Last updated:** [May 7, 2022, 5:39am UTC](https://discourse.julialang.org/t/the-reasons-why-abm-is-not-a-parameterized-type-in-agents-jl/80538 "2022-05-07T05:39:14Z")

</div>

I am new to Julia and therefore my curiosity in some implementation details. In the package Agents.jl, the type constructor of Agents.AgentBasedModel is expecting a type as its first argument (specifically an AgentType \<…

---

## [Optimizing over an integral that is computed with simulation](https://discourse.julialang.org/t/optimizing-over-an-integral-that-is-computed-with-simulation/80646)

<div class="topic-metadata">

**Author:** [@samerb](https://discourse.julialang.org/u/samerb)\
**Replies:** 2\
**Last updated:** [May 7, 2022, 3:47am UTC](https://discourse.julialang.org/t/optimizing-over-an-integral-that-is-computed-with-simulation/80646 "2022-05-07T03:47:21Z")

</div>

If g(x)\\equiv \\int h(\\tau) dF(\\tau) is a multi-dimensional integral which I’d need Monte Carlo integration to compute, is there a good way to optimize the function g(\\cdot)? Would standard optimization routines (from e.…

---

## [Too much time when i solve MISOCP with Gurobi](https://discourse.julialang.org/t/too-much-time-when-i-solve-misocp-with-gurobi/80644)

<div class="topic-metadata">

**Author:** [@mahon](https://discourse.julialang.org/u/mahon)\
**Replies:** 4\
**Last updated:** [May 7, 2022, 3:40am UTC](https://discourse.julialang.org/t/too-much-time-when-i-solve-misocp-with-gurobi/80644 "2022-05-07T03:40:22Z")

</div>

this is my model julia\> model A JuMP Model Minimization problem with: Variables: 8915 Objective function type: AffExpr \`AffExpr\`-in-\`MathOptInterface.EqualTo{Float64}\`: 2716 constraints \`AffExpr\`-in-\`MathOptInterface.Gr…

---

## [A question about write\_to\_file in JuMP](https://discourse.julialang.org/t/a-question-about-write-to-file-in-jump/80643)

<div class="topic-metadata">

**Author:** [@mahon](https://discourse.julialang.org/u/mahon)\
**Replies:** 1\
**Last updated:** [May 7, 2022, 3:25am UTC](https://discourse.julialang.org/t/a-question-about-write-to-file-in-jump/80643 "2022-05-07T03:25:12Z")

</div>

My model is a MISOCP model with Gurobi, if i want to solve it directly with Gurobi, how to code it? julia\> write\_to\_file(model, "model.lp") ERROR: MathOptInterface.UnsupportedConstraint{MathOptInterface.VectorAffineFunc…

---

## [Branching solution accepted although it violates presently added lazy constraints](https://discourse.julialang.org/t/branching-solution-accepted-although-it-violates-presently-added-lazy-constraints/80622)

<div class="topic-metadata">

**Author:** [@K5Julien](https://discourse.julialang.org/u/K5Julien)\
**Replies:** 5\
**Last updated:** [May 7, 2022, 1:03am UTC](https://discourse.julialang.org/t/branching-solution-accepted-although-it-violates-presently-added-lazy-constraints/80622 "2022-05-07T01:03:15Z")

</div>

I can not produce a MWE because the code is too big so I am going to describe. I have a JuMP model and Gurobi optimizer. I launch a callback where cb\_where is MIP\_SOL and all my variables are integer. On this callback, …

---

## [How to reopen a shared library?](https://discourse.julialang.org/t/how-to-reopen-a-shared-library/80642)

<div class="topic-metadata">

**Author:** [@jsjie](https://discourse.julialang.org/u/jsjie)\
**Replies:** 0\
**Last updated:** [May 7, 2022, 12:41am UTC](https://discourse.julialang.org/t/how-to-reopen-a-shared-library/80642 "2022-05-07T00:41:56Z")

</div>

I’m using a shared library by ccall in my code, it works fine as long as the library does not change. However, if I’ve used the library in Julia REPL, then changed c source code and recompiled the library, the Julia REP…

---

## [Calling struct fields with symbol or string](https://discourse.julialang.org/t/calling-struct-fields-with-symbol-or-string/80633)

<div class="topic-metadata">

**Author:** [@stephans3](https://discourse.julialang.org/u/stephans3)\
**Replies:** 3\
**Last updated:** [May 7, 2022, 12:21am UTC](https://discourse.julialang.org/t/calling-struct-fields-with-symbol-or-string/80633 "2022-05-07T00:21:51Z")

</div>

Hi all, I got to the problem how to call field names in a struct automatically with symbols or strings. This can be solved manually with if-else-constructions but is quite long and error-prone. Beside some related top…

---

## [Why can't Enums be #undef?](https://discourse.julialang.org/t/why-cant-enums-be-undef/80635)

<div class="topic-metadata">

**Author:** [@janneshb](https://discourse.julialang.org/u/janneshb)\
**Replies:** 8\
**Last updated:** [May 6, 2022, 11:14pm UTC](https://discourse.julialang.org/t/why-cant-enums-be-undef/80635 "2022-05-06T23:14:40Z")

</div>

When trying to initialize Enum as #undef it instead goes into an invalid state by adopting an arbitrary integer. Consider the following example: julia\> @enum Fruit Apple Banana Peach julia\> struct Basket{T} …

---

## [Need help in formatting bar plot in Makie](https://discourse.julialang.org/t/need-help-in-formatting-bar-plot-in-makie/80496)

<div class="topic-metadata">

**Author:** [@EricChameroy](https://discourse.julialang.org/u/EricChameroy)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 10:17pm UTC](https://discourse.julialang.org/t/need-help-in-formatting-bar-plot-in-makie/80496 "2022-05-06T22:17:18Z")

</div>

I’m trying to recreate the following image using Makie and I’m having issues with some of the final formatting: So far, I managed to come up with the following: using CairoMakie age\_groups = \["0-12", "13-24", "25-3…

---

## [Next portable Julia in VSCode](https://discourse.julialang.org/t/next-portable-julia-in-vscode/80626)

<div class="topic-metadata">

**Author:** [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Replies:** 11\
**Last updated:** [May 6, 2022, 9:40pm UTC](https://discourse.julialang.org/t/next-portable-julia-in-vscode/80626 "2022-05-06T21:40:45Z")

</div>

https://github.com/PetrKryslUCSD/VSCode\_Julia\_portable The whole package consists of a couple of scripts that install Git and a working Julia and preconfigured VSCode. Everything is confined to a single folder (includin…

---

## [DifferentialEquations: Sundials and LSODA report convergence failure, Julia solvers silently fail?](https://discourse.julialang.org/t/differentialequations-sundials-and-lsoda-report-convergence-failure-julia-solvers-silently-fail/80489)

<div class="topic-metadata">

**Author:** [@qtoloza](https://discourse.julialang.org/u/qtoloza)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 9:20pm UTC](https://discourse.julialang.org/t/differentialequations-sundials-and-lsoda-report-convergence-failure-julia-solvers-silently-fail/80489 "2022-05-06T21:20:14Z")

</div>

Hi all! I have an ODE whose solution (mysteriously to me) fails to converge for a set of inputs. The real problem is that solve() does not throw an error and halt integration when I use a native Julia solver (I’ve tried…

---

## [Julia lovers and developers](https://discourse.julialang.org/t/julia-lovers-and-developers/80637)

<div class="topic-metadata">

**Author:** [@cwiese](https://discourse.julialang.org/u/cwiese)\
**Replies:** 1\
**Last updated:** [May 6, 2022, 8:12pm UTC](https://discourse.julialang.org/t/julia-lovers-and-developers/80637 "2022-05-06T20:12:42Z")

</div>

100% remote - for skilled Julia Developers - please email resume cwiese “at” gmail.com Position #1: Portfolio Risk Assessment project - requires Julia and Python, with AWS skills - data wrangling pipelines to S3 - h…

---

## [Python and/or Julia Software Engineer Needed](https://discourse.julialang.org/t/python-and-or-julia-software-engineer-needed/79835)

<div class="topic-metadata">

**Author:** [@juliafanatics](https://discourse.julialang.org/u/juliafanatics)\
**Replies:** 2\
**Last updated:** [May 6, 2022, 8:05pm UTC](https://discourse.julialang.org/t/python-and-or-julia-software-engineer-needed/79835 "2022-05-06T20:05:37Z")

</div>

Senior Python and/or Julia Software Engineer with strong SQL skills As the Senior Python/Julia Software Engineer, you will be responsible for designing and developing core software assets that perform data integration. …

---

## [Improve performance of Bellman operator](https://discourse.julialang.org/t/improve-performance-of-bellman-operator/80624)

<div class="topic-metadata">

**Author:** [@axel365](https://discourse.julialang.org/u/axel365)\
**Replies:** 7\
**Last updated:** [May 6, 2022, 8:05pm UTC](https://discourse.julialang.org/t/improve-performance-of-bellman-operator/80624 "2022-05-06T20:05:12Z")

</div>

Hi there, I am creating a function for the Bellman operator, a common tool in economics and macroeconomics. The function takes an Array of dimension n where n is the number of state variables and iterates it one period,…

---

## [Time Series sensitivity analysis for multiple outputs](https://discourse.julialang.org/t/time-series-sensitivity-analysis-for-multiple-outputs/80631)

<div class="topic-metadata">

**Author:** [@xztt](https://discourse.julialang.org/u/xztt)\
**Replies:** 1\
**Last updated:** [May 6, 2022, 7:54pm UTC](https://discourse.julialang.org/t/time-series-sensitivity-analysis-for-multiple-outputs/80631 "2022-05-06T19:54:43Z")

</div>

Hi, function circ\_local\_time(x) \_prob = remake(prob,u0=x\[1:3\],p=x\[4:end\]) sol = solve(\_prob,Tsit5(), reltol=1e-6, abstol=1e-6,saveat=savetime) sol\[LV.p\] end St = ForwardDiff.jacobian(circ\_local\_time,\[u0;p\])…

---

## [Optimization of large ODE/DAE system](https://discourse.julialang.org/t/optimization-of-large-ode-dae-system/80557)

<div class="topic-metadata">

**Author:** [@mzhenirovskyy](https://discourse.julialang.org/u/mzhenirovskyy)\
**Replies:** 8\
**Last updated:** [May 6, 2022, 7:11pm UTC](https://discourse.julialang.org/t/optimization-of-large-ode-dae-system/80557 "2022-05-06T19:11:44Z")

</div>

Hi All, A big picture question about optimization of large ODE/DAE system. Suppose I have a big DAE system (number of equations ~ 100-200, number of parameters to optimize ~ 10-20) Julia has a bunch of optimization t…

---

## [I want to make an hospital emergency department model in Julia](https://discourse.julialang.org/t/i-want-to-make-an-hospital-emergency-department-model-in-julia/80607)

<div class="topic-metadata">

**Author:** [@Floyd\_Gartner](https://discourse.julialang.org/u/Floyd_Gartner)\
**Replies:** 1\
**Last updated:** [May 6, 2022, 6:31pm UTC](https://discourse.julialang.org/t/i-want-to-make-an-hospital-emergency-department-model-in-julia/80607 "2022-05-06T18:31:54Z")

</div>

Hi everybody, I’m super new to Julia and still don’t know how to get started. I want to make a model that simulates an emergency department in a hospital. More specifically I want to show the patient assignment to free…

---

## [Which parameter estimation technique should I learn?](https://discourse.julialang.org/t/which-parameter-estimation-technique-should-i-learn/80378)

<div class="topic-metadata">

**Author:** [@BinaryBot](https://discourse.julialang.org/u/BinaryBot)\
**Replies:** 5\
**Last updated:** [May 6, 2022, 5:28pm UTC](https://discourse.julialang.org/t/which-parameter-estimation-technique-should-i-learn/80378 "2022-05-06T17:28:32Z")

</div>

I would like to ask the Julia community which Parameter Estimation package should I learn/use for my following problem: I have defined a ODE that has over 20 fixed parameters and there is 4 I would like to optimise. I …

---

## [Best Practices for Debugging DiffEqFlux Errors](https://discourse.julialang.org/t/best-practices-for-debugging-diffeqflux-errors/80618)

<div class="topic-metadata">

**Author:** [@jbu](https://discourse.julialang.org/u/jbu)\
**Replies:** 1\
**Last updated:** [May 6, 2022, 4:26pm UTC](https://discourse.julialang.org/t/best-practices-for-debugging-diffeqflux-errors/80618 "2022-05-06T16:26:19Z")

</div>

What are best practices for debugging when encountering errors with DiffEqFlux problems? I’m working on creating a differentiable ODE simulator with DiffEqFlux. It’s an amazing and powerful tool! However, debugging taki…

---

## [Speed of power "^"](https://discourse.julialang.org/t/speed-of-power/80605)

<div class="topic-metadata">

**Author:** [@zhubonan](https://discourse.julialang.org/u/zhubonan)\
**Replies:** 16\
**Last updated:** [May 6, 2022, 3:17pm UTC](https://discourse.julialang.org/t/speed-of-power/80605 "2022-05-06T15:17:26Z")

</div>

I am writing a code that involves lots of use of “^” and profiling seems to suggest “^” is contributing a lot of the time. I have done the following test of the timing. Replacing “^” “\*” seems to give a massive speed up…

---

## [Linear combinations of Zygote.Grads](https://discourse.julialang.org/t/linear-combinations-of-zygote-grads/80621)

<div class="topic-metadata">

**Author:** [@5Pack](https://discourse.julialang.org/u/5Pack)\
**Replies:** 0\
**Last updated:** [May 6, 2022, 3:03pm UTC](https://discourse.julialang.org/t/linear-combinations-of-zygote-grads/80621 "2022-05-06T15:03:57Z")

</div>

Here is a question I posted on Stack Overflow, but I thought it would be good to post it here also. Thank you in advance for your help! https://stackoverflow.com/questions/72143438/linear-combinations-of-zygote-grads

---

## [Interpolation for multivariate function](https://discourse.julialang.org/t/interpolation-for-multivariate-function/80410)

<div class="topic-metadata">

**Author:** [@axel365](https://discourse.julialang.org/u/axel365)\
**Replies:** 5\
**Last updated:** [May 6, 2022, 2:59pm UTC](https://discourse.julialang.org/t/interpolation-for-multivariate-function/80410 "2022-05-06T14:59:20Z")

</div>

Hi everybody, I have a sample of points for a multivariate function that I would like to approximate with interpolation, where all arguments are on a grid. I would like to get a value for that function for other (interi…

---

## [Two stage stochastic](https://discourse.julialang.org/t/two-stage-stochastic/78767)

<div class="topic-metadata">

**Author:** [@HosseinF](https://discourse.julialang.org/u/HosseinF)\
**Replies:** 8\
**Last updated:** [May 6, 2022, 1:59pm UTC](https://discourse.julialang.org/t/two-stage-stochastic/78767 "2022-05-06T13:59:42Z")

</div>

Hello every one. I am new to Julia. I want to extract the second stage decisional variables but it does not work. Does every one know that what is the problem?

[Previous page](https://discourse.julialang.org/latest.md?page=1046)

[Next page](https://discourse.julialang.org/latest.md?page=1048)
