# Latest

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

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

**Page:** 546

---

## [Indicator constraints Not working](https://discourse.julialang.org/t/indicator-constraints-not-working/106687)

<div class="topic-metadata">

**Author:** [@papar](https://discourse.julialang.org/u/papar)\
**Replies:** 6\
**Last updated:** [November 26, 2023, 11:27pm UTC](https://discourse.julialang.org/t/indicator-constraints-not-working/106687 "2023-11-26T23:27:43Z")

</div>

I’m encountering a problem with an optimization model in Julia where I need to enforce a specific condition using indicator variables. The goal is to ensure that for each time period ( t ) (from 2 to T), either ( y\_{i,t}…

---

## [Adding nodes to JADE.jl](https://discourse.julialang.org/t/adding-nodes-to-jade-jl/106774)

<div class="topic-metadata">

**Author:** [@Zainab](https://discourse.julialang.org/u/Zainab)\
**Replies:** 1\
**Last updated:** [November 26, 2023, 10:59pm UTC](https://discourse.julialang.org/t/adding-nodes-to-jade-jl/106774 "2023-11-26T22:59:07Z")

</div>

I am using JADE.jl which is one of the applications of the JuMP package. The results of my simulations vary too much. I was trying to add another node to the EMI version of JADE. Any help in this matter would be much ap…

---

## [Extending \`dropmissing\` to AbstractArrays](https://discourse.julialang.org/t/extending-dropmissing-to-abstractarrays/106753)

<div class="topic-metadata">

**Author:** [@Dan](https://discourse.julialang.org/u/Dan)\
**Replies:** 4\
**Last updated:** [November 26, 2023, 9:53pm UTC](https://discourse.julialang.org/t/extending-dropmissing-to-abstractarrays/106753 "2023-11-26T21:53:15Z")

</div>

From another thread, there was discussion of skipmissing, and it prompted me to think dropmissing is a convenient way to get rid of those pesky missings. DataFrames has dropmissing but regular Arrays don’t. How could it …

---

## [Waveform relaxation and other parallel in time integrators](https://discourse.julialang.org/t/waveform-relaxation-and-other-parallel-in-time-integrators/106754)

<div class="topic-metadata">

**Author:** [@RahulManavalan](https://discourse.julialang.org/u/RahulManavalan)\
**Replies:** 2\
**Last updated:** [November 26, 2023, 9:10pm UTC](https://discourse.julialang.org/t/waveform-relaxation-and-other-parallel-in-time-integrators/106754 "2023-11-26T21:10:05Z")

</div>

I am looking into waveform relaxation for my project. Based on a cursory search, it seems to me that there is no registered package specifically for waveform relaxation. I did find an old issue Parallel ODE Solvers · Iss…

---

## [Modelling non-continuous piecewise linear functions](https://discourse.julialang.org/t/modelling-non-continuous-piecewise-linear-functions/106743)

<div class="topic-metadata">

**Author:** [@Galois](https://discourse.julialang.org/u/Galois)\
**Replies:** 4\
**Last updated:** [November 26, 2023, 8:07pm UTC](https://discourse.julialang.org/t/modelling-non-continuous-piecewise-linear-functions/106743 "2023-11-26T20:07:34Z")

</div>

I have an optimization problem where the objective (and some of the constraints) contain piecewise linear functions. The problem is relatively large and my attempts at solving it with pyomo and SCIP have not been very su…

---

## [Error message when closing firefox on Linux](https://discourse.julialang.org/t/error-message-when-closing-firefox-on-linux/106758)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 1\
**Last updated:** [November 26, 2023, 7:31pm UTC](https://discourse.julialang.org/t/error-message-when-closing-firefox-on-linux/106758 "2023-11-26T19:31:28Z")

</div>

I am using this code to display my html documentation: function docu(build=true) @eval using LiveServer if build include("docs/make.jl") end Base.invokelatest(LiveServer.open\_in\_default\_browser, …

---

## [How to model a multiobjective program](https://discourse.julialang.org/t/how-to-model-a-multiobjective-program/106561)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 5\
**Last updated:** [November 26, 2023, 7:16pm UTC](https://discourse.julialang.org/t/how-to-model-a-multiobjective-program/106561 "2023-11-26T19:16:08Z")

</div>

In the following code, of which I do not report a long series of complicated constraints, I would like to be able to specify in the objective function also the fact that, together with the Min, sum(x\[2:nr,:,"G/\\\\N"\]), I …

---

## [Missing shared library file when pre-compiling](https://discourse.julialang.org/t/missing-shared-library-file-when-pre-compiling/104575)

<div class="topic-metadata">

**Author:** [@acnash](https://discourse.julialang.org/u/acnash)\
**Replies:** 12\
**Last updated:** [November 26, 2023, 6:26pm UTC](https://discourse.julialang.org/t/missing-shared-library-file-when-pre-compiling/104575 "2023-11-26T18:26:13Z")

</div>

Hi all, I’m new to Julia but “old” regarding software development. I’m trying to add the package BlackBoxOptim for some Julia code, but I’m having problems finding a shared C library file, “libmbedtls.so”. As far as I’m…

---

## [Solving Stochastic Differential Equations in Different Time Windows](https://discourse.julialang.org/t/solving-stochastic-differential-equations-in-different-time-windows/14807)

<div class="topic-metadata">

**Author:** [@zekeriya.sari](https://discourse.julialang.org/u/zekeriya.sari)\
**Replies:** 19\
**Last updated:** [November 26, 2023, 5:59pm UTC](https://discourse.julialang.org/t/solving-stochastic-differential-equations-in-different-time-windows/14807 "2023-11-26T17:59:23Z")

</div>

I want to solve a stochastic differential equation in different time windows under Wiener process, e.g., instead of solving the system for a time interval of (0, 2) seconds, I want to solve the system for a time duration…

---

## [It ain't easy making a high-performance game. I want to cry](https://discourse.julialang.org/t/it-aint-easy-making-a-high-performance-game-i-want-to-cry/106735)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 9\
**Last updated:** [November 26, 2023, 3:35pm UTC](https://discourse.julialang.org/t/it-aint-easy-making-a-high-performance-game-i-want-to-cry/106735 "2023-11-26T15:35:59Z")

</div>

Well, I dreamed of a game so immersive you could fight like movie characters fight, with lots of units, with complex character building, and so on. One aspect I need is a high-performance simulation of the game world. M…

---

## [Trouble defining hash/isequal for an interval type](https://discourse.julialang.org/t/trouble-defining-hash-isequal-for-an-interval-type/106629)

<div class="topic-metadata">

**Author:** [@rocco\_sprmnt21](https://discourse.julialang.org/u/rocco_sprmnt21)\
**Replies:** 7\
**Last updated:** [November 26, 2023, 2:58pm UTC](https://discourse.julialang.org/t/trouble-defining-hash-isequal-for-an-interval-type/106629 "2023-11-26T14:58:46Z")

</div>

I tried to practice on this topic, but evidently I still lack a lot of knowledge to be profitable. I would like to be able to merge the two dictionaries so that, for example, merge(da,db) ==db That is, having da and db…

---

## [PrecompileTools - how to disable output of @info](https://discourse.julialang.org/t/precompiletools-how-to-disable-output-of-info/106737)

<div class="topic-metadata">

**Author:** [@judober](https://discourse.julialang.org/u/judober)\
**Replies:** 3\
**Last updated:** [November 26, 2023, 11:57am UTC](https://discourse.julialang.org/t/precompiletools-how-to-disable-output-of-info/106737 "2023-11-26T11:57:22Z")

</div>

I try to implement precompilation with PrecompileTools. It works quite good now. However, in my compile\_workload() I have some code that uses @info "test" resulting in output during precompilation. I tried to remove the…

---

## [Would attribute inference be possible?](https://discourse.julialang.org/t/would-attribute-inference-be-possible/106723)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 12\
**Last updated:** [November 26, 2023, 11:59am UTC](https://discourse.julialang.org/t/would-attribute-inference-be-possible/106723 "2023-11-26T11:59:47Z")

</div>

@attributeInferredType Student end function main() s1 = Student() s2 = Student() s1.age = 19 s2.age = 20 s1.grade = 3.7 #Here, you have two instances of students, one with only attribute age, …

---

## [Julia equivalent of boost accumulator](https://discourse.julialang.org/t/julia-equivalent-of-boost-accumulator/106733)

<div class="topic-metadata">

**Author:** [@Yue-Zhengyuan](https://discourse.julialang.org/u/Yue-Zhengyuan)\
**Replies:** 3\
**Last updated:** [November 26, 2023, 10:15am UTC](https://discourse.julialang.org/t/julia-equivalent-of-boost-accumulator/106733 "2023-11-26T10:15:04Z")

</div>

Is there a Julia package similar to boost accumulator of C++? The boost accumulator can calculate the statistical properties (average, standard error, etc) of a data stream on the fly without storing all datas.

---

## [What's your "standard" Julia project toolkit?](https://discourse.julialang.org/t/whats-your-standard-julia-project-toolkit/106732)

<div class="topic-metadata">

**Author:** [@astra\_kawa](https://discourse.julialang.org/u/astra_kawa)\
**Replies:** 6\
**Last updated:** [November 26, 2023, 10:04am UTC](https://discourse.julialang.org/t/whats-your-standard-julia-project-toolkit/106732 "2023-11-26T10:04:43Z")

</div>

I’ve started a new job a couple months ago and have been using Julia recently for a project. I’m interested to learn what packages people always turn to/rely on for their general, day-to-day work. I want to expand my kno…

---

## [\[ANN\] ThreadedDenseSparseMul.jl](https://discourse.julialang.org/t/ann-threadeddensesparsemul-jl/106734)

<div class="topic-metadata">

**Author:** [@RomeoV](https://discourse.julialang.org/u/RomeoV)\
**Replies:** 0\
**Last updated:** [November 26, 2023, 9:38am UTC](https://discourse.julialang.org/t/ann-threadeddensesparsemul-jl/106734 "2023-11-26T09:38:51Z")

</div>

ThreadedDenseSparseMul.jl Threaded implementation of dense-sparse matrix multiplication, built on top of Polyester.jl. Hello all, I’ve recently had a need to do C \\leftarrow C - D \* S very fast, where D and S are den…

---

## [Import struct without changing its "scope"](https://discourse.julialang.org/t/import-struct-without-changing-its-scope/106529)

<div class="topic-metadata">

**Author:** [@Yue-Zhengyuan](https://discourse.julialang.org/u/Yue-Zhengyuan)\
**Replies:** 7\
**Last updated:** [November 22, 2023, 4:50am UTC](https://discourse.julialang.org/t/import-struct-without-changing-its-scope/106529 "2023-11-22T04:50:21Z")

</div>

I have problems on importing struct from other files. Suppose I have the file structure: - Lattices.jl - Hamiltonians.jl - main.jl Lattices.jl defines a struct called Lattice: module Lattices export Lattice struct La…

---

## [Unable to remove the smallest element from a Set](https://discourse.julialang.org/t/unable-to-remove-the-smallest-element-from-a-set/106726)

<div class="topic-metadata">

**Author:** [@StevenSiew](https://discourse.julialang.org/u/StevenSiew)\
**Replies:** 3\
**Last updated:** [November 26, 2023, 1:50am UTC](https://discourse.julialang.org/t/unable-to-remove-the-smallest-element-from-a-set/106726 "2023-11-26T01:50:59Z")

</div>

I have a set of Characters A to Z which are represented by int64 1,2,3…,26 in a set. I want to remove the smallest character A from the set but my code does not work and I could not figure out why """ Create a set of …

---

## [Creating a tensor (array) in the tensor product of super vector spaces](https://discourse.julialang.org/t/creating-a-tensor-array-in-the-tensor-product-of-super-vector-spaces/106657)

<div class="topic-metadata">

**Author:** [@Yue-Zhengyuan](https://discourse.julialang.org/u/Yue-Zhengyuan)\
**Replies:** 8\
**Last updated:** [November 26, 2023, 1:15am UTC](https://discourse.julialang.org/t/creating-a-tensor-array-in-the-tensor-product-of-super-vector-spaces/106657 "2023-11-26T01:15:54Z")

</div>

I want to create a custom array of arrays (each array is called a “block”) indexed by a list of 0 and 1’s. For example, suppose the array has 4 dimensions; then. The arrays are indexed by (0,0,0,0), (0,0,0,1), (0,0,1,0…

---

## [DimensionMismatch: matrix A has dimensions (100,10), matrix B has dimensions (1,7)](https://discourse.julialang.org/t/dimensionmismatch-matrix-a-has-dimensions-100-10-matrix-b-has-dimensions-1-7/106528)

<div class="topic-metadata">

**Author:** [@SimonHubert](https://discourse.julialang.org/u/SimonHubert)\
**Replies:** 5\
**Last updated:** [November 25, 2023, 11:17pm UTC](https://discourse.julialang.org/t/dimensionmismatch-matrix-a-has-dimensions-100-10-matrix-b-has-dimensions-1-7/106528 "2023-11-25T23:17:18Z")

</div>

Hello I have this problem with my neural network. I want to classify a 7 segment led digits. Problem is i get this error: DimensionMismatch: matrix A has dimensions (100,10), matrix B has dimensions (1,7) 1. \<mark\>\*\*\_…

---

## [Accessing to the dual variables, SDDP.jl](https://discourse.julialang.org/t/accessing-to-the-dual-variables-sddp-jl/106603)

<div class="topic-metadata">

**Author:** [@Sorooshsa](https://discourse.julialang.org/u/Sorooshsa)\
**Replies:** 5\
**Last updated:** [November 25, 2023, 10:42pm UTC](https://discourse.julialang.org/t/accessing-to-the-dual-variables-sddp-jl/106603 "2023-11-25T22:42:02Z")

</div>

Hi, Assume that our problem is two-staged and that there is no uncertainty in stage one. To solve that, we intend to employ Benders Decompsotion. The second stage of the problem itself is a multi-stage stochastic proble…

---

## [Turing Sampler remembering values from previous runs](https://discourse.julialang.org/t/turing-sampler-remembering-values-from-previous-runs/106715)

<div class="topic-metadata">

**Author:** [@stochastic\_guy](https://discourse.julialang.org/u/stochastic_guy)\
**Replies:** 0\
**Last updated:** [November 25, 2023, 6:58pm UTC](https://discourse.julialang.org/t/turing-sampler-remembering-values-from-previous-runs/106715 "2023-11-25T18:58:20Z")

</div>

Below I am trying to build a bayesian network model. As part of model checking, I was comparing the prior distribution to posterior distribution. For my model the posterior is same as prior, no change. But what’s weird i…

---

## [\[ANN\] DiffFusion.jl - High performance hybrid Monte Carlo simulation for finance](https://discourse.julialang.org/t/ann-difffusion-jl-high-performance-hybrid-monte-carlo-simulation-for-finance/106712)

<div class="topic-metadata">

**Author:** [@sschlenkrich](https://discourse.julialang.org/u/sschlenkrich)\
**Replies:** 0\
**Last updated:** [November 25, 2023, 5:59pm UTC](https://discourse.julialang.org/t/ann-difffusion-jl-high-performance-hybrid-monte-carlo-simulation-for-finance/106712 "2023-11-25T17:59:46Z")

</div>

We are happy to announce the release of DiffFusion.jl v0.3.0. The package implements a simulation framework for financial risk factors and financial instrument pricing. Simulations are based on multivariate diffusion mo…

---

## [Strange (to me, at least) result in string interpolation](https://discourse.julialang.org/t/strange-to-me-at-least-result-in-string-interpolation/106709)

<div class="topic-metadata">

**Author:** [@braamvandyk](https://discourse.julialang.org/u/braamvandyk)\
**Replies:** 2\
**Last updated:** [November 25, 2023, 5:34pm UTC](https://discourse.julialang.org/t/strange-to-me-at-least-result-in-string-interpolation/106709 "2023-11-25T17:34:39Z")

</div>

I stumbled across this today while debugging a little macro I am writing. If someone could explain this to me, I would really appreciate it. It’s not a problem for my code, but I’m quite curious to understand. My macro …

---

## [\<CTRL\>\<c\> on Windows](https://discourse.julialang.org/t/ctrl-c-on-windows/106707)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 5\
**Last updated:** [November 25, 2023, 4:16pm UTC](https://discourse.julialang.org/t/ctrl-c-on-windows/106707 "2023-11-25T16:16:35Z")

</div>

I am using the package LiveServer to display my documentation, using this function: function docu() @eval using LiveServer Base.invokelatest(servedocs, launch\_browser=true) end This works fine, but on Windows I…

---

## [Why are these people so skilled? If only I was stronger](https://discourse.julialang.org/t/why-are-these-people-so-skilled-if-only-i-was-stronger/106700)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 2\
**Last updated:** [November 25, 2023, 2:13pm UTC](https://discourse.julialang.org/t/why-are-these-people-so-skilled-if-only-i-was-stronger/106700 "2023-11-25T14:13:16Z")

</div>

A person made Minecraft in 2 days. Another made an entire physics engine. And then another who made an engine that literally simulates air to make sound. And another, an artificial life simulation. This channel m…

---

## [Is the 1.10. development stalled?](https://discourse.julialang.org/t/is-the-1-10-development-stalled/106660)

<div class="topic-metadata">

**Author:** [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Replies:** 6\
**Last updated:** [November 25, 2023, 1:32pm UTC](https://discourse.julialang.org/t/is-the-1-10-development-stalled/106660 "2023-11-25T13:32:18Z")

</div>

Since two weeks no commits to Backports for 1.10.0-rc2 by KristofferC · Pull Request #52045 · JuliaLang/julia · GitHub . Shall I learn how to back-port commits? Or are hard to reproduce GC issues blocking the progress? …

---

## [How can I use TimerOutputs.jl to time a function and its internal function calls in a package?](https://discourse.julialang.org/t/how-can-i-use-timeroutputs-jl-to-time-a-function-and-its-internal-function-calls-in-a-package/106702)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 1\
**Last updated:** [November 25, 2023, 10:00am UTC](https://discourse.julialang.org/t/how-can-i-use-timeroutputs-jl-to-time-a-function-and-its-internal-function-calls-in-a-package/106702 "2023-11-25T10:00:23Z")

</div>

From the doc of the TimerOutputs.jl, it is not clear how to use it for timing a function and its internal function calls in my developing packages. Normally, I will create a new environment outside of my package and writ…

---

## [Did Modular just reinvent Julia?](https://discourse.julialang.org/t/did-modular-just-reinvent-julia/98214)

<div class="topic-metadata">

**Author:** [@Phil\_Tomson](https://discourse.julialang.org/u/Phil_Tomson)\
**Replies:** 260\
**Last updated:** [November 25, 2023, 2:47am UTC](https://discourse.julialang.org/t/did-modular-just-reinvent-julia/98214 "2023-11-25T02:47:49Z")

</div>

…but with a more pythonic syntax: Mojo 🔥: Programming language for all of AI

---

## [Calling f(a) = f(a) correctly gives StackOverflowError but not f(a...) = f(a)](https://discourse.julialang.org/t/calling-f-a-f-a-correctly-gives-stackoverflowerror-but-not-f-a-f-a/106692)

<div class="topic-metadata">

**Author:** [@sadish-d](https://discourse.julialang.org/u/sadish-d)\
**Replies:** 17\
**Last updated:** [November 25, 2023, 4:53am UTC](https://discourse.julialang.org/t/calling-f-a-f-a-correctly-gives-stackoverflowerror-but-not-f-a-f-a/106692 "2023-11-25T04:53:34Z")

</div>

I start with this: VERSION == v"1.9.0" f(a::Int64) = nothing Now, If I define this method and call f(1.), I get a StackOverflowError. Makes sense.: f(a) = f(a) @code\_lowered f(1.) # CodeInfo( # 1 ─ %1 = Main.f(a) # └─…

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

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