"""
    PowerModelsMarkets

SubModule that implements interfact with PowerModels.jl
"""
module PowerModelsMarkets
using ..OptimalBids
using PowerModels
using JuMP
using ChainRulesCore

import ..OptimalBids: Market, build_market, change_bids!, clear_market!, calculate_profit
using Reexport: Reexport

import PowerModels: instantiate_model

export PowerModelsMarket,
    build_market,
    change_bids!,
    clear_market!,
    calculate_profit,
    add_generator,
    profit_and_gradient_for_bid!,
    instantiate_model

Reexport.@reexport using PowerModels

include("case_modifiers.jl")
include("market_interface.jl")
include("ChainRules.jl")

end
