AI4OPT / OPFGenerator

Instance generator for OPF problems
MIT License
2 stars 3 forks source link

Use ParametricOptInterface #50

Closed klamike closed 4 months ago

klamike commented 4 months ago

Tests are failing for Clarabel which does not yet support POI. Also, a test should be added for change_loads.

The following fixes Clarabel in OPFGenerator, but causes errors when using the solve_opf API from PowerModels

optimizer = () -> MOI.Bridges.full_bridge_optimizer(
    MOI.Utilities.CachingOptimizer(
    MOI.Utilities.UniversalFallback(MOI.Utilities.Model{Float64}()),
        Clarabel.Optimizer(),
    ),
    Float64,
)

Fixes #49

klamike commented 4 months ago

The bumped PowerModels version in PR #47 may fix this. Will rebase once it is merged.