Ticket #4496 (new defect)

Opened 5 years ago

Last modified 5 years ago

Mutable parameters are passing incorrect arguments to validation rules

Reported by: jwatson Owned by: unassigned
Priority: major Milestone: Pyomo 4.x
Component: pyomo.core Version:
Keywords: Cc:

Description

Consider the following example:

def maximum_nd_output_validator(m, v, g, t):

return v >= value(m.MinNondispatchablePower?[g,t])

model.MaxNondispatchablePower? = Param(model.NondispatchableGenerators?, model.TimePeriods?, within=NonNegativeReals?, validate=maximum_nd_output_validator, default=0.0, \
mutable=True)

The type of v as input to the validation rule is _ParamData, and not a float!

Change History

comment:1 Changed 5 years ago by wehart

  • Milestone set to Coopr 3.x
Note: See TracTickets for help on using tickets.