question

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

Optimizer Solutions

How we can make the Optimizer test a specific solution? And maybe give the result for all other solutions between optimal/best solutions. For example, if you look at the pic below why optimizer doesn't give any output for "Room_Num" = 9?

1.png


Thanks!


FlexSim 21.2.2
optimizersolutionoptimal
1.png (20.9 KiB)
5 |100000

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

Jordan Johnson avatar image
3 Likes"
Jordan Johnson answered Maryam H2 commented
You can force the optimizer to run a specific solution by adding it to the list of Scenarios (on the Scenarios tab) and then check the box that says "Use scenarios as possible solutions", on the Optimizer Run tab. It's only visible if you check the "Show advanced options" box.


If the number of possible solutions is less than the number of available CPUs on your machine, OptQuest sometimes gets stuck. To avoid this bug, be sure that the "Max Cores" field on the Advanced tab is set to a non-zero value, such as 4 or 8. A zero indicates that all available cores should be used. If you don't get a message box to appear after either the max iterations or the max wall time has been hit, then OptQuest may be stuck.

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

Ryan Clark avatar image
0 Likes"
Ryan Clark answered Maryam H2 commented

Hi @Maryam H2,

Another thing you should try is changing the Wall Time to 0 seconds if it isn't already set to that value. That setting only allows the optimizer to run for a certain length of time before stopping, so that might be stopping your model short.

It doesn't appear that you can define a range for the objective, but you can definitely do that for constraints e.g. 10 < x < 20.

I'm not entirely sure about why the throughput doesn't change anymore, even though the number of rooms keeps increasing. It may be because your model has a finite input, so at some point, you reach a maximum in your throughput.

I hope this helps!

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

Ryan Clark avatar image
0 Likes"
Ryan Clark answered Maryam H2 commented

Hello @Maryam H2,

I don't know for sure without looking at your model, but there are a couple options you can modify with the optimizer. First, you can adjust the range of your parameters. If you decrease that range, the solutions will be more densely packed within that range. Secondly, you can change the "Max Solutions" setting, which allows the Optimizer to run more iterations to try to find the optimal solution (see image below): screenshot-2021-09-10-160201.png

Does this help address your problem? Let us know if you need further assistance!


· 2
5 |100000

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