Opened 7 years ago

Closed 7 years ago

#4512 closed enhancement (fixed)

Warn about iteration variables without nominal attribute

Reported by: Francesco Casella Owned by: Patrick Täuber
Priority: high Milestone: 1.13.0
Component: Backend Version:
Keywords: Cc:

Description

As discussed in #4395 and #4510, scaling of variables by nominal values can be critical for the performance of nonlinear solvers.

In user models it can easily happen that some badly scaled variables in nonlinear equation systems are solved for by iterative solvers, while they lack a nominal attribute for scaling. A warning is already provided if some variables are involved as iteration variables and have a zero start attribute, but there is no warning for the above-mentioned situation, which can also be critical for efficient solver convergence.

Can you please implement a similar logic that warns about iteration variables (both at initialization and during simulation) not having a nominal attribute?

This warning is only meant for debugging by advanced users, so it should be turned off by default and turned on with some debug flag, e.g. -warnNoNominal

Change History (2)

comment:1 by Patrick Täuber, 7 years ago

Owner: changed from Lennart Ochel to Patrick Täuber
Status: newaccepted

comment:2 by Patrick Täuber, 7 years ago

Resolution: fixed
Status: acceptedclosed

The warning is introduced in OMC commit 5682249.

Note: See TracTickets for help on using tickets.