question

Dawid Dabal avatar image
0 Likes"
Dawid Dabal asked Jordan Johnson answered

OptQuest permutation problem

permutation.fsmI have a problem with permutation using OptQuest - I suspect that Lower/Upper bounds don't work properly.

In this sample model I want to find permutation:

Each variable is a cell in GlobalTable1. My PFM is GlobalTable1.cell(1,1).value and I want to minimize this value (my PFM is the same as Variable 1).

Solutions generated by OptQuest are between 1 and 7 - but they should be between 2 and 8 (lower bound = 2, upper bound = 8)

Is this a bug?

FlexSim 17.1.2
optquestpermutation
7ks8d.png (5.3 KiB)
hs7ov.png (13.0 KiB)
permutation.fsm (63.0 KiB)
· 1
5 |100000

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

Sam Stubbs avatar image Sam Stubbs ♦ commented ·

@jordan.johnson

Are you familiar with this issue?

0 Likes 0 ·

1 Answer

Jordan Johnson avatar image
3 Likes"
Jordan Johnson answered

The lower and upper bounds for permutation variables are ignored by the Optimizer. As a workaround, you will need to write code that shifts the value in the table by 1:

var myValue = Table("GlobalTable1")[1][1] + 1;

This behavior is why the UI sets those values to N/A (or not applicable) when you change the variable type to permutation.

5 |100000

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