# Specific Domains

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

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

**Page:** 167

---

## [TimesDates.jl dev for v2](https://discourse.julialang.org/t/timesdates-jl-dev-for-v2/78377)

<div class="topic-metadata">

**Author:** [@JeffreySarnoff](https://discourse.julialang.org/u/JeffreySarnoff)\
**Replies:** 44\
**Last updated:** [September 14, 2023, 3:50am UTC](https://discourse.julialang.org/t/timesdates-jl-dev-for-v2/78377 "2023-09-14T03:50:59Z")

</div>

I am working on a new version of TimesDates.jl using advancements that have become part of the Dates stdlib to simplify the implementation. Some of these improvements are accessible through non-exported specific element…

---

## [BilevelJump with mode=BilevelJuMP.BigMMode or mode=BilevelJuMP.FortunyAmatMcCarlMode](https://discourse.julialang.org/t/bileveljump-with-mode-bileveljump-bigmmode-or-mode-bileveljump-fortunyamatmccarlmode/103806)

<div class="topic-metadata">

**Author:** [@martina.gherardi](https://discourse.julialang.org/u/martina.gherardi)\
**Replies:** 2\
**Last updated:** [September 14, 2023, 2:26am UTC](https://discourse.julialang.org/t/bileveljump-with-mode-bileveljump-bigmmode-or-mode-bileveljump-fortunyamatmccarlmode/103806 "2023-09-14T02:26:10Z")

</div>

Hi, I would like to ask 2 questions about the reformulation of the complementary slackness with Fortuny-Amat and McCarl done by BilevelJump with the following setting mode=BilevelJuMP.BigMMode(; with\_slack = false, pri…

---

## [LLama2-7b difference in inference when between Float16 and Float32](https://discourse.julialang.org/t/llama2-7b-difference-in-inference-when-between-float16-and-float32/103826)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 1\
**Last updated:** [September 13, 2023, 10:58pm UTC](https://discourse.julialang.org/t/llama2-7b-difference-in-inference-when-between-float16-and-float32/103826 "2023-09-13T22:58:11Z")

</div>

Hello, I want to present the results of one more tests I wanted to do. I have noticed that llama2-7b gives weird (read incorrect) results when used with Float16. I have set-up a small test demostrating the behavior to n…

---

## [Curious about copying a model that has had constraints deleted](https://discourse.julialang.org/t/curious-about-copying-a-model-that-has-had-constraints-deleted/103814)

<div class="topic-metadata">

**Author:** [@hdavid16](https://discourse.julialang.org/u/hdavid16)\
**Replies:** 1\
**Last updated:** [September 13, 2023, 9:44pm UTC](https://discourse.julialang.org/t/curious-about-copying-a-model-that-has-had-constraints-deleted/103814 "2023-09-13T21:44:21Z")

</div>

Here is an interesting scenario. I’m playing around with how copy works in JuMP. #make dummy model m=Model(); @variable(m,x); c1=@constraint(m,x\<=10); c2=@constraint(m,x\<=100); delete(m,c1) delete(m,c2) #readd c…

---

## [Tips for improving performance of NODEs with sparsely sampled time series?](https://discourse.julialang.org/t/tips-for-improving-performance-of-nodes-with-sparsely-sampled-time-series/103828)

<div class="topic-metadata">

**Author:** [@jarroyoe](https://discourse.julialang.org/u/jarroyoe)\
**Replies:** 1\
**Last updated:** [September 13, 2023, 8:46pm UTC](https://discourse.julialang.org/t/tips-for-improving-performance-of-nodes-with-sparsely-sampled-time-series/103828 "2023-09-13T20:46:41Z")

</div>

I have a synthetic time series coming from a model with a daily time scale. The real dynamics closely follow a sine function, but I’m trying to sample at a monthly time scale (every 30 time steps). A sample time series l…

---

## [How to plot a 3D contour surface with Makie](https://discourse.julialang.org/t/how-to-plot-a-3d-contour-surface-with-makie/103822)

<div class="topic-metadata">

**Author:** [@yhchang96](https://discourse.julialang.org/u/yhchang96)\
**Replies:** 2\
**Last updated:** [September 13, 2023, 8:31pm UTC](https://discourse.julialang.org/t/how-to-plot-a-3d-contour-surface-with-makie/103822 "2023-09-13T20:31:58Z")

</div>

Suppose I want to plot the solution to the equation -x^3+r\*x+h=0 in 3D, with r and h on the X-Y plane, and x as the z-axis to demonstrate the cusp catastrophe in bifurcation. In Mathematica, I have something like this: …

---

## [Gradient of llama2 computed by Zygote seems to be incorrect](https://discourse.julialang.org/t/gradient-of-llama2-computed-by-zygote-seems-to-be-incorrect/103810)

<div class="topic-metadata">

**Author:** [@Tomas\_Pevny](https://discourse.julialang.org/u/Tomas_Pevny)\
**Replies:** 6\
**Last updated:** [September 13, 2023, 7:35pm UTC](https://discourse.julialang.org/t/gradient-of-llama2-computed-by-zygote-seems-to-be-incorrect/103810 "2023-09-13T19:35:49Z")

</div>

Hi, I have tested gradient of llama2-7b model with respect its input and it gives me wrong results (tested only on GPU). I have created a MWE as follows using ProfileSummarizer using Transformers using Flux using TextE…

---

## [Keep track of order of graph edges when iterating over them](https://discourse.julialang.org/t/keep-track-of-order-of-graph-edges-when-iterating-over-them/103759)

<div class="topic-metadata">

**Author:** [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Replies:** 11\
**Last updated:** [September 13, 2023, 6:39pm UTC](https://discourse.julialang.org/t/keep-track-of-order-of-graph-edges-when-iterating-over-them/103759 "2023-09-13T18:39:40Z")

</div>

I have a piece of code where I might want to convert Graphs to DiGraphs. However, I need to keep track of where the edges are (so that for the edge connecting vertices 1 and 2 in the original graph, I know where 1 =\> 2 a…

---

## [Comparing time series with lead/lag tolerances](https://discourse.julialang.org/t/comparing-time-series-with-lead-lag-tolerances/99227)

<div class="topic-metadata">

**Author:** [@airpmb](https://discourse.julialang.org/u/airpmb)\
**Replies:** 2\
**Last updated:** [September 13, 2023, 2:55pm UTC](https://discourse.julialang.org/t/comparing-time-series-with-lead-lag-tolerances/99227 "2023-09-13T14:55:41Z")

</div>

Is anyone aware of a Julia package that implements testing of time series output against baselines? By this I mean that I’d like to be able to compare simulation outputs over time against some “truth model” equivalent o…

---

## [Conditional Constraint Construction Based on Input Data Presence/Absence of Set Combinations in Julia JUMP](https://discourse.julialang.org/t/conditional-constraint-construction-based-on-input-data-presence-absence-of-set-combinations-in-julia-jump/103717)

<div class="topic-metadata">

**Author:** [@Dimi](https://discourse.julialang.org/u/Dimi)\
**Replies:** 6\
**Last updated:** [September 12, 2023, 9:03pm UTC](https://discourse.julialang.org/t/conditional-constraint-construction-based-on-input-data-presence-absence-of-set-combinations-in-julia-jump/103717 "2023-09-12T21:03:20Z")

</div>

Hello everyone. I am currently transitioning from GAMS optimisation to Julia optimisation (in VScode) and trying to figure out the “optimal/fastest” way of constructing conditional constraints based on the presence (or a…

---

## [Out of memory when using Makie with large images](https://discourse.julialang.org/t/out-of-memory-when-using-makie-with-large-images/103786)

<div class="topic-metadata">

**Author:** [@klafyvel](https://discourse.julialang.org/u/klafyvel)\
**Replies:** 2\
**Last updated:** [September 12, 2023, 8:02pm UTC](https://discourse.julialang.org/t/out-of-memory-when-using-makie-with-large-images/103786 "2023-09-12T20:02:07Z")

</div>

Hi, I’m having a problem with a big memory footprint when using CairoMakie to plot big images in the REPL. The code consists of loading four images with load and then plotting them using image! (no treatment whatsoever,…

---

## [Reading and writing Arrow column metadata](https://discourse.julialang.org/t/reading-and-writing-arrow-column-metadata/102427)

<div class="topic-metadata">

**Author:** [@Jake](https://discourse.julialang.org/u/Jake)\
**Replies:** 9\
**Last updated:** [September 12, 2023, 6:52pm UTC](https://discourse.julialang.org/t/reading-and-writing-arrow-column-metadata/102427 "2023-09-12T18:52:27Z")

</div>

I am trying to read and write column metadata for the arrow format. I went to the Arrow, runtest.jl file to try to figure it out, but still am having troubles. If someone can get the MWE working it will help me along. …

---

## [How can I training one function at the time with NeuralPDE?](https://discourse.julialang.org/t/how-can-i-training-one-function-at-the-time-with-neuralpde/103398)

<div class="topic-metadata">

**Author:** [@Knud\_Sorensen](https://discourse.julialang.org/u/Knud_Sorensen)\
**Replies:** 3\
**Last updated:** [September 12, 2023, 6:32pm UTC](https://discourse.julialang.org/t/how-can-i-training-one-function-at-the-time-with-neuralpde/103398 "2023-09-12T18:32:25Z")

</div>

If you have 2 or more functions as Neural nets, say f and g. And they are coupled by a differential equation. And we already idea how f should look like say we have a mock function f\_m for f How would I? Train f to …

---

## [Error when using Unitful and MonteCarloMeasurements with DifferentialEquations](https://discourse.julialang.org/t/error-when-using-unitful-and-montecarlomeasurements-with-differentialequations/103464)

<div class="topic-metadata">

**Author:** [@rwalters31](https://discourse.julialang.org/u/rwalters31)\
**Replies:** 4\
**Last updated:** [September 12, 2023, 6:26pm UTC](https://discourse.julialang.org/t/error-when-using-unitful-and-montecarlomeasurements-with-differentialequations/103464 "2023-09-12T18:26:42Z")

</div>

I am trying to use both Unitful and MonteCarloMeasurements with DifferentialEquations to better understand the impact of uncertainty on a second order ODE. Using either Untiful or MonteCarloMeasurements alone with Diffe…

---

## [Scaling Independent Variables in Composed \`ODESystem\`s](https://discourse.julialang.org/t/scaling-independent-variables-in-composed-odesystem-s/103431)

<div class="topic-metadata">

**Author:** [@cadojo](https://discourse.julialang.org/u/cadojo)\
**Replies:** 1\
**Last updated:** [September 12, 2023, 5:34pm UTC](https://discourse.julialang.org/t/scaling-independent-variables-in-composed-odesystem-s/103431 "2023-09-12T17:34:39Z")

</div>

I have code that implements the nondimensional form of a simplified three-body problem. The length units are scaled by the distance between the two celestial bodies, a, and the time units are scaled by the orbital period…

---

## [OptimizationOptimJL: single function returning objective and gradients](https://discourse.julialang.org/t/optimizationoptimjl-single-function-returning-objective-and-gradients/103704)

<div class="topic-metadata">

**Author:** [@james3](https://discourse.julialang.org/u/james3)\
**Replies:** 2\
**Last updated:** [September 12, 2023, 5:33pm UTC](https://discourse.julialang.org/t/optimizationoptimjl-single-function-returning-objective-and-gradients/103704 "2023-09-12T17:33:12Z")

</div>

I am using OptimizationOptimJL, and wish to supply my own gradients. There are many common calculations that are shared when evaluating the objective function, and the gradients, so I wish to have a single function that …

---

## [Do we have differentiable sort in Julia?](https://discourse.julialang.org/t/do-we-have-differentiable-sort-in-julia/102713)

<div class="topic-metadata">

**Author:** [@pat-alt](https://discourse.julialang.org/u/pat-alt)\
**Replies:** 14\
**Last updated:** [September 12, 2023, 11:47am UTC](https://discourse.julialang.org/t/do-we-have-differentiable-sort-in-julia/102713 "2023-09-12T11:47:04Z")

</div>

Python has support for fast differentiable sorting which is an implementation of Blondel et al. (2020). I don’t think we have this in Julia at the moment? I have specific use case for ConformalPrediction.jl, but beyond …

---

## [Objective function value for all the points in the feasible region](https://discourse.julialang.org/t/objective-function-value-for-all-the-points-in-the-feasible-region/103772)

<div class="topic-metadata">

**Author:** [@Gagan\_Meena](https://discourse.julialang.org/u/Gagan_Meena)\
**Replies:** 9\
**Last updated:** [September 12, 2023, 9:37am UTC](https://discourse.julialang.org/t/objective-function-value-for-all-the-points-in-the-feasible-region/103772 "2023-09-12T09:37:57Z")

</div>

How can we find out the objective function value for all the points in the feasible region for a complex optimization problem using JuMP? Is there a built-in method for doing so? If yes, then please specify the same. I…

---

## [Using JuMP variables and expressions in conditional statements](https://discourse.julialang.org/t/using-jump-variables-and-expressions-in-conditional-statements/103414)

<div class="topic-metadata">

**Author:** [@AshwinSandeep1](https://discourse.julialang.org/u/AshwinSandeep1)\
**Replies:** 27\
**Last updated:** [September 12, 2023, 3:35am UTC](https://discourse.julialang.org/t/using-jump-variables-and-expressions-in-conditional-statements/103414 "2023-09-12T03:35:52Z")

</div>

Hi all I am trying to construct conditioinal statements using the @NLexpression macro but it seems expressions and even variables can’t be used in this context. Is there a way to do this? My aim is to do the following: …

---

## [Makie: Multiple lines in a loop](https://discourse.julialang.org/t/makie-multiple-lines-in-a-loop/103738)

<div class="topic-metadata">

**Author:** [@Matthias\_Delescluse](https://discourse.julialang.org/u/Matthias_Delescluse)\
**Replies:** 2\
**Last updated:** [September 11, 2023, 9:36pm UTC](https://discourse.julialang.org/t/makie-multiple-lines-in-a-loop/103738 "2023-09-11T21:36:30Z")

</div>

Hello! I am plotting several lines in a Makie Figure this way: p1=lines!(positions1) p2=lines!(positions2) … I need to access p$i after that, and I may have to display ten of them. I’d like to have these lines! in a…

---

## [Is there a way to display DataFrame with horizontal line for every row?](https://discourse.julialang.org/t/is-there-a-way-to-display-dataframe-with-horizontal-line-for-every-row/103719)

<div class="topic-metadata">

**Author:** [@huang\_min](https://discourse.julialang.org/u/huang_min)\
**Replies:** 7\
**Last updated:** [September 11, 2023, 8:25pm UTC](https://discourse.julialang.org/t/is-there-a-way-to-display-dataframe-with-horizontal-line-for-every-row/103719 "2023-09-11T20:25:10Z")

</div>

I am doing some exploration on the screen for my dataframe with about 10 columns. Is there a way to print the table on the screen with horizontal line for every row just like a latex table? I could not find this option i…

---

## [Plots.jl custom cycler for color, linestyle, markershape... etc?](https://discourse.julialang.org/t/plots-jl-custom-cycler-for-color-linestyle-markershape-etc/103743)

<div class="topic-metadata">

**Author:** [@abehersan](https://discourse.julialang.org/u/abehersan)\
**Replies:** 0\
**Last updated:** [September 11, 2023, 3:38pm UTC](https://discourse.julialang.org/t/plots-jl-custom-cycler-for-color-linestyle-markershape-etc/103743 "2023-09-11T15:38:59Z")

</div>

In matplotlib for example, I have a line in my my\_style.rc file that reads axes.prop\_cycle: (cycler('color', \["5f4b8bff","009874ff","9b2335ff","0f4c81ff","dd4124ff","efc050ff","c3447aff"\]) + cycler("ls", \["-", "--", "-.…

---

## [How to read .gdx files in Julia?](https://discourse.julialang.org/t/how-to-read-gdx-files-in-julia/103575)

<div class="topic-metadata">

**Author:** [@Iheb](https://discourse.julialang.org/u/Iheb)\
**Replies:** 2\
**Last updated:** [September 10, 2023, 10:33pm UTC](https://discourse.julialang.org/t/how-to-read-gdx-files-in-julia/103575 "2023-09-10T22:33:36Z")

</div>

I have a Multistage SP written in GAMS and I want to exchange data between GAMS and Julia via gdx files (Maybe another method if there exists any). I tried using GAMS.jl but it what it does is just convert the model wri…

---

## [Examples of FINUFFT?](https://discourse.julialang.org/t/examples-of-finufft/103708)

<div class="topic-metadata">

**Author:** [@erny123](https://discourse.julialang.org/u/erny123)\
**Replies:** 4\
**Last updated:** [September 9, 2023, 9:51pm UTC](https://discourse.julialang.org/t/examples-of-finufft/103708 "2023-09-09T21:51:16Z")

</div>

I’m trying to learn some basic Non-Uniform FFT. I want to see if I can get a frequency spectrum of a laser pulse with a NUFFT type 1 using the FINUFFT.jl library. Here’s the example: using FFTW using FINUFFT c = 2.99…

---

## [NonlinearSolve.jl and Optimization.jl conflict on install](https://discourse.julialang.org/t/nonlinearsolve-jl-and-optimization-jl-conflict-on-install/103707)

<div class="topic-metadata">

**Author:** [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Replies:** 1\
**Last updated:** [September 9, 2023, 7:57pm UTC](https://discourse.julialang.org/t/nonlinearsolve-jl-and-optimization-jl-conflict-on-install/103707 "2023-09-09T19:57:14Z")

</div>

Tried on an Mac M1 and on Windows, also on (initially) empty package. Whatever of these two I install first, on installation of the second one I get error like this: (OptimizationInd) pkg\> add NonlinearSolve Resolvin…

---

## [How to plot 3-dimensional "IntervalBox()"?](https://discourse.julialang.org/t/how-to-plot-3-dimensional-intervalbox/103698)

<div class="topic-metadata">

**Author:** [@Ashu](https://discourse.julialang.org/u/Ashu)\
**Replies:** 1\
**Last updated:** [September 9, 2023, 2:24pm UTC](https://discourse.julialang.org/t/how-to-plot-3-dimensional-intervalbox/103698 "2023-09-09T14:24:52Z")

</div>

Hello, Let’s say there is a box = IntervalBox(1..2, 2..3, 3..4). How can I plot it in Pluto.jl notebook? I am using IntervalArithmetic.jl and Plots.jl packages. The code block is not working for me. begin box = Inte…

---

## [Generalized matrix\*vector operation](https://discourse.julialang.org/t/generalized-matrix-vector-operation/103683)

<div class="topic-metadata">

**Author:** [@SantiagoOrtiz](https://discourse.julialang.org/u/SantiagoOrtiz)\
**Replies:** 1\
**Last updated:** [September 9, 2023, 1:32am UTC](https://discourse.julialang.org/t/generalized-matrix-vector-operation/103683 "2023-09-09T01:32:10Z")

</div>

Hi everyone, Take the following matrix and vector: vij = \[-2 -2 -2; 1 0 0; 0 1 0; 0 0 1; 1 1 1\] xj = \[0.1 0.15 0.1\] This operation will work, resulting in a vector (as expected): vij\*xj' However, if the matrix is re…

---

## [Is periodic boundary conditions posible in NeuralPDE.jl?](https://discourse.julialang.org/t/is-periodic-boundary-conditions-posible-in-neuralpde-jl/103674)

<div class="topic-metadata">

**Author:** [@Knud\_Sorensen](https://discourse.julialang.org/u/Knud_Sorensen)\
**Replies:** 1\
**Last updated:** [September 8, 2023, 3:24pm UTC](https://discourse.julialang.org/t/is-periodic-boundary-conditions-posible-in-neuralpde-jl/103674 "2023-09-08T15:24:29Z")

</div>

Hi. With NeuralPDE i have this conditions. L=10 bcs0 = \[G(x,y,0)~0, G(-L,y,z)~G(L,y,z), G(x,-L,z)~G(x,L,z)\] I get loss like 0 loss: 67.44680398772921 pde: \[0.8533529399741632, 1.3552322555600897, 20.41989735134126\] b…

---

## [Custom train function in SimpleChains.jl](https://discourse.julialang.org/t/custom-train-function-in-simplechains-jl/103663)

<div class="topic-metadata">

**Author:** [@Luca\_Pepe\_Sciarria](https://discourse.julialang.org/u/Luca_Pepe_Sciarria)\
**Replies:** 0\
**Last updated:** [September 8, 2023, 12:30pm UTC](https://discourse.julialang.org/t/custom-train-function-in-simplechains-jl/103663 "2023-09-08T12:30:31Z")

</div>

Hi SimpleChains team! I’m currently using SimpleChains and I want to implement my own train function based on the available template in Flux: for d in training\_set # Our super logic gs = gradient(params(m)) do …

---

## [How to add value labels on top of contours in Makie?](https://discourse.julialang.org/t/how-to-add-value-labels-on-top-of-contours-in-makie/59242)

<div class="topic-metadata">

**Author:** [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Replies:** 10\
**Last updated:** [September 8, 2023, 11:18am UTC](https://discourse.julialang.org/t/how-to-add-value-labels-on-top-of-contours-in-makie/59242 "2023-09-08T11:18:38Z")

</div>

The documentation example shows that we can create a contour plot with: using CairoMakie f = Figure(resolution = (800, 600)) Axis(f\[1, 1\]) xs = LinRange(0, 10, 100) ys = LinRange(0, 15, 100) zs = \[cos(x) \* sin(y) for …

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

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