Opened 6 years ago

Last modified 3 years ago

#4979 new defect

An optimization with annotations trouble — at Initial Version

Reported by: massimo ceraolo Owned by: Vitalij Ruge
Priority: normal Milestone: Future
Component: Optimization Version:
Keywords: Cc: Willi Braun

Description

I know that dynamical optimization is only partially supported.
However, I guess that it is useful to report a simple issue I've seen, when dynamical optimisation with annotatios is used.
Consider the file InputOptIssues enclosed. It contains two models:

  • TimeTable: it finds the optimal value for "torque" variable perfectly
  • Trapezoid, nearly identical to timetable, but has as load torque a trapezoid. In this case the Trapezoid output is constantly zero instead of the espected shape. The optimal torque is still found, but it is the one corresponding to zero load torque instead of the expected shape.

To reproduce consider that the two models contain all the relevant options inside annotations. So they can reproduced as follows:

  • load OMedit (using all default options)
  • run TimeTable and see the results
  • run Trapezoid and see the results.

Change History (1)

by massimo ceraolo, 6 years ago

Attachment: InputOptIssues.mo added
Note: See TracTickets for help on using tickets.