PowerModels.jl icon indicating copy to clipboard operation
PowerModels.jl copied to clipboard

solving problems with non-Float64 types

Open goulart-paul opened this issue 1 year ago • 5 comments

Trying to solve problems with solvers that are configured for something other than Float64 lead to failures. I am not sure if this is a solver issue or a PowerModels one, but it happens with more than one solver.

Example:

solve_dc_opf("whatever.m",COSMO.Optimizer) #works
solve_dc_opf("whatever.m",COSMO.Optimizer{Float64}) #works
solve_dc_opf("whatever.m",COSMO.Optimizer{Float32}) #errors
solve_dc_opf("whatever.m",COSMO.Optimizer{BigFloat}) #errors

The same holds for Clarabel.Optimizer{Float32} etc.

The stack trace for the error is quite long, bu the gist of it is that it appears that constraints and objectives of parametrized as Float64 are still reaching the model.

goulart-paul avatar Oct 03 '23 12:10 goulart-paul