question

Maryam H2 avatar image
0 Likes"
Maryam H2 asked Logan Gold commented

OptQuest Error: Error in constraint equation

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



FlexSim 24.1.0
optquestparametersinteger
· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·
@Maryam H2, can you provide informations like constraint statement code, screenshot of error, perhaps an example model? Thank you.
0 Likes 0 ·
Maryam H2 avatar image Maryam H2 Joerg Vogel commented ·

@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 0 ·
1718652416742.png (74.4 KiB)
Logan Gold avatar image Logan Gold ♦♦ commented ·

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 0 ·

1 Answer

Jeanette F avatar image
0 Likes"
Jeanette F answered

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


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.