Comparisons in optimizer constraints

Comparisons in optimizer constraints

allister_wilson
Not applicable
29 Views
1 Reply
Message 1 of 2

Comparisons in optimizer constraints

allister_wilson
Not applicable

[ FlexSim 16.0.1 ]

I'm having issues getting comparison operators to behave in optimizer constraints.

For example, the following :

Images intégrées 1

...doesn't reject solutions where the values are equal :

856-optimizer-constraints.png

One of our clients wanted a working equivalent to a != b, which I think should be "a<b or a>b" in an optimizer constraint. In the end the best working solution I could give him was abs( - ) >= 1.

optquest-constraints.fsm

0 Likes
Accepted solutions (1)
30 Views
1 Reply
Reply (1)
Message 2 of 2

philboboADSK
Autodesk
Autodesk
Accepted solution

OptQuest constraints can only support greater-than-or-equal, less-than-or-equal, or exactly equal. If you use less-than or greater-than, it treats it as less-than-or-equal or greater-than-or-equal. http://www.opttek.com/documentation/v64engine/OptQuest%20Engine%20Documentation/WebHelp/Defining_con...

I will add a note to the development list to update the OptQuest documentation accordingly.

You can adjust your constraint equation by a small value in order to get the results you are looking for:

[Variable 1] <= [Variable 2] - 0.01


Phil BoBo
Sr. Manager, Software Development