-
-
Notifications
You must be signed in to change notification settings - Fork 411
Closed
Labels
Milestone
Description
MOI parameterizes function and set types with the number type used to store the data, example:
julia> using JuMP
julia> MOI.LessThan(big"3.5")
MathOptInterface.LessThan{BigFloat}(3.5)For the moment, JuMP uses and assumes Float64:
julia> @variable(m, x[1:3])
julia> @constraint(m, sum(x) <= 1//7)
x[1] + x[2] + x[3] ≤ 0.14285714285714285Julia-native solvers should support more numeric types (see jump-dev/Convex.jl#262 (comment)), using them through JuMP would in the current state block this genericity.
From the user perspective, generic number types could allow chosen precision, Unitful.jl and others
dourouc05, lrnv and fhenneke