How to set expand_all_set_operators=False

Skip to first unread message

Victor Duraes De Faria

Jul 19, 2023, 9:45:40 AM7/19/23
to Pyomo Forum
I got the following warning in Pyomo:

Reading data files.WARNING: Extracting subsets for Set tech_all, which is a SetOperator other
    than a SetProduct.  Returning this set and not descending into the set
    operands.  To descend into this operator, specify
    'subsets(expand_all_set_operators=True)' or to suppress this warning,
    specify 'subsets(expand_all_set_operators=False)'

I imagine it is because I am using:
    M.tech_resource = Set()
    M.tech_production = Set()
    M.tech_all = M.tech_resource | M.tech_production
M.CapacityToActivity = Param(M.RegionalIndices, M.tech_all, default=1)

How do I set subsets(expand_all_set_operators=False)?

Reply all
Reply to author
0 new messages