Inverse ProblemΒΆ

There is a result from a complex calculation, but you do not know the input parameters for the calculation to reproduce the result (target result). In this case, your black-box function would be the complex calculation that returns the difference (distance) between the target result and the result corresponding to the given input parameters.

import math
from datetime import timedelta

import numpy as np
from amplify import FixstarsClient
from amplify_bbopt import (
    BinaryVariable,
    DatasetGenerator,
    IntegerVariable,
    KernelQAOptimizer,
    RealVariable,
    blackbox,
    plot_history,
)

from utils.pseudo_simulators import (
    pseudo_complex_calculation as complex_calculation,
)

np.set_printoptions(legacy="1.25")

target_result = (25.0, 0.25)


@blackbox
def objective_distance(
    x0: bool = BinaryVariable(),
    x1: int = IntegerVariable((-10, 10)),
    x2: float = RealVariable((-5, 5), 200),
) -> float:
    """This black-box function executes complex_calculation().

    It returns the distance between the obtained output
    and the target output. Exponent is for scaling.
    """
    result = complex_calculation(x0, x1, x2)
    print(f"{x0=}, {x1=}, {x2=}, {result=}")
    return -math.exp(-math.dist(target_result, result))  # value to minimize


# Generate initial training data set
num_init_data = 10
data = DatasetGenerator(objective=objective_distance).generate(
    num_samples=num_init_data
)

# Set up solver client
client = FixstarsClient()
client.parameters.timeout = timedelta(milliseconds=2000)  # 2 seconds
# client.token = "xxxxxxxxxxx"  # Enter your Amplify AE API token.

# Instantiate the FMQA optimizer
optimizer = KernelQAOptimizer(
    data=data, client=client, objective=objective_distance
)

# Perform FMQA optimization for [num_cycles] cycles
optimizer.optimize(num_cycles=50)

# Print results
print(f"{optimizer.best_solution=}")  # Solution (optimal input)
print(f"{optimizer.best_objective=:.3e}")  # Objective function value
Hide code cell output
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #0/10 initial data for objective_distance
amplify-bbopt | 2024/10/04 05:32:02 | INFO | - [obj]: x0=True, x1=3, x2=0.12562814070351802, result=(9.0, 2.97267717320992)
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #1/10 initial data for objective_distance
amplify-bbopt | 2024/10/04 05:32:02 | INFO | - [obj]: x0=False, x1=-4, x2=-4.597989949748744, result=(16, 21.141511577990457)
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #2/10 initial data for objective_distance
amplify-bbopt | 2024/10/04 05:32:02 | INFO | - [obj]: x0=False, x1=-10, x2=-3.241206030150754, result=(100, 10.50541652988561)
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #3/10 initial data for objective_distance
amplify-bbopt | 2024/10/04 05:32:02 | INFO | - [obj]: x0=True, x1=3, x2=4.145728643216081, result=(9.0, 21.094234432117137)
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #4/10 initial data for objective_distance
amplify-bbopt | 2024/10/04 05:32:02 | INFO | - [obj]: x0=True, x1=2, x2=4.748743718592966, result=(4.0, 32.629500573973246)
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #5/10 initial data for objective_distance
amplify-bbopt | 2024/10/04 05:32:02 | INFO | - [obj]: x0=True, x1=3, x2=0.4271356783919602, result=(9.0, 19.152626477630005)
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #6/10 initial data for objective_distance
amplify-bbopt | 2024/10/04 05:32:02 | INFO | - [obj]: x0=True, x1=9, x2=-2.236180904522613, result=(81.0, 14.133316256116041)
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #7/10 initial data for objective_distance
amplify-bbopt | 2024/10/04 05:32:02 | INFO | - [obj]: x0=True, x1=4, x2=-5.0, result=(16.0, 25.0)
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #8/10 initial data for objective_distance
amplify-bbopt | 2024/10/04 05:32:02 | INFO | - [obj]: x0=False, x1=8, x2=0.5276381909547743, result=(64, 0.27840206055402683)
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #9/10 initial data for objective_distance
amplify-bbopt | 2024/10/04 05:32:02 | INFO | - [obj]: x0=False, x1=6, x2=2.2864321608040203, result=(36, 5.2277720259589415)
amplify-bbopt | 2024/10/04 05:32:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:02 | INFO | #1/50 optimization cycle, constraint wt: 1.14e-05
amplify-bbopt | 2024/10/04 05:32:02 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:05 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:05 | INFO | modifying solution (11, is_frequent=False), {'x0': False, 'x1': 6, 'x2': 2.2864321608040203} --> {'x0': True, 'x1': -7, 'x2': -4.1457286432160805}.
amplify-bbopt | 2024/10/04 05:32:05 | INFO | - [obj]: x0=True, x1=-7, x2=-4.1457286432160805, result=(49.0, 21.094234432117076)
amplify-bbopt | 2024/10/04 05:32:05 | INFO | y_hat=-1.565e-14, best objective=-5.707e-06
amplify-bbopt | 2024/10/04 05:32:05 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:05 | INFO | #2/50 optimization cycle, constraint wt: 1.14e-05
amplify-bbopt | 2024/10/04 05:32:05 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:07 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:07 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 6, 'x2': 2.2864321608040203} --> {'x0': True, 'x1': -10, 'x2': 0.4271356783919602}.
amplify-bbopt | 2024/10/04 05:32:07 | INFO | - [obj]: x0=True, x1=-10, x2=0.4271356783919602, result=(100.0, 19.152626477630005)
amplify-bbopt | 2024/10/04 05:32:07 | INFO | y_hat=-2.566e-34, best objective=-5.707e-06
amplify-bbopt | 2024/10/04 05:32:07 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:07 | INFO | #3/50 optimization cycle, constraint wt: 1.14e-05
amplify-bbopt | 2024/10/04 05:32:07 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:10 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:10 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 6, 'x2': 2.2864321608040203} --> {'x0': False, 'x1': -4, 'x2': -0.17587939698492416}.
amplify-bbopt | 2024/10/04 05:32:10 | INFO | - [obj]: x0=False, x1=-4, x2=-0.17587939698492416, result=(16, 0.030933562283780552)
amplify-bbopt | 2024/10/04 05:32:10 | INFO | y_hat=-1.231e-04, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:10 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:10 | INFO | #4/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:10 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:14 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:14 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': -0.17587939698492416} --> {'x0': False, 'x1': -2, 'x2': -4.748743718592965}.
amplify-bbopt | 2024/10/04 05:32:14 | INFO | - [obj]: x0=False, x1=-2, x2=-4.748743718592965, result=(4, 22.55056690487614)
amplify-bbopt | 2024/10/04 05:32:14 | INFO | y_hat=-4.974e-14, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:14 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:14 | INFO | #5/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:14 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:17 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:17 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': -0.17587939698492416} --> {'x0': False, 'x1': -8, 'x2': -4.949748743718593}.
amplify-bbopt | 2024/10/04 05:32:17 | INFO | - [obj]: x0=False, x1=-8, x2=-4.949748743718593, result=(64, 24.50001262594379)
amplify-bbopt | 2024/10/04 05:32:17 | INFO | y_hat=-1.136e-20, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:17 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:17 | INFO | #6/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:17 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:19 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:19 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': -0.17587939698492416} --> {'x0': True, 'x1': 1, 'x2': 1.4824120603015079}.
amplify-bbopt | 2024/10/04 05:32:19 | INFO | - [obj]: x0=True, x1=1, x2=1.4824120603015079, result=(1.0, 22.136547226296244)
amplify-bbopt | 2024/10/04 05:32:19 | INFO | y_hat=-7.828e-15, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:19 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:19 | INFO | #7/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:19 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:24 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:24 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': -0.17587939698492416} --> {'x0': False, 'x1': 2, 'x2': 2.6381909547738696}.
amplify-bbopt | 2024/10/04 05:32:24 | INFO | - [obj]: x0=False, x1=2, x2=2.6381909547738696, result=(4, 6.960051513850662)
amplify-bbopt | 2024/10/04 05:32:24 | INFO | y_hat=-2.664e-10, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:24 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:24 | INFO | #8/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:24 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:27 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:27 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': -0.17587939698492416} --> {'x0': False, 'x1': -1, 'x2': 5.0}.
amplify-bbopt | 2024/10/04 05:32:27 | INFO | - [obj]: x0=False, x1=-1, x2=5.0, result=(1, 25.0)
amplify-bbopt | 2024/10/04 05:32:27 | INFO | y_hat=-1.065e-15, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:27 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:27 | INFO | #9/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:27 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:32 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:32 | INFO | modifying solution (1, is_frequent=True), {'x0': False, 'x1': -4, 'x2': -0.17587939698492416} --> {'x0': False, 'x1': -4, 'x2': -0.12562814070351713}.
amplify-bbopt | 2024/10/04 05:32:32 | INFO | - [obj]: x0=False, x1=-4, x2=-0.12562814070351713, result=(16, 0.015782429736622697)
amplify-bbopt | 2024/10/04 05:32:32 | INFO | y_hat=-1.230e-04, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:32 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:32 | INFO | #10/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:32 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:34 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:34 | INFO | modifying solution (2, is_frequent=True), {'x0': False, 'x1': -4, 'x2': -0.17587939698492416} --> {'x0': False, 'x1': -4, 'x2': -0.0753768844221101}.
amplify-bbopt | 2024/10/04 05:32:34 | INFO | - [obj]: x0=False, x1=-4, x2=-0.0753768844221101, result=(16, 0.005681674705184145)
amplify-bbopt | 2024/10/04 05:32:34 | INFO | y_hat=-1.230e-04, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:34 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:34 | INFO | #11/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:34 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:37 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:37 | INFO | modifying solution (1, is_frequent=True), {'x0': False, 'x1': -4, 'x2': -0.17587939698492416} --> {'x0': True, 'x1': -4, 'x2': -0.17587939698492416}.
amplify-bbopt | 2024/10/04 05:32:37 | INFO | - [obj]: x0=True, x1=-4, x2=-0.17587939698492416, result=(16.0, 5.540329417454553)
amplify-bbopt | 2024/10/04 05:32:37 | INFO | y_hat=-2.925e-05, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:37 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:37 | INFO | #12/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:37 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:39 | INFO | num_iterations: 20
amplify-bbopt | 2024/10/04 05:32:39 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': -0.12562814070351713} --> {'x0': True, 'x1': 1, 'x2': -1.2311557788944723}.
amplify-bbopt | 2024/10/04 05:32:39 | INFO | - [obj]: x0=True, x1=1, x2=-1.2311557788944723, result=(1.0, 10.33449173231617)
amplify-bbopt | 2024/10/04 05:32:39 | INFO | y_hat=-4.945e-12, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:39 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:39 | INFO | #13/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:39 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:42 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:42 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': -0.12562814070351713} --> {'x0': False, 'x1': -2, 'x2': -0.12562814070351713}.
amplify-bbopt | 2024/10/04 05:32:42 | INFO | - [obj]: x0=False, x1=-2, x2=-0.12562814070351713, result=(4, 0.015782429736622697)
amplify-bbopt | 2024/10/04 05:32:42 | INFO | y_hat=-7.573e-10, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:42 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:42 | INFO | #14/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:42 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:46 | INFO | num_iterations: 20
amplify-bbopt | 2024/10/04 05:32:46 | INFO | - [obj]: x0=False, x1=-4, x2=1.4824120603015079, result=(16, 2.197545516527361)
amplify-bbopt | 2024/10/04 05:32:46 | INFO | y_hat=-1.002e-04, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:46 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:46 | INFO | #15/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:46 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:51 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:51 | INFO | - [obj]: x0=False, x1=-4, x2=0.12562814070351802, result=(16, 0.015782429736622923)
amplify-bbopt | 2024/10/04 05:32:51 | INFO | y_hat=-1.230e-04, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:51 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:51 | INFO | #16/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:51 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:54 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:54 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': 0.12562814070351802} --> {'x0': True, 'x1': 8, 'x2': -4.296482412060302}.
amplify-bbopt | 2024/10/04 05:32:54 | INFO | - [obj]: x0=True, x1=8, x2=-4.296482412060302, result=(64.0, 31.338994208455155)
amplify-bbopt | 2024/10/04 05:32:54 | INFO | y_hat=-2.185e-22, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:54 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:54 | INFO | #17/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:54 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:57 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:32:57 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': 0.12562814070351802} --> {'x0': True, 'x1': 1, 'x2': -1.4321608040201004}.
amplify-bbopt | 2024/10/04 05:32:57 | INFO | - [obj]: x0=True, x1=1, x2=-1.4321608040201004, result=(1.0, 21.156326320546118)
amplify-bbopt | 2024/10/04 05:32:57 | INFO | y_hat=-1.503e-14, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:57 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:57 | INFO | #18/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:57 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:32:59 | INFO | num_iterations: 18
amplify-bbopt | 2024/10/04 05:32:59 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': 0.12562814070351802} --> {'x0': True, 'x1': 2, 'x2': -2.487437185929648}.
amplify-bbopt | 2024/10/04 05:32:59 | INFO | - [obj]: x0=True, x1=2, x2=-2.487437185929648, result=(4.0, 26.156206658423535)
amplify-bbopt | 2024/10/04 05:32:59 | INFO | y_hat=-3.288e-15, best objective=-1.231e-04
amplify-bbopt | 2024/10/04 05:32:59 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:32:59 | INFO | #19/50 optimization cycle, constraint wt: 2.46e-04
amplify-bbopt | 2024/10/04 05:32:59 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:02 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:02 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': -4, 'x2': 0.12562814070351802} --> {'x0': False, 'x1': 5, 'x2': 0.9296482412060305}.
amplify-bbopt | 2024/10/04 05:33:02 | INFO | - [obj]: x0=False, x1=5, x2=0.9296482412060305, result=(25, 0.8642458523774659)
amplify-bbopt | 2024/10/04 05:33:02 | INFO | y_hat=-5.410e-01, best objective=-5.410e-01
amplify-bbopt | 2024/10/04 05:33:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:02 | INFO | #20/50 optimization cycle, constraint wt: 1.08e+00
amplify-bbopt | 2024/10/04 05:33:02 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:06 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:06 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.9296482412060305} --> {'x0': True, 'x1': -3, 'x2': 2.6381909547738696}.
amplify-bbopt | 2024/10/04 05:33:06 | INFO | - [obj]: x0=True, x1=-3, x2=2.6381909547738696, result=(9.0, 23.421458656962745)
amplify-bbopt | 2024/10/04 05:33:06 | INFO | y_hat=-5.899e-13, best objective=-5.410e-01
amplify-bbopt | 2024/10/04 05:33:06 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:06 | INFO | #21/50 optimization cycle, constraint wt: 1.08e+00
amplify-bbopt | 2024/10/04 05:33:06 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:11 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:11 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.9296482412060305} --> {'x0': False, 'x1': -4, 'x2': 3.9447236180904532}.
amplify-bbopt | 2024/10/04 05:33:11 | INFO | - [obj]: x0=False, x1=-4, x2=3.9447236180904532, result=(16, 15.560844423120637)
amplify-bbopt | 2024/10/04 05:33:11 | INFO | y_hat=-1.936e-08, best objective=-5.410e-01
amplify-bbopt | 2024/10/04 05:33:11 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:11 | INFO | #22/50 optimization cycle, constraint wt: 1.08e+00
amplify-bbopt | 2024/10/04 05:33:11 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:13 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:13 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.9296482412060305} --> {'x0': False, 'x1': -6, 'x2': 2.1356783919597992}.
amplify-bbopt | 2024/10/04 05:33:13 | INFO | - [obj]: x0=False, x1=-6, x2=2.1356783919597992, result=(36, 4.561122193883994)
amplify-bbopt | 2024/10/04 05:33:13 | INFO | y_hat=-7.395e-06, best objective=-5.410e-01
amplify-bbopt | 2024/10/04 05:33:13 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:13 | INFO | #23/50 optimization cycle, constraint wt: 1.08e+00
amplify-bbopt | 2024/10/04 05:33:13 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:18 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:18 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.9296482412060305} --> {'x0': True, 'x1': -9, 'x2': -4.1959798994974875}.
amplify-bbopt | 2024/10/04 05:33:18 | INFO | - [obj]: x0=True, x1=-9, x2=-4.1959798994974875, result=(81.0, 24.276860946689315)
amplify-bbopt | 2024/10/04 05:33:18 | INFO | y_hat=-3.432e-27, best objective=-5.410e-01
amplify-bbopt | 2024/10/04 05:33:18 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:18 | INFO | #24/50 optimization cycle, constraint wt: 1.08e+00
amplify-bbopt | 2024/10/04 05:33:18 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:21 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:21 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.9296482412060305} --> {'x0': False, 'x1': 7, 'x2': -0.9798994974874367}.
amplify-bbopt | 2024/10/04 05:33:21 | INFO | - [obj]: x0=False, x1=7, x2=-0.9798994974874367, result=(49, 0.9602030251761309)
amplify-bbopt | 2024/10/04 05:33:21 | INFO | y_hat=-3.736e-11, best objective=-5.410e-01
amplify-bbopt | 2024/10/04 05:33:21 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:21 | INFO | #25/50 optimization cycle, constraint wt: 1.08e+00
amplify-bbopt | 2024/10/04 05:33:21 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:27 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:27 | INFO | modifying solution (1, is_frequent=True), {'x0': False, 'x1': 5, 'x2': 0.9296482412060305} --> {'x0': False, 'x1': 5, 'x2': 0.8793969849246235}.
amplify-bbopt | 2024/10/04 05:33:27 | INFO | - [obj]: x0=False, x1=5, x2=0.8793969849246235, result=(25, 0.7733390570945184)
amplify-bbopt | 2024/10/04 05:33:27 | INFO | y_hat=-5.925e-01, best objective=-5.925e-01
amplify-bbopt | 2024/10/04 05:33:27 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:27 | INFO | #26/50 optimization cycle, constraint wt: 1.19e+00
amplify-bbopt | 2024/10/04 05:33:27 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:30 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:30 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.8793969849246235} --> {'x0': True, 'x1': 8, 'x2': -4.2462311557788945}.
amplify-bbopt | 2024/10/04 05:33:30 | INFO | - [obj]: x0=True, x1=8, x2=-4.2462311557788945, result=(64.0, 27.793697692941123)
amplify-bbopt | 2024/10/04 05:33:30 | INFO | y_hat=-1.838e-21, best objective=-5.925e-01
amplify-bbopt | 2024/10/04 05:33:30 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:30 | INFO | #27/50 optimization cycle, constraint wt: 1.19e+00
amplify-bbopt | 2024/10/04 05:33:30 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:36 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:36 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.8793969849246235} --> {'x0': False, 'x1': 4, 'x2': -1.6331658291457285}.
amplify-bbopt | 2024/10/04 05:33:36 | INFO | - [obj]: x0=False, x1=4, x2=-1.6331658291457285, result=(16, 2.667230625489255)
amplify-bbopt | 2024/10/04 05:33:36 | INFO | y_hat=-8.971e-05, best objective=-5.925e-01
amplify-bbopt | 2024/10/04 05:33:36 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:36 | INFO | #28/50 optimization cycle, constraint wt: 1.19e+00
amplify-bbopt | 2024/10/04 05:33:36 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:39 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:39 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.8793969849246235} --> {'x0': True, 'x1': -7, 'x2': 3.643216080402011}.
amplify-bbopt | 2024/10/04 05:33:39 | INFO | - [obj]: x0=True, x1=-7, x2=3.643216080402011, result=(49.0, 29.490273166384696)
amplify-bbopt | 2024/10/04 05:33:39 | INFO | y_hat=-3.727e-17, best objective=-5.925e-01
amplify-bbopt | 2024/10/04 05:33:39 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:39 | INFO | #29/50 optimization cycle, constraint wt: 1.19e+00
amplify-bbopt | 2024/10/04 05:33:39 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:41 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:41 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.8793969849246235} --> {'x0': False, 'x1': 8, 'x2': 2.9899497487437188}.
amplify-bbopt | 2024/10/04 05:33:41 | INFO | - [obj]: x0=False, x1=8, x2=2.9899497487437188, result=(64, 8.939799500012628)
amplify-bbopt | 2024/10/04 05:33:41 | INFO | y_hat=-4.438e-18, best objective=-5.925e-01
amplify-bbopt | 2024/10/04 05:33:41 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:41 | INFO | #30/50 optimization cycle, constraint wt: 1.19e+00
amplify-bbopt | 2024/10/04 05:33:41 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:44 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:44 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.8793969849246235} --> {'x0': True, 'x1': -6, 'x2': 2.6884422110552766}.
amplify-bbopt | 2024/10/04 05:33:44 | INFO | - [obj]: x0=True, x1=-6, x2=2.6884422110552766, result=(36.0, 20.999794636219544)
amplify-bbopt | 2024/10/04 05:33:44 | INFO | y_hat=-6.317e-11, best objective=-5.925e-01
amplify-bbopt | 2024/10/04 05:33:44 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:44 | INFO | #31/50 optimization cycle, constraint wt: 1.19e+00
amplify-bbopt | 2024/10/04 05:33:44 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:47 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:47 | INFO | modifying solution (1, is_frequent=True), {'x0': False, 'x1': 5, 'x2': 0.8793969849246235} --> {'x0': True, 'x1': 5, 'x2': 0.8793969849246235}.
amplify-bbopt | 2024/10/04 05:33:47 | INFO | - [obj]: x0=True, x1=5, x2=0.8793969849246235, result=(25.0, 3.5096415444481126)
amplify-bbopt | 2024/10/04 05:33:47 | INFO | y_hat=-3.840e-02, best objective=-5.925e-01
amplify-bbopt | 2024/10/04 05:33:47 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:47 | INFO | #32/50 optimization cycle, constraint wt: 1.19e+00
amplify-bbopt | 2024/10/04 05:33:47 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:51 | INFO | num_iterations: 20
amplify-bbopt | 2024/10/04 05:33:51 | INFO | - [obj]: x0=False, x1=1, x2=0.8793969849246235, result=(1, 0.7733390570945184)
amplify-bbopt | 2024/10/04 05:33:51 | INFO | y_hat=-3.754e-11, best objective=-5.925e-01
amplify-bbopt | 2024/10/04 05:33:51 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:51 | INFO | #33/50 optimization cycle, constraint wt: 1.19e+00
amplify-bbopt | 2024/10/04 05:33:51 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:54 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:54 | INFO | - [obj]: x0=False, x1=5, x2=1.4824120603015079, result=(25, 2.197545516527361)
amplify-bbopt | 2024/10/04 05:33:54 | INFO | y_hat=-1.426e-01, best objective=-5.925e-01
amplify-bbopt | 2024/10/04 05:33:54 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:54 | INFO | #34/50 optimization cycle, constraint wt: 1.19e+00
amplify-bbopt | 2024/10/04 05:33:54 | INFO | model corrcoef: 0.999, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:56 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:56 | INFO | - [obj]: x0=False, x1=5, x2=0.4271356783919602, result=(25, 0.18244488775536005)
amplify-bbopt | 2024/10/04 05:33:56 | INFO | y_hat=-9.347e-01, best objective=-9.347e-01
amplify-bbopt | 2024/10/04 05:33:56 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:56 | INFO | #35/50 optimization cycle, constraint wt: 1.87e+00
amplify-bbopt | 2024/10/04 05:33:57 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:33:59 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:33:59 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.4271356783919602} --> {'x0': False, 'x1': 9, 'x2': -4.0954773869346734}.
amplify-bbopt | 2024/10/04 05:33:59 | INFO | - [obj]: x0=False, x1=9, x2=-4.0954773869346734, result=(81, 16.77293502689326)
amplify-bbopt | 2024/10/04 05:33:59 | INFO | y_hat=-4.395e-26, best objective=-9.347e-01
amplify-bbopt | 2024/10/04 05:33:59 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:33:59 | INFO | #36/50 optimization cycle, constraint wt: 1.87e+00
amplify-bbopt | 2024/10/04 05:33:59 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:02 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:34:02 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.4271356783919602} --> {'x0': True, 'x1': 2, 'x2': 3.9949748743718594}.
amplify-bbopt | 2024/10/04 05:34:02 | INFO | - [obj]: x0=True, x1=2, x2=3.9949748743718594, result=(4.0, 15.964808355600715)
amplify-bbopt | 2024/10/04 05:34:02 | INFO | y_hat=-4.064e-12, best objective=-9.347e-01
amplify-bbopt | 2024/10/04 05:34:02 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:02 | INFO | #37/50 optimization cycle, constraint wt: 1.87e+00
amplify-bbopt | 2024/10/04 05:34:02 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:04 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:34:04 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.4271356783919602} --> {'x0': False, 'x1': 8, 'x2': 1.733668341708543}.
amplify-bbopt | 2024/10/04 05:34:04 | INFO | - [obj]: x0=False, x1=8, x2=1.733668341708543, result=(64, 3.0056059190424493)
amplify-bbopt | 2024/10/04 05:34:04 | INFO | y_hat=-1.048e-17, best objective=-9.347e-01
amplify-bbopt | 2024/10/04 05:34:04 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:04 | INFO | #38/50 optimization cycle, constraint wt: 1.87e+00
amplify-bbopt | 2024/10/04 05:34:04 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:07 | INFO | num_iterations: 18
amplify-bbopt | 2024/10/04 05:34:07 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.4271356783919602} --> {'x0': True, 'x1': -6, 'x2': 2.5879396984924625}.
amplify-bbopt | 2024/10/04 05:34:07 | INFO | - [obj]: x0=True, x1=-6, x2=2.5879396984924625, result=(36.0, 25.209365900878204)
amplify-bbopt | 2024/10/04 05:34:07 | INFO | y_hat=-1.426e-12, best objective=-9.347e-01
amplify-bbopt | 2024/10/04 05:34:07 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:07 | INFO | #39/50 optimization cycle, constraint wt: 1.87e+00
amplify-bbopt | 2024/10/04 05:34:07 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:10 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:34:10 | INFO | modifying solution (1, is_frequent=True), {'x0': False, 'x1': 5, 'x2': 0.4271356783919602} --> {'x0': False, 'x1': 5, 'x2': 0.3768844221105532}.
amplify-bbopt | 2024/10/04 05:34:10 | INFO | - [obj]: x0=False, x1=5, x2=0.3768844221105532, result=(25, 0.14204186762960563)
amplify-bbopt | 2024/10/04 05:34:10 | INFO | y_hat=-8.977e-01, best objective=-9.347e-01
amplify-bbopt | 2024/10/04 05:34:10 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:10 | INFO | #40/50 optimization cycle, constraint wt: 1.87e+00
amplify-bbopt | 2024/10/04 05:34:10 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:12 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:34:12 | INFO | modifying solution (1, is_frequent=True), {'x0': False, 'x1': 5, 'x2': 0.4271356783919602} --> {'x0': False, 'x1': 6, 'x2': 0.4271356783919602}.
amplify-bbopt | 2024/10/04 05:34:12 | INFO | - [obj]: x0=False, x1=6, x2=0.4271356783919602, result=(36, 0.18244488775536005)
amplify-bbopt | 2024/10/04 05:34:12 | INFO | y_hat=-1.670e-05, best objective=-9.347e-01
amplify-bbopt | 2024/10/04 05:34:12 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:12 | INFO | #41/50 optimization cycle, constraint wt: 1.87e+00
amplify-bbopt | 2024/10/04 05:34:12 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:15 | INFO | num_iterations: 18
amplify-bbopt | 2024/10/04 05:34:15 | INFO | modifying solution (1, is_frequent=True), {'x0': False, 'x1': 5, 'x2': 0.4271356783919602} --> {'x0': False, 'x1': 5, 'x2': 0.47738693467336724}.
amplify-bbopt | 2024/10/04 05:34:15 | INFO | - [obj]: x0=False, x1=5, x2=0.47738693467336724, result=(25, 0.2278982853968338)
amplify-bbopt | 2024/10/04 05:34:15 | INFO | y_hat=-9.781e-01, best objective=-9.781e-01
amplify-bbopt | 2024/10/04 05:34:15 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:15 | INFO | #42/50 optimization cycle, constraint wt: 1.96e+00
amplify-bbopt | 2024/10/04 05:34:15 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:17 | INFO | num_iterations: 18
amplify-bbopt | 2024/10/04 05:34:17 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.47738693467336724} --> {'x0': False, 'x1': 0, 'x2': -4.547738693467337}.
amplify-bbopt | 2024/10/04 05:34:17 | INFO | - [obj]: x0=False, x1=0, x2=-4.547738693467337, result=(0, 20.681927224059997)
amplify-bbopt | 2024/10/04 05:34:17 | INFO | y_hat=-9.503e-15, best objective=-9.781e-01
amplify-bbopt | 2024/10/04 05:34:17 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:17 | INFO | #43/50 optimization cycle, constraint wt: 1.96e+00
amplify-bbopt | 2024/10/04 05:34:17 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:20 | INFO | num_iterations: 18
amplify-bbopt | 2024/10/04 05:34:20 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.47738693467336724} --> {'x0': False, 'x1': 9, 'x2': 1.2311557788944727}.
amplify-bbopt | 2024/10/04 05:34:20 | INFO | - [obj]: x0=False, x1=9, x2=1.2311557788944727, result=(81, 1.5157445519052557)
amplify-bbopt | 2024/10/04 05:34:20 | INFO | y_hat=-4.713e-25, best objective=-9.781e-01
amplify-bbopt | 2024/10/04 05:34:20 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:20 | INFO | #44/50 optimization cycle, constraint wt: 1.96e+00
amplify-bbopt | 2024/10/04 05:34:20 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:25 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:34:25 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.47738693467336724} --> {'x0': False, 'x1': 10, 'x2': 1.0301507537688446}.
amplify-bbopt | 2024/10/04 05:34:25 | INFO | - [obj]: x0=False, x1=10, x2=1.0301507537688446, result=(100, 1.0612105754905186)
amplify-bbopt | 2024/10/04 05:34:25 | INFO | y_hat=-2.667e-33, best objective=-9.781e-01
amplify-bbopt | 2024/10/04 05:34:25 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:25 | INFO | #45/50 optimization cycle, constraint wt: 1.96e+00
amplify-bbopt | 2024/10/04 05:34:25 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:27 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:34:27 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.47738693467336724} --> {'x0': True, 'x1': -10, 'x2': -0.3768844221105523}.
amplify-bbopt | 2024/10/04 05:34:27 | INFO | - [obj]: x0=True, x1=-10, x2=-0.3768844221105523, result=(100.0, 17.296334752103295)
amplify-bbopt | 2024/10/04 05:34:27 | INFO | y_hat=-3.955e-34, best objective=-9.781e-01
amplify-bbopt | 2024/10/04 05:34:27 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:27 | INFO | #46/50 optimization cycle, constraint wt: 1.96e+00
amplify-bbopt | 2024/10/04 05:34:27 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:30 | INFO | num_iterations: 18
amplify-bbopt | 2024/10/04 05:34:30 | INFO | modifying solution (1, is_frequent=False), {'x0': False, 'x1': 5, 'x2': 0.47738693467336724} --> {'x0': True, 'x1': 5, 'x2': -0.9296482412060296}.
amplify-bbopt | 2024/10/04 05:34:30 | INFO | - [obj]: x0=True, x1=5, x2=-0.9296482412060296, result=(25.0, 1.8254078474892452)
amplify-bbopt | 2024/10/04 05:34:30 | INFO | y_hat=-2.069e-01, best objective=-9.781e-01
amplify-bbopt | 2024/10/04 05:34:30 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:30 | INFO | #47/50 optimization cycle, constraint wt: 1.96e+00
amplify-bbopt | 2024/10/04 05:34:30 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:32 | INFO | num_iterations: 18
amplify-bbopt | 2024/10/04 05:34:32 | INFO | modifying solution (1, is_frequent=True), {'x0': False, 'x1': 5, 'x2': 0.47738693467336724} --> {'x0': False, 'x1': 4, 'x2': 0.47738693467336724}.
amplify-bbopt | 2024/10/04 05:34:32 | INFO | - [obj]: x0=False, x1=4, x2=0.47738693467336724, result=(16, 0.2278982853968338)
amplify-bbopt | 2024/10/04 05:34:32 | INFO | y_hat=-1.234e-04, best objective=-9.781e-01
amplify-bbopt | 2024/10/04 05:34:32 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:32 | INFO | #48/50 optimization cycle, constraint wt: 1.96e+00
amplify-bbopt | 2024/10/04 05:34:32 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:35 | INFO | num_iterations: 18
amplify-bbopt | 2024/10/04 05:34:35 | INFO | modifying solution (4, is_frequent=True), {'x0': False, 'x1': 5, 'x2': 0.47738693467336724} --> {'x0': True, 'x1': 5, 'x2': 0.4271356783919602}.
amplify-bbopt | 2024/10/04 05:34:35 | INFO | - [obj]: x0=True, x1=5, x2=0.4271356783919602, result=(25.0, 19.152626477630005)
amplify-bbopt | 2024/10/04 05:34:35 | INFO | y_hat=-6.176e-09, best objective=-9.781e-01
amplify-bbopt | 2024/10/04 05:34:35 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:35 | INFO | #49/50 optimization cycle, constraint wt: 1.96e+00
amplify-bbopt | 2024/10/04 05:34:35 | INFO | model corrcoef: 0.999, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:40 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:34:40 | INFO | modifying solution (1, is_frequent=True), {'x0': False, 'x1': 5, 'x2': 0.47738693467336724} --> {'x0': False, 'x1': 5, 'x2': 0.5276381909547743}.
amplify-bbopt | 2024/10/04 05:34:40 | INFO | - [obj]: x0=False, x1=5, x2=0.5276381909547743, result=(25, 0.27840206055402683)
amplify-bbopt | 2024/10/04 05:34:40 | INFO | y_hat=-9.720e-01, best objective=-9.781e-01
amplify-bbopt | 2024/10/04 05:34:40 | INFO | ----------------------------------------
amplify-bbopt | 2024/10/04 05:34:40 | INFO | #50/50 optimization cycle, constraint wt: 1.96e+00
amplify-bbopt | 2024/10/04 05:34:40 | INFO | model corrcoef: 1.000, beta: 0.0
amplify-bbopt | 2024/10/04 05:34:44 | INFO | num_iterations: 19
amplify-bbopt | 2024/10/04 05:34:44 | INFO | modifying solution (3, is_frequent=True), {'x0': False, 'x1': 5, 'x2': 0.47738693467336724} --> {'x0': True, 'x1': 5, 'x2': 0.3768844221105532}.
amplify-bbopt | 2024/10/04 05:34:44 | INFO | - [obj]: x0=True, x1=5, x2=0.3768844221105532, result=(25.0, 17.296334752103334)
amplify-bbopt | 2024/10/04 05:34:44 | INFO | y_hat=-3.952e-08, best objective=-9.781e-01
optimizer.best_solution={'x0': False, 'x1': 5, 'x2': 0.47738693467336724}
optimizer.best_objective=-9.781e-01
fig = plot_history(optimizer.fetch_history(), log_scale=False)
fig.show()