# Specific Domains

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

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

**Page:** 424

---

## [Current list of colorschemes in Plots.jl](https://discourse.julialang.org/t/current-list-of-colorschemes-in-plots-jl/5420)

<div class="topic-metadata">

**Author:** [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Replies:** 30\
**Last updated:** [September 10, 2020, 10:54am UTC](https://discourse.julialang.org/t/current-list-of-colorschemes-in-plots-jl/5420 "2020-09-10T10:54:32Z")

</div>

Is there a command to find out all the currently defined colorschemes? The one below that used to work is not working anymore: PlotUtils.\_gradients |\> keys |\> showall

---

## [How to assign value to a matrix in an indicator constraint](https://discourse.julialang.org/t/how-to-assign-value-to-a-matrix-in-an-indicator-constraint/46314)

<div class="topic-metadata">

**Author:** [@sogrbilja](https://discourse.julialang.org/u/sogrbilja)\
**Replies:** 15\
**Last updated:** [September 10, 2020, 9:37am UTC](https://discourse.julialang.org/t/how-to-assign-value-to-a-matrix-in-an-indicator-constraint/46314 "2020-09-10T09:37:34Z")

</div>

Is it possible and how to assign values to POSITION\[R,C\] matrix in the indicator constraint @variable(premex, ROLNA\[R in keys(\_ROWS), C in keys(\_COLS), i\_k in keys(\_IMAGES\_ALL)\], Bin) @variable(premex, POSITION…

---

## [JuMP Stopped Working Today](https://discourse.julialang.org/t/jump-stopped-working-today/46348)

<div class="topic-metadata">

**Author:** [@vattyamv](https://discourse.julialang.org/u/vattyamv)\
**Replies:** 4\
**Last updated:** [September 9, 2020, 11:07pm UTC](https://discourse.julialang.org/t/jump-stopped-working-today/46348 "2020-09-09T23:07:52Z")

</div>

Hi, I’ve been using JuMP for a project and it stopped working today after I installed Gurobi. I get ERROR: LoadError: MethodError: no method matching Model(::Type{Gurobi.Optimizer}) when I set the solver to Gurobi, but i…

---

## [Mapping functions using CuArrays](https://discourse.julialang.org/t/mapping-functions-using-cuarrays/46300)

<div class="topic-metadata">

**Author:** [@manderson](https://discourse.julialang.org/u/manderson)\
**Replies:** 2\
**Last updated:** [September 9, 2020, 4:12pm UTC](https://discourse.julialang.org/t/mapping-functions-using-cuarrays/46300 "2020-09-09T16:12:00Z")

</div>

I am attempting to map functions to the GPU using CUDA, CuArrays, and map(). My ultimate goal is to take what is currently a serial grid search and run each reduction in parallel on the GPU. For this, I need to pass a v…

---

## [Diffeq.jl problem terminology](https://discourse.julialang.org/t/diffeq-jl-problem-terminology/46024)

<div class="topic-metadata">

**Author:** [@pkairys](https://discourse.julialang.org/u/pkairys)\
**Replies:** 3\
**Last updated:** [September 8, 2020, 8:09pm UTC](https://discourse.julialang.org/t/diffeq-jl-problem-terminology/46024 "2020-09-08T20:09:03Z")

</div>

I’m trying to clarify a bit of terminology that is popping up in the DifferentialEquations.jl documentation relating to the “problem size” and “large systems.” I have a linear matrix differential equation like \\partial\_…

---

## [CSV read fails with keyword arguments](https://discourse.julialang.org/t/csv-read-fails-with-keyword-arguments/46231)

<div class="topic-metadata">

**Author:** [@madeleineudell](https://discourse.julialang.org/u/madeleineudell)\
**Replies:** 7\
**Last updated:** [September 8, 2020, 4:59pm UTC](https://discourse.julialang.org/t/csv-read-fails-with-keyword-arguments/46231 "2020-09-08T16:59:19Z")

</div>

I’m having difficulties getting a basic CSV file to read. I can read a file without keyword options: acs = CSV.read("file.csv", limit=10); but adding keyword options, like acs = CSV.read("file.csv"; null="NA"); resul…

---

## [Cannot Access variable values through Gurobi callback](https://discourse.julialang.org/t/cannot-access-variable-values-through-gurobi-callback/46138)

<div class="topic-metadata">

**Author:** [@hassanis](https://discourse.julialang.org/u/hassanis)\
**Replies:** 2\
**Last updated:** [September 8, 2020, 12:38pm UTC](https://discourse.julialang.org/t/cannot-access-variable-values-through-gurobi-callback/46138 "2020-09-08T12:38:26Z")

</div>

Hello, I’m trying to access my variable values through a callback on Gurobi (Gurobi Optimizer version 9.0.2; Pkg v0.8.1) (& JuMP v0.21.3). I’m able to run a few functions (eg. cbget\_mipsol\_obj), but ‘mipsol\_sol’ is not …

---

## [Warp images and coordinates](https://discourse.julialang.org/t/warp-images-and-coordinates/46256)

<div class="topic-metadata">

**Author:** [@yakir12](https://discourse.julialang.org/u/yakir12)\
**Replies:** 1\
**Last updated:** [September 8, 2020, 12:12pm UTC](https://discourse.julialang.org/t/warp-images-and-coordinates/46256 "2020-09-08T12:12:48Z")

</div>

I’m transforming an image using ImageTransformations.wrap, but I also want to use the same transformation to transform some coordinates. The idea is that a coordinate in the original image should be transformed to a coor…

---

## [\[ANN\] Announcing Flux3D.jl, 3D Vision library](https://discourse.julialang.org/t/ann-announcing-flux3d-jl-3d-vision-library/46258)

<div class="topic-metadata">

**Author:** [@Nirmal\_Suthar](https://discourse.julialang.org/u/Nirmal_Suthar)\
**Replies:** 0\
**Last updated:** [September 8, 2020, 12:09pm UTC](https://discourse.julialang.org/t/ann-announcing-flux3d-jl-3d-vision-library/46258 "2020-09-08T12:09:25Z")

</div>

Dear Julia Community, I am really excited to share Flux3D.jl with all. It is a 3D vision library, written completely in Julia. This package utilizes Flux.jl and Zygote.jl as its building blocks for training 3D vision mo…

---

## [Problems trying to run JuMP and GLPK](https://discourse.julialang.org/t/problems-trying-to-run-jump-and-glpk/46175)

<div class="topic-metadata">

**Author:** [@HerAdri](https://discourse.julialang.org/u/HerAdri)\
**Replies:** 4\
**Last updated:** [September 8, 2020, 8:08am UTC](https://discourse.julialang.org/t/problems-trying-to-run-jump-and-glpk/46175 "2020-09-08T08:08:53Z")

</div>

When I try to run JuMP packets, GLPK with the command using JuMP, GLPK I get the following alert: m = Model(GLPK.Optimizer) ERROR: MethodError: no method matching Model(::Type{GLPK.Optimizer}) Closest candidates are: …

---

## [Adding SOS1 constraint problem](https://discourse.julialang.org/t/adding-sos1-constraint-problem/46209)

<div class="topic-metadata">

**Author:** [@sogrbilja](https://discourse.julialang.org/u/sogrbilja)\
**Replies:** 10\
**Last updated:** [September 8, 2020, 5:57am UTC](https://discourse.julialang.org/t/adding-sos1-constraint-problem/46209 "2020-09-08T05:57:57Z")

</div>

I am trying to add a simple SOS1 constraint, but getting the following error MethodError: no method matching build\_constraint(::JuMP.var"#\_error#68"{Symbol}, ::Array{VariableRef,2}, ::SOS1) for @constrain…

---

## [ODE where u and du are different sizes](https://discourse.julialang.org/t/ode-where-u-and-du-are-different-sizes/46213)

<div class="topic-metadata">

**Author:** [@klowrey](https://discourse.julialang.org/u/klowrey)\
**Replies:** 11\
**Last updated:** [September 8, 2020, 1:30am UTC](https://discourse.julialang.org/t/ode-where-u-and-du-are-different-sizes/46213 "2020-09-08T01:30:03Z")

</div>

I didn’t see an obvious solution in the docs so I thought I would ask: I have an ODE problem where the state is a different size than the change in state. Specifically, lets say my state of \[pos; vel\] includes a quatern…

---

## [Feeding solver parameters as a dictionary](https://discourse.julialang.org/t/feeding-solver-parameters-as-a-dictionary/46227)

<div class="topic-metadata">

**Author:** [@varun7rs](https://discourse.julialang.org/u/varun7rs)\
**Replies:** 2\
**Last updated:** [September 8, 2020, 12:06am UTC](https://discourse.julialang.org/t/feeding-solver-parameters-as-a-dictionary/46227 "2020-09-08T00:06:13Z")

</div>

I’d like to set solver parameters not manually but by just passing a dictionary and unpacking the keys and arguments using the splat operator. When I tried doing this: fRAN = Model(solver = GurobiSolver(parameters...)) …

---

## [Dual number is unidentified by OpenModelica while using user-defined function with autodiff in JuMP!](https://discourse.julialang.org/t/dual-number-is-unidentified-by-openmodelica-while-using-user-defined-function-with-autodiff-in-jump/45740)

<div class="topic-metadata">

**Author:** [@pandeysudan27](https://discourse.julialang.org/u/pandeysudan27)\
**Replies:** 6\
**Last updated:** [September 7, 2020, 10:20pm UTC](https://discourse.julialang.org/t/dual-number-is-unidentified-by-openmodelica-while-using-user-defined-function-with-autodiff-in-jump/45740 "2020-09-07T22:20:45Z")

</div>

Hi, I am trying to solve a simple set point tracking MPC using JuMP. The model I am trying is \\frac{dx}{dt} =a+bsin(x). There is no issues in JuMP while discretizing it in Julia. However, when the model is used from …

---

## [Use of CartesianIndices with CUDA?](https://discourse.julialang.org/t/use-of-cartesianindices-with-cuda/42160)

<div class="topic-metadata">

**Author:** [@Ferran\_Mazzanti](https://discourse.julialang.org/u/Ferran_Mazzanti)\
**Replies:** 6\
**Last updated:** [September 7, 2020, 3:01pm UTC](https://discourse.julialang.org/t/use-of-cartesianindices-with-cuda/42160 "2020-09-07T15:01:10Z")

</div>

Hi, I have a function that iterates over all elements of a four-dimenasional array full of CartesianIndices elements 21×31×41×51 Array{CartesianIndex{4},4}: \[:, :, 1, 1\] = CartesianIndex(1, 1, 1, 1) … CartesianInde…

---

## [Mac's AMD GPU](https://discourse.julialang.org/t/macs-amd-gpu/33014)

<div class="topic-metadata">

**Author:** [@tomtom](https://discourse.julialang.org/u/tomtom)\
**Replies:** 61\
**Last updated:** [September 7, 2020, 2:34pm UTC](https://discourse.julialang.org/t/macs-amd-gpu/33014 "2020-09-07T14:34:18Z")

</div>

the new Mac Pro seems to be very powerful and can be equipped with multiple powerful AMD GPUs. But OpenCL.jl seems very inactive. do we have any chance to unleash the power of Mac’s GPU using Julia? (Mac is not supporti…

---

## [How can I save this data with CSV?](https://discourse.julialang.org/t/how-can-i-save-this-data-with-csv/46159)

<div class="topic-metadata">

**Author:** [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Replies:** 5\
**Last updated:** [September 7, 2020, 10:53am UTC](https://discourse.julialang.org/t/how-can-i-save-this-data-with-csv/46159 "2020-09-07T10:53:46Z")

</div>

I am confused about the CSV way of writing files. My problem is really simple: I have two arrays and I want to save them in a .csv file, but I also want the following column names above my data: Voltage \[V\] and Current…

---

## [Flux: multiple input of unequal dimensions](https://discourse.julialang.org/t/flux-multiple-input-of-unequal-dimensions/46094)

<div class="topic-metadata">

**Author:** [@johnbb](https://discourse.julialang.org/u/johnbb)\
**Replies:** 4\
**Last updated:** [September 7, 2020, 8:52am UTC](https://discourse.julialang.org/t/flux-multiple-input-of-unequal-dimensions/46094 "2020-09-07T08:52:29Z")

</div>

Assume I have data as follows n = 1000 y = rand(n) x1 = rand(10, n) x2 = rand(20,20,1,n) and would like to a apply one (or more) Conv layers to x2 before it is flattened and concatenated with x1 in a Dense layer. How…

---

## [AssertionError rowub \< posinf JuMP model](https://discourse.julialang.org/t/assertionerror-rowub-posinf-jump-model/45976)

<div class="topic-metadata">

**Author:** [@dharik13](https://discourse.julialang.org/u/dharik13)\
**Replies:** 3\
**Last updated:** [September 6, 2020, 9:59pm UTC](https://discourse.julialang.org/t/assertionerror-rowub-posinf-jump-model/45976 "2020-09-06T21:59:47Z")

</div>

Hello, I am new to using Julia/JuMP (coming from python) and I am encountering the following error when trying to solve an LP model using Gurobi I dont quite follow what the statement “AssertionError: rowub\[i\] \< posi…

---

## [Multiple lag() in TimeSeries doesn't work in one line](https://discourse.julialang.org/t/multiple-lag-in-timeseries-doesnt-work-in-one-line/46154)

<div class="topic-metadata">

**Author:** [@Jaepil\_Lee](https://discourse.julialang.org/u/Jaepil_Lee)\
**Replies:** 1\
**Last updated:** [September 6, 2020, 6:39pm UTC](https://discourse.julialang.org/t/multiple-lag-in-timeseries-doesnt-work-in-one-line/46154 "2020-09-06T18:39:31Z")

</div>

Hello Julia users! I have been playing with TimeSeries package and found one operation that doesn’t make much sense to me. I know that applying lag() to a Tx1 TimeArray A creates a (T-1)x1 TimeArray and lag(A)./A create…

---

## [ArchGDAL.getfield() error](https://discourse.julialang.org/t/archgdal-getfield-error/45770)

<div class="topic-metadata">

**Author:** [@erlebach](https://discourse.julialang.org/u/erlebach)\
**Replies:** 2\
**Last updated:** [September 6, 2020, 6:01pm UTC](https://discourse.julialang.org/t/archgdal-getfield-error/45770 "2020-09-06T18:01:02Z")

</div>

Hi, I have the following code which aims to transform the data contained in a layer into a DataFrame, which I picked up online. This works for the most part. Notice the try/catch, which slows the code down a lot, and I …

---

## [Is there any graph / graph plotting package that allow edges having different color and length based on its identity and weight?](https://discourse.julialang.org/t/is-there-any-graph-graph-plotting-package-that-allow-edges-having-different-color-and-length-based-on-its-identity-and-weight/45982)

<div class="topic-metadata">

**Author:** [@liuyxpp](https://discourse.julialang.org/u/liuyxpp)\
**Replies:** 2\
**Last updated:** [September 6, 2020, 8:55am UTC](https://discourse.julialang.org/t/is-there-any-graph-graph-plotting-package-that-allow-edges-having-different-color-and-length-based-on-its-identity-and-weight/45982 "2020-09-06T08:55:23Z")

</div>

Usecase: Displaying the architecture of block copolymers. Block copolymers consist of many blocks each of which contains identical monomers and are connected by covalent bond at their joints. I think the natural way to d…

---

## [\`Conv\` is 2x slow than pytorch \`Conv\` on cpu](https://discourse.julialang.org/t/conv-is-2x-slow-than-pytorch-conv-on-cpu/39802)

<div class="topic-metadata">

**Author:** [@yiyuezhuo](https://discourse.julialang.org/u/yiyuezhuo)\
**Replies:** 9\
**Last updated:** [September 6, 2020, 5:43am UTC](https://discourse.julialang.org/t/conv-is-2x-slow-than-pytorch-conv-on-cpu/39802 "2020-09-06T05:43:34Z")

</div>

Example: using BenchmarkTools using Flux conv = Conv((7,7), 3 =\> 64; stride=2, pad=3) dummy = randn(Float32, 224, 224, 3, 2); conv(dummy) # ignore compile time @benchmark conv(dummy) #= BenchmarkTools.Trial: memor…

---

## [RotatedSecondOrderCone() usage](https://discourse.julialang.org/t/rotatedsecondordercone-usage/46019)

<div class="topic-metadata">

**Author:** [@asavasci](https://discourse.julialang.org/u/asavasci)\
**Replies:** 8\
**Last updated:** [September 5, 2020, 8:23pm UTC](https://discourse.julialang.org/t/rotatedsecondordercone-usage/46019 "2020-09-05T20:23:45Z")

</div>

Hi, how should I use RotatedSecondOrderCone() object when converting soc constraint x^2 + y^2 \<= wz where w\>=0, z\>= 0 ? I tried to resemble the constraint to given syntax in the manual . However, I am not sure if I am d…

---

## [How register a function in JuMP and use a subarray as args](https://discourse.julialang.org/t/how-register-a-function-in-jump-and-use-a-subarray-as-args/46043)

<div class="topic-metadata">

**Author:** [@Behemoth-s](https://discourse.julialang.org/u/Behemoth-s)\
**Replies:** 2\
**Last updated:** [September 5, 2020, 5:26pm UTC](https://discourse.julialang.org/t/how-register-a-function-in-jump-and-use-a-subarray-as-args/46043 "2020-09-05T17:26:47Z")

</div>

I would register constraint somehow like c1 as a user-defined function using Ipopt using JuMP using MathOptInterface const MOI = MathOptInterface d1 = 4 d2 = 5 d3 = 6 para\_a = rand(d3) m = Model(optimizer\_with\_attrib…

---

## [Power of a given value into CUDA.jl kernel](https://discourse.julialang.org/t/power-of-a-given-value-into-cuda-jl-kernel/46082)

<div class="topic-metadata">

**Author:** [@eufosc](https://discourse.julialang.org/u/eufosc)\
**Replies:** 2\
**Last updated:** [September 5, 2020, 2:54pm UTC](https://discourse.julialang.org/t/power-of-a-given-value-into-cuda-jl-kernel/46082 "2020-09-05T14:54:02Z")

</div>

Hi! I’m using Julia V1.4.2 + CUDA.jl and I have an issue with a CUDA kernel. I’m trying to power the elements of an array, just like the example below: using CUDA T = \[0.0 0.666667 0.0; -0.333333 -0.25 0.333333; -0.5…

---

## [How to treat variable as binary in some points of model?](https://discourse.julialang.org/t/how-to-treat-variable-as-binary-in-some-points-of-model/46100)

<div class="topic-metadata">

**Author:** [@sogrbilja](https://discourse.julialang.org/u/sogrbilja)\
**Replies:** 3\
**Last updated:** [September 5, 2020, 2:50pm UTC](https://discourse.julialang.org/t/how-to-treat-variable-as-binary-in-some-points-of-model/46100 "2020-09-05T14:50:16Z")

</div>

I have a decision variable PRODAMOUNT and it is of Int type. I need it as binary in some points of the model, like here in the objective function second PRODAMOUNT should be used as 1 when there is a positive value in it…

---

## [Error: Problems with using VectorOfArray() with DifferentialEquations package](https://discourse.julialang.org/t/error-problems-with-using-vectorofarray-with-differentialequations-package/46049)

<div class="topic-metadata">

**Author:** [@MJMAG](https://discourse.julialang.org/u/MJMAG)\
**Replies:** 4\
**Last updated:** [September 5, 2020, 11:13am UTC](https://discourse.julialang.org/t/error-problems-with-using-vectorofarray-with-differentialequations-package/46049 "2020-09-05T11:13:32Z")

</div>

Hey there, I am new to the community. I don’t have too much experience with the DifferentialEquations package. I am trying to model Lotka Volterra dynamics with two guilds and in these guilds various species. For this…

---

## [Custom node dependent \`nodesize\`](https://discourse.julialang.org/t/custom-node-dependent-nodesize/46098)

<div class="topic-metadata">

**Author:** [@ohmsweetohm1](https://discourse.julialang.org/u/ohmsweetohm1)\
**Replies:** 0\
**Last updated:** [September 5, 2020, 11:09am UTC](https://discourse.julialang.org/t/custom-node-dependent-nodesize/46098 "2020-09-05T11:09:13Z")

</div>

Is it possible to use a custom method to compute the node size for a tree? using AbstractTrees, Plots, GraphRecipes mutable struct BinaryNode{T} data::T parent::BinaryNode{T} left::BinaryNode{T} right::…

---

## [Shared base library for PPL](https://discourse.julialang.org/t/shared-base-library-for-ppl/45901)

<div class="topic-metadata">

**Author:** [@cscherrer](https://discourse.julialang.org/u/cscherrer)\
**Replies:** 9\
**Last updated:** [September 5, 2020, 8:29am UTC](https://discourse.julialang.org/t/shared-base-library-for-ppl/45901 "2020-09-05T08:29:40Z")

</div>

Hong Ge (are you on Disourse?) recently posted this comment in the probprog channel on Slack: …I think it is quite helpful to consider carefully how we, as a community, can work together to build a better platform for …

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

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