Oscar Dowson

Results 907 comments of Oscar Dowson

It would have to be something like `ViewedDenseAxisArray`. But that's getting complicated. Do you have a realistic benchmark where this is a problem? (And not just an artificial one. I...

Bump. Are we all okay for a v1.2.0 release with the nonlinear changes?

> By the way this could be a nice example for the extensions doc don't you think ? Yes. This is ridiculous. Hooray for a good abstraction.

Pyomo has this: https://pyomo.readthedocs.io/en/stable/advanced_topics/units_container.html It came up yesterday in a discussion with @zolanaj. It's particularly useful if you have a large model with lots of different physical units, and you...

Nice! I'm traveling for the next week, but I will take a look when I get a chance. If it's been 2 weeks and I haven't replied, please ping me...

This is very cool! I like the use of a JuMP extension. The printing of the units beside each constraint is very slick. ```julia julia> m = Model(GLPK.Optimizer) A JuMP...

Perhaps mixing units is okay. I wonder if we can use the tagging feature of constraints as well, which would allow: ```julia max_speed = 1u"km/h" @constraint(model, 2x + y

You can pass positional arguments to `build_constraint`: https://jump.dev/JuMP.jl/stable/developers/extensions/#Build Instead of the `kwarg` stuff you do here: https://github.com/trulsf/UnitJuMP.jl/blob/17ff4b56c6f677d67a228f666d110c02575b070d/src/units.jl#L83-L87

Doing some benchmarking: https://github.com/hellemo/SparseVariables.jl/issues/16.

So the problem is that some AD backends might not update their expressions (or AD calls) if a parameter value is updated after `initialize`: ```Julia julia> model = Model() A...