Oscar Dowson

Results 1409 comments of Oscar Dowson

I'm tempted to close this issue as out-of-scope. JuMP is not built for this sort of modeling approach. With large nested expressions. The solution is to introduce temporary variables to...

I explicitly considered this case when designing the data structure, and we chose not to handle it. If you're solving optimal control type problems, CasADi is an excellent tool for...

If you don't provide a Hessian operator, yes. But you can provide a Hessian callback for the operator (see the docs).

> If I'm not mistaken, we don't support modifying these in-place so that shouldn't be an issue. In theory we don't, but the _can_ be. This change needs very very...

I think we can simplify this to: ```julia function my_moi_function(f::GenericNonlinearExpr{V}) where {V} cache = Dict{UInt64,MOI.ScalarNonlinearFunction}() ret = MOI.ScalarNonlinearFunction(f.head, similar(f.args)) stack = Tuple{MOI.ScalarNonlinearFunction,Int,GenericNonlinearExpr{V}}[] for i in length(f.args):-1:1 if f.args[i] isa GenericNonlinearExpr{V}...

The example gives: ```Julia julia> @time moi_function.(x); 0.000142 seconds (1.53 k allocations: 106.688 KiB) ```

We can fix `check_belongs_to_model` as well. I don't want to add the model-level cache. The cache should be within the function.

> It would be weird to have the subexpressions only work when they are on the same function. This is an implementation detail. Nothing should be observable at the JuMP...

> but I'm guessing that much of JuMP is about problem setup (unlikely to be performance sensitive) and not, e.g., about evaluating the objective function as quickly as possible (certainly...

Okay, question. How should I setup precompile statements for solvers which set a global constant in `__init__`? For example: https://github.com/jump-dev/HiGHS.jl/blob/9ec05c31c3e73c02661f4de0d0def5b3b664a991/src/HiGHS.jl#L12-L15 Is it okay to do something like this? ```julia import...