OptQuest Error: Error in constraint equation

OptQuest Error: Error in constraint equation

mhosseini457NG
Advocate Advocate
13 Views
4 Replies
Message 1 of 5

OptQuest Error: Error in constraint equation

mhosseini457NG
Advocate
Advocate

[ FlexSim 24.1.0 ]

I set up an integer parameter in the parameters Table and when I want to use it in constraints or objectives in the OptQuest optimization panel, I get this error " Error in constraint equation".Is the bracket a problem [param1] or anything else?

Thanks



0 Likes
Accepted solutions (1)
14 Views
4 Replies
Replies (4)
Message 2 of 5

joerg_vogel_HsH
Mentor
Mentor
@Maryam H2, can you provide informations like constraint statement code, screenshot of error, perhaps an example model? Thank you.
0 Likes
Message 3 of 5

mhosseini457NG
Advocate
Advocate

@Joerg Vogel The constraint is [Order_Quantity_1PR]>=[PR_1_D]. both [Order_Quantity_1PR] and [PR_1_D] are parameters in Parametr Table. when this constraint is active I get the error below:

1718652416742.png

but if I change the constraint to something like this [Order_Quantity_1PR]>= 400, i do not get the error any more. both parameters are integer and the LHS of equation sets a value in a Global Table.

Do you know what would be the cause of getting this error?

0 Likes
Message 4 of 5

Jeanette_Fullmer
Community Manager
Community Manager
Accepted solution

Hello @Maryam H2,

The constraint limiting value needs to be a number. You can rewrite your constraint to something like this.

[Order_Quantity_1PR]-[PR_1_D]>=0

Optimizer constraints.fsm

0 Likes
Message 5 of 5

logan_gold
Community Manager
Community Manager

Hi @Maryam H2, was Jeanette F's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.

0 Likes