Ticket #4324 (new major enhancement)

Opened 7 years ago

Last modified 6 years ago

value() warning?

Reported by: dlwoodruff@… Owned by: unassigned
Priority: normal Milestone: Pyomo 4.x
Component: pyomo.core Version:
Keywords: Cc:


I know we have talked about this a lot, but I think Pyomo needs an option that causes it to refuse to write an invalid lp file. If a user "forgets" to put value() around a param in a constraint in an abstract model, an expression is created for the right hand side and it is written to the lp file as sum. This causes a silent, but deadly, failure of the solve. New users are completely baffled with no hints of any kind given to them.

It would be easy to test the type of data elements as they are written to the lp file and then a somewhat helpful error could be generated (e.g., the name of the offending constraint).

Change History

comment:1 Changed 6 years ago by jwatson

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