Parametron.jl
Parametron.jl copied to clipboard
Efficiently solving instances of a parameterized family of (possibly mixed-integer) linear/quadratic optimization problems in Julia
I tried running the example in the README. The Julia REPL crashed on the line `@objective(model, Minimize, residual ⋅ residual) ` where the objective is set. Any fixes for this?
* Requires MOI master, https://github.com/jump-dev/MathOptInterface.jl/commit/f71ed8314da336a90f5713e2406ca4007c8c02e7 (ran into an ambiguity issue that I think https://github.com/jump-dev/MathOptInterface.jl/pull/1096 fixed) * Requires https://github.com/oxfordcontrol/OSQP.jl/pull/90 * FunctionWrappers quick fix is now unusable. Unfortunately, the actual FunctionWrappers is...
I posted my question [here](https://discourse.julialang.org/t/julia-package-not-up-to-date/33653), but figured out this could be an issue with `Parametron`. I am using Julia version 1.3.1 (2019-12-30) on Mac OS, official binary downloaded from Julia...
I just noticed that in `@expression` and in `@constraint` sparse matrices are not accepted. For example, `A=spzeros(n,m)`. If I use `A_expr = @expression A` or `@constraint(model, A * X ==0)`...
Creating a model with parameters whose initial values are `NaN` seems to break the model, even if those parameters are changed to non-NaN before any call to `solve!`. For example:...
I noticed when trying to build a large Parametron model that I was spending an unreasonable amount of time just constructing the initial model. From profiling, it looks like almost...
We already have an optimization for `transpose(x) * A * x` expressions, but it doesn't match `x' * A * x`.
When defining constraints like `@constraint(m, v >= 0)` for `Vector`-valued `v` on Julia 0.7 we get this deprecation warning ``` ┌ Warning: `a::AbstractArray - b::Number` is deprecated, use `a .-...
It looks like we're not quite handling `literal_pow` correctly: ```julia julia> using SimpleQP julia> model = SimpleQP.MockModel() SimpleQP.MockModel(SimpleQP.Parameter[], Base.RefValue{Int64}(1)) julia> p = Parameter(() -> 1.0, model) Parameter{Float64, …}(…) julia> e...
`@objective` escapes its entire result, which assumes that `setobjective!` and `@expression` are defined in the *caller's* scope: ```julia julia> module Foo using SimpleQP: @objective, Model, Minimize using OSQP.MathOptInterfaceOSQP: OSQPOptimizer m...