# Specific Domains

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

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

**Page:** 80

---

## [Lux.jl with GPU error](https://discourse.julialang.org/t/lux-jl-with-gpu-error/121060)

<div class="topic-metadata">

**Author:** [@Sushrut\_Deshpande](https://discourse.julialang.org/u/Sushrut_Deshpande)\
**Replies:** 3\
**Last updated:** [October 10, 2024, 7:25pm UTC](https://discourse.julialang.org/t/lux-jl-with-gpu-error/121060 "2024-10-10T19:25:53Z")

</div>

Hello, I have a toy problem to fit a NN for sin(x) using the GPU for Lux.jl - LuxCUDA.jl Here is the code I am running (very similar to the documentation): using Lux, Optimisers,Zygote, Random using LuxCUDA x = rand…

---

## [Makie - scene transformation not persisting](https://discourse.julialang.org/t/makie-scene-transformation-not-persisting/121157)

<div class="topic-metadata">

**Author:** [@p\_f](https://discourse.julialang.org/u/p_f)\
**Replies:** 6\
**Last updated:** [October 10, 2024, 7:12pm UTC](https://discourse.julialang.org/t/makie-scene-transformation-not-persisting/121157 "2024-10-10T19:12:22Z")

</div>

I’ve been trying to use transformation so I can change one property of an Axis3 without rotating all the content individually. I have this function: function rotate\_axis(ax::Axis3) ax.scene.transformation.rotation\[…

---

## [Pre-processing time and Mosek Solve inordinately long](https://discourse.julialang.org/t/pre-processing-time-and-mosek-solve-inordinately-long/119783)

<div class="topic-metadata">

**Author:** [@ilovemath](https://discourse.julialang.org/u/ilovemath)\
**Replies:** 13\
**Last updated:** [October 10, 2024, 4:44pm UTC](https://discourse.julialang.org/t/pre-processing-time-and-mosek-solve-inordinately-long/119783 "2024-10-10T16:44:28Z")

</div>

I have converted a YALMIP sum-of-squares optimization code to a Julia sum-of-squares optimization code. The base level of the code, from which I want to expand, seems to produce similar-sized problems in Julia and YALMI…

---

## [How to make poly prettier in Makie and Geomakie?](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146)

<div class="topic-metadata">

**Author:** [@HenriDeh](https://discourse.julialang.org/u/HenriDeh)\
**Replies:** 5\
**Last updated:** [October 10, 2024, 4:31pm UTC](https://discourse.julialang.org/t/how-to-make-poly-prettier-in-makie-and-geomakie/121146 "2024-10-10T16:31:55Z")

</div>

Hello, I made this map of Germany using geometric data for polygons that draw its districts. Then on top I plotted a pipeline network with arrows and scatter points. In that order. However, the result is quite ugly be…

---

## [Simplex tableau from Gurobi](https://discourse.julialang.org/t/simplex-tableau-from-gurobi/121080)

<div class="topic-metadata">

**Author:** [@wahadhasan](https://discourse.julialang.org/u/wahadhasan)\
**Replies:** 1\
**Last updated:** [October 9, 2024, 4:33am UTC](https://discourse.julialang.org/t/simplex-tableau-from-gurobi/121080 "2024-10-09T04:33:23Z")

</div>

Hi there, is there anyway to get the optimal simplex tableau from Gurobi? I checked this link (CPLEX) but unfortunately could not reach to the tableau it supposed to be. Any suggestions will be of great help. Gather Opt…

---

## [How to use KNITRO on Ubuntu?](https://discourse.julialang.org/t/how-to-use-knitro-on-ubuntu/120968)

<div class="topic-metadata">

**Author:** [@kevinqiao](https://discourse.julialang.org/u/kevinqiao)\
**Replies:** 5\
**Last updated:** [October 10, 2024, 12:08pm UTC](https://discourse.julialang.org/t/how-to-use-knitro-on-ubuntu/120968 "2024-10-10T12:08:58Z")

</div>

I’m using JuMP and KNITRO on Ubuntu (Remote), the solver KNITRO has been installed successfully, and KNITRO.jl is installed as well, the env command KNITRODIR and LD\_LIBRARY\_PATH are set, building KNITRO is successful, b…

---

## [Specific Dom](https://discourse.julialang.org/t/specific-dom/121140)

<div class="topic-metadata">

**Author:** [@finmod](https://discourse.julialang.org/u/finmod)\
**Replies:** 1\
**Last updated:** [October 10, 2024, 12:08pm UTC](https://discourse.julialang.org/t/specific-dom/121140 "2024-10-10T12:08:55Z")

</div>

Bringing sfctools for economic agents in python to Agents.jl Is Agents.jl able to create and simulate economic agents as in: Economic Agents — sfctools documentation

---

## [MTK & units: how to specify unit for time?](https://discourse.julialang.org/t/mtk-units-how-to-specify-unit-for-time/121138)

<div class="topic-metadata">

**Author:** [@BLI](https://discourse.julialang.org/u/BLI)\
**Replies:** 2\
**Last updated:** [October 10, 2024, 11:41am UTC](https://discourse.julialang.org/t/mtk-units-how-to-specify-unit-for-time/121138 "2024-10-10T11:41:30Z")

</div>

I’ve started to experiments with units for models. My question is probably related to how I can specify units for time when I do: using ModelingToolkit: t\_nounits as t, D\_nounits as Dt How can I specify unit for t so …

---

## [Error when compiling linear integer programming problem](https://discourse.julialang.org/t/error-when-compiling-linear-integer-programming-problem/71121)

<div class="topic-metadata">

**Author:** [@jyscao](https://discourse.julialang.org/u/jyscao)\
**Replies:** 11\
**Last updated:** [October 10, 2024, 7:24am UTC](https://discourse.julialang.org/t/error-when-compiling-linear-integer-programming-problem/71121 "2024-10-10T07:24:25Z")

</div>

I’m trying to solve an optimization problem described in the following Stats SE question: https://stats.stackexchange.com/questions/544065/how-to-fit-data-to-a-discrete-linear-model Currently I’m using the COSMO.jl sol…

---

## [Help with slow Turing.jl inference speeds for large number of observations](https://discourse.julialang.org/t/help-with-slow-turing-jl-inference-speeds-for-large-number-of-observations/119332)

<div class="topic-metadata">

**Author:** [@hbooth](https://discourse.julialang.org/u/hbooth)\
**Replies:** 3\
**Last updated:** [October 9, 2024, 10:06pm UTC](https://discourse.julialang.org/t/help-with-slow-turing-jl-inference-speeds-for-large-number-of-observations/119332 "2024-10-09T22:06:11Z")

</div>

Hi all, I am new to Turing.jl and bayesian inference in general. I have specified the following model: @model function switch\_model(r, m, n) hm ~ Uniform(1, 10) am ~ Uniform(0, 10) κm ~ Uniform(0, 1) Δ…

---

## [Streamplots added to Plots.jl?](https://discourse.julialang.org/t/streamplots-added-to-plots-jl/121116)

<div class="topic-metadata">

**Author:** [@rsenne](https://discourse.julialang.org/u/rsenne)\
**Replies:** 0\
**Last updated:** [October 9, 2024, 6:16pm UTC](https://discourse.julialang.org/t/streamplots-added-to-plots-jl/121116 "2024-10-09T18:16:47Z")

</div>

I found this thread from a few years ago on streamplots: Anyone know if this feature has since been added? No hate to makie, its a great library, just would prefer to use a single plotting library if possible.

---

## [Enzyme: Autodiff Functor which contains cache](https://discourse.julialang.org/t/enzyme-autodiff-functor-which-contains-cache/121105)

<div class="topic-metadata">

**Author:** [@hexaeder](https://discourse.julialang.org/u/hexaeder)\
**Replies:** 2\
**Last updated:** [October 9, 2024, 1:41pm UTC](https://discourse.julialang.org/t/enzyme-autodiff-functor-which-contains-cache/121105 "2024-10-09T13:41:38Z")

</div>

Hello, I have a RHS of an ODE in the form of a Functor which includes some caches, which i am trying to make Enzym compatible. Heres an MWE of the problem using Pkg pkg"activate --temp" pkg"add Enzyme, ForwardDiff, Pre…

---

## [Pattern for splitting the state vector over multiple objects](https://discourse.julialang.org/t/pattern-for-splitting-the-state-vector-over-multiple-objects/121072)

<div class="topic-metadata">

**Author:** [@evan-wehi](https://discourse.julialang.org/u/evan-wehi)\
**Replies:** 0\
**Last updated:** [October 8, 2024, 11:28pm UTC](https://discourse.julialang.org/t/pattern-for-splitting-the-state-vector-over-multiple-objects/121072 "2024-10-08T23:28:31Z")

</div>

I’m writing a library that will be used to test ideas in immune cell population dynamics. A characteristic of this biology is that the population size, and hence the state vector length, can vary by orders of magnitude o…

---

## [The box problem](https://discourse.julialang.org/t/the-box-problem/120794)

<div class="topic-metadata">

**Author:** [@mthelm85](https://discourse.julialang.org/u/mthelm85)\
**Replies:** 10\
**Last updated:** [October 8, 2024, 10:43pm UTC](https://discourse.julialang.org/t/the-box-problem/120794 "2024-10-08T22:43:39Z")

</div>

I just read this article: and I am not arriving at the same conclusion. Here’s the quick and dirty code I came up with to test it: using StatsBase function row\_wise() boxes = zeros(3,5) for \_ in 1:2 b…

---

## [Unobservable linearized model in ModelPredictiveControl.jl](https://discourse.julialang.org/t/unobservable-linearized-model-in-modelpredictivecontrol-jl/121052)

<div class="topic-metadata">

**Author:** [@Bart\_van\_de\_Lint](https://discourse.julialang.org/u/Bart_van_de_Lint)\
**Replies:** 7\
**Last updated:** [October 8, 2024, 3:57pm UTC](https://discourse.julialang.org/t/unobservable-linearized-model-in-modelpredictivecontrol-jl/121052 "2024-10-08T15:57:25Z")

</div>

I have a model that I am trying to linearize around x\_0 in order to use a linear MPC in ModelPredictiveControl.jl. println("linearize") linmodel = ModelPredictiveControl.linearize(model; x=x\_0) println("sim") u = \[100,…

---

## [Accuracy of TRBDF2 vs matlab's ode23tb?](https://discourse.julialang.org/t/accuracy-of-trbdf2-vs-matlabs-ode23tb/120801)

<div class="topic-metadata">

**Author:** [@pulk\_jain](https://discourse.julialang.org/u/pulk_jain)\
**Replies:** 15\
**Last updated:** [October 8, 2024, 10:17am UTC](https://discourse.julialang.org/t/accuracy-of-trbdf2-vs-matlabs-ode23tb/120801 "2024-10-08T10:17:52Z")

</div>

I noticed that trbdf2 solved my system the fastest but was much less accurate than matlab’s ode23tb. Some derivatives that should be zero are somehow non-zero even 100s of steps later. By this I mean, du\[m:n\]=0 from sol…

---

## [Center Axis in Plot](https://discourse.julialang.org/t/center-axis-in-plot/121015)

<div class="topic-metadata">

**Author:** [@jamesmulhern](https://discourse.julialang.org/u/jamesmulhern)\
**Replies:** 4\
**Last updated:** [October 8, 2024, 9:04am UTC](https://discourse.julialang.org/t/center-axis-in-plot/121015 "2024-10-08T09:04:59Z")

</div>

Does anyone know how to center the axis window when using Plots.jl and the default backend (GR?) I have been working though all of the attributes and I cannot get it to have equal margins on both sides. I have set marg…

---

## [Cannot save plots](https://discourse.julialang.org/t/cannot-save-plots/121009)

<div class="topic-metadata">

**Author:** [@brandonlivio](https://discourse.julialang.org/u/brandonlivio)\
**Replies:** 2\
**Last updated:** [October 8, 2024, 7:40am UTC](https://discourse.julialang.org/t/cannot-save-plots/121009 "2024-10-08T07:40:15Z")

</div>

I cannot save a plot on Julia. The following code using Plots plot(1:10) savefig("test.png") returns GKS: dlopen(/Users/brandonlivio/.julia/artifacts/4cab0d575711b60d292e4bd3088c55d27752a8ea/lib/cairoplugin.so, 1): Li…

---

## [Expectation-Maximization for Kalman Filter with Continuous State Variables](https://discourse.julialang.org/t/expectation-maximization-for-kalman-filter-with-continuous-state-variables/120983)

<div class="topic-metadata">

**Author:** [@adannenberg](https://discourse.julialang.org/u/adannenberg)\
**Replies:** 3\
**Last updated:** [October 8, 2024, 6:54am UTC](https://discourse.julialang.org/t/expectation-maximization-for-kalman-filter-with-continuous-state-variables/120983 "2024-10-08T06:54:33Z")

</div>

I would like to use a Kalman Filter + the EM algorithm to fit model parameters for a Hidden Markov Model with continuous hidden state variables, and then use the Kalman filter for prediction using the fitted parameters. …

---

## [Measure in arbitrary bases - how to find quantum gates](https://discourse.julialang.org/t/measure-in-arbitrary-bases-how-to-find-quantum-gates/120923)

<div class="topic-metadata">

**Author:** [@yao\_novice](https://discourse.julialang.org/u/yao_novice)\
**Replies:** 4\
**Last updated:** [October 8, 2024, 2:19am UTC](https://discourse.julialang.org/t/measure-in-arbitrary-bases-how-to-find-quantum-gates/120923 "2024-10-08T02:19:50Z")

</div>

I have a qubit |ψ⟩ and I want it to measure in bell states. My procedure is now to calculate the transformation matrix U=Σ|i⟩⟨b\_i| where |i⟩ is the computation basis and ⟨b\_i| are the bell states. It works so far. The …

---

## [Simple Model using ModelingToolkit and Clapeyron failing](https://discourse.julialang.org/t/simple-model-using-modelingtoolkit-and-clapeyron-failing/120874)

<div class="topic-metadata">

**Author:** [@JarodMcCormick](https://discourse.julialang.org/u/JarodMcCormick)\
**Replies:** 5\
**Last updated:** [October 7, 2024, 11:57pm UTC](https://discourse.julialang.org/t/simple-model-using-modelingtoolkit-and-clapeyron-failing/120874 "2024-10-07T23:57:01Z")

</div>

I’ve been working on implementing some simple models utilizing both ModelingToolkit and Clapeyron. I put together this simple model of a generic compressor: using ModelingToolkit, NonlinearSolve using Clapeyron model =…

---

## [How to draw a graph with GraphMakie and remove whitespace around it?](https://discourse.julialang.org/t/how-to-draw-a-graph-with-graphmakie-and-remove-whitespace-around-it/121008)

<div class="topic-metadata">

**Author:** [@Xing\_Shi\_Cai](https://discourse.julialang.org/u/Xing_Shi_Cai)\
**Replies:** 4\
**Last updated:** [October 7, 2024, 8:02pm UTC](https://discourse.julialang.org/t/how-to-draw-a-graph-with-graphmakie-and-remove-whitespace-around-it/121008 "2024-10-07T20:02:49Z")

</div>

There is an example in GraphMakie.jl using CairoMakie using GraphMakie using Graphs g = wheel\_graph(10) f, ax, p = graphplot(g) hidedecorations!(ax); hidespines!(ax) ax.aspect = DataAspect() The result is a picture li…

---

## [Reformulating optimization problem with normalization constraints](https://discourse.julialang.org/t/reformulating-optimization-problem-with-normalization-constraints/121017)

<div class="topic-metadata">

**Author:** [@legio](https://discourse.julialang.org/u/legio)\
**Replies:** 3\
**Last updated:** [October 7, 2024, 6:27pm UTC](https://discourse.julialang.org/t/reformulating-optimization-problem-with-normalization-constraints/121017 "2024-10-07T18:27:37Z")

</div>

Hi! I’m pretty new to julia and optimization, and I’m trying to set up a optimization problem over a decision variable X \\in \\mathbb{R}^{m \\times n} that would semantically capture assignment of “targets” in the rows of …

---

## [How do i format my vector function correct for ploting with quiver?](https://discourse.julialang.org/t/how-do-i-format-my-vector-function-correct-for-ploting-with-quiver/121019)

<div class="topic-metadata">

**Author:** [@Knud\_Sorensen](https://discourse.julialang.org/u/Knud_Sorensen)\
**Replies:** 1\
**Last updated:** [October 7, 2024, 5:54pm UTC](https://discourse.julialang.org/t/how-do-i-format-my-vector-function-correct-for-ploting-with-quiver/121019 "2024-10-07T17:54:31Z")

</div>

Hi. I have the following function I what to make a vector plot of: I have: using Plots using LinearAlgebra L=0.1 s=\[0 -L/2\] e=\[0 L/2\] l=e-s function GDA(x,y) if 0==x && 0==y return 0.0 end ra=\[x y\]-s rb=\[x y\]…

---

## [Makie recipe with multiple axes](https://discourse.julialang.org/t/makie-recipe-with-multiple-axes/121013)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 4\
**Last updated:** [October 7, 2024, 4:13pm UTC](https://discourse.julialang.org/t/makie-recipe-with-multiple-axes/121013 "2024-10-07T16:13:15Z")

</div>

Is it currently possible to define a recipe with multiple axes in Makie.jl? Say I have a full recipe called MyPlot that acts on a type T, I want the call myplot(obj::T) to return a figure with 2x2 grid layout filled with…

---

## [Initialize a SDP solver with Convex](https://discourse.julialang.org/t/initialize-a-sdp-solver-with-convex/115339)

<div class="topic-metadata">

**Author:** [@gustave\_Robichon](https://discourse.julialang.org/u/gustave_Robichon)\
**Replies:** 6\
**Last updated:** [October 7, 2024, 2:38pm UTC](https://discourse.julialang.org/t/initialize-a-sdp-solver-with-convex/115339 "2024-10-07T14:38:35Z")

</div>

hello there :slight\_smile: I am using julia to solve some Semi-definite Problem. I use Convex to define the problem and the constraints, then I use Hypatia to solve it : M = HermitianSemidefinite(N) problem = minimize…

---

## [Examodels: using constraint as empty object for constraint!](https://discourse.julialang.org/t/examodels-using-constraint-as-empty-object-for-constraint/120911)

<div class="topic-metadata">

**Author:** [@KSepetanc](https://discourse.julialang.org/u/KSepetanc)\
**Replies:** 4\
**Last updated:** [October 7, 2024, 2:09pm UTC](https://discourse.julialang.org/t/examodels-using-constraint-as-empty-object-for-constraint/120911 "2024-10-07T14:09:38Z")

</div>

I am trying to implement control neutrality constraint. That is, a constraint that requires that if some generator increased power that others decrease (sum is zero). In this demo test case there are only two variables …

---

## [Warning displayed after running](https://discourse.julialang.org/t/warning-displayed-after-running/120947)

<div class="topic-metadata">

**Author:** [@Jimery](https://discourse.julialang.org/u/Jimery)\
**Replies:** 2\
**Last updated:** [October 7, 2024, 2:00am UTC](https://discourse.julialang.org/t/warning-displayed-after-running/120947 "2024-10-07T02:00:25Z")

</div>

┌ Warning: The model has been modified since the last call to optimize! (or optimize! has not been called yet). If you are iteratively querying solution information and modifying a model, query all the results first, the…

---

## [Why are Mixed integer programming solvers focused on finding cuts and not so much on search?](https://discourse.julialang.org/t/why-are-mixed-integer-programming-solvers-focused-on-finding-cuts-and-not-so-much-on-search/120945)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 4\
**Last updated:** [October 7, 2024, 1:58am UTC](https://discourse.julialang.org/t/why-are-mixed-integer-programming-solvers-focused-on-finding-cuts-and-not-so-much-on-search/120945 "2024-10-07T01:58:04Z")

</div>

Hi. I’ve written many mixed-integer programming problems and sent them to solvers (HiGHS and Gurobi). The solvers seem to follow this pattern. Adding cuts at the root node (Gomory cut among other cuts) Doing a branch a…

---

## [2nd order optimization for Julia](https://discourse.julialang.org/t/2nd-order-optimization-for-julia/120966)

<div class="topic-metadata">

**Author:** [@Tarny\_GG\_Channie](https://discourse.julialang.org/u/Tarny_GG_Channie)\
**Replies:** 1\
**Last updated:** [October 6, 2024, 10:34pm UTC](https://discourse.julialang.org/t/2nd-order-optimization-for-julia/120966 "2024-10-06T22:34:17Z")

</div>

Lately, I’ve seen second-order optimization suddenly becoming a trend in deep learning. Is this An opportunity that Julia neural network system can do well? Something that would rather shift the balance toward PyTorch…

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

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