Ticket #4490 (new defect)

Opened 5 years ago

Last modified 5 years ago

Pyomo is inconsistent about ignoring extraneous .dat file entries

Reported by: gabeh Owned by: unassigned
Priority: normal Milestone: Pyomo 4.x
Component: pyomo.core Version:
Keywords: extraneous data file declarations Cc:

Description

Pyomo will report an error if a param declaration appears in a .dat file that does not have a matching Param component on the model. However, no error is reported for an extraneous set declaration.

Though some users have requested the feature of allowing for extraneous data declarations in a .dat file, I think we need to be consistent about one or the other.

Change History

comment:1 Changed 5 years ago by gabeh

This ticket references #4483. It would be nice to add a keyword to model.create() (or ModelData? / DataPortal?) that would allow a user to choose whether or not Pyomo will ignore extraneous declarations in .dat files. In the case of #4483 we would want to turn that option off so that users could more easily find errors in their ScenarioStructure?.dat file.

comment:2 Changed 5 years ago by gabeh

correction: the above comment should reference #4488 (not #4483)

comment:3 Changed 5 years ago by wehart

  • Milestone changed from Coopr 3.4 to Coopr 3.5

comment:4 Changed 5 years ago by wehart

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