thegrumpys / odop

Open Design Optimization Platform (ODOP) - Coil spring design app; mechanical springs; compression spring, extension spring, torsion spring
https://www.springdesignsoftware.org
MIT License
4 stars 5 forks source link

Message after Seek if constrained in that direction #781

Closed grumpyinca closed 1 year ago

grumpyinca commented 1 year ago

Original thinking preserved here. See below for update(s).

Consider adding code that will block Seek and produce a termination condition message in the case that there is a pre-existing constraint on the target variable in the specified direction.

For example: If there is a MIN constraint established on Weight, then Seek MIN Weight will immediately return with no changes and produce a termination condition message similar to "Seek Canceled. Remove the MIN constraint on Weight and try again.".

grumpyinca commented 1 year ago

New thinking prompted by today's discussion:

Considering;

It is better to not block the Seek operation but instead, if after Seek finishes, an active constraint on the variable in question is violated, provide a message (pop-up?, part of the termination condition message?, Alert?) that explains to the user that the constraint is limiting further progress in the specified direction.

For example: If there is a MIN constraint established on Weight, then Seek MIN Weight runs when requested with no interruption. After the Seek operation completes, if an enabled MIN constraint on Weight is violated, words similar to "The MIN constraint on Weight is limiting further progress. You may want to relax or disable this constraint and then run Seek again." are appended to the termination condition message.

1fifoto commented 1 year ago

Completed update, see screen shot with ioopt = 6

Screenshot 2023-04-09 at 2 56 27 PM

Merged into master, closing