Determining the conflict based on the opposing objectives
Now, we want to loop through the steps in the previous section to find better results for scenario A and then work backward to find reasonably good values for scenario B. Please refer to Figure 12.2, which summarizes these steps. First, we will do this with the classical probabilistic solver and then use D-Wave.
Evaluating the results with the probabilistic solver
We can quickly visualize and then evaluate the conflict by looping through the steps multiple times and plotting the results of each scenario. Here, we will continue to use the probabilistic solver:
- The following code is for scenario A and accumulates supplier and inventory energy values for plotting. We will repeat the process
20
times, as set in thetotal
variable. The code lines should be familiar from the previous section. At the end of the code, we will convert the item values from them_i
matrix into actual product numbers that are stored ini_item...