Skip to content

Interpolation options #477

Closed
Closed
@modelica-trac-importer

Description

@modelica-trac-importer

Reported by mtiller on 14 Jan 2011 17:54 UTC
I've been working on a project for some time that uses model inversion extensively. One of the issues we have seen is that the tables provided in the Modelica Standard Library assume extrapolation beyond the limits of the independent variables. In many cases, this is not desirable.

If the behavior of the model is only valid over a given table, there should be a way to reflect this. If they want a different way of interpolating, that should also be possible.

Specifically, it should be possible for users to specify different approaches to interpolation beyond the edges. I would propose at least the following options:

  • Fatal assertion - A fatal assertion is violated in such cases.
  • Warning assertion - A warning assertion (and presumably a warning message) is generated.
  • Limits - The inputs are "capped" by the upper and lower values of the independent variable.
  • Extrapolation - The current behavior
  • Periodic - The independent variable should "wrap" around when it goes beyond the edges of the table.

These are not arbitrary choices, we have seen use cases for all of these in our regular work.

Ideally, it should be possible to have a different approach for each independent variable in a given table.


Migrated-From: https://trac.modelica.org/Modelica/ticket/477

Metadata

Metadata

Labels

L: BlocksIssue addresses Modelica.BlocksL: C-SourcesIssue addresses Modelica/Resources/C-SourcesP: highHigh priority issueenhancementNew feature or enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions