OptQuest permutation problem

OptQuest permutation problem

dawid_dabal
Not applicable
16 Views
2 Replies
Message 1 of 3

OptQuest permutation problem

dawid_dabal
Not applicable

[ FlexSim 17.1.2 ]

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:

6821-7ks8d.png

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)

6822-hs7ov.png

Is this a bug?

0 Likes
Accepted solutions (1)
17 Views
2 Replies
Replies (2)
Message 2 of 3

sam_stubbsYXX86
Community Manager
Community Manager

@jordan.johnson

Are you familiar with this issue?

0 Likes
Message 3 of 3

JordanLJohnson
Autodesk
Autodesk
Accepted solution

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.

.


Jordan Johnson
Principal Software Engineer
>