You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which means the first 10 elements of array times the first array of chemi_list plus last 10 elements of array times the second array of chemi_list0 minus chemi_to_achieve should equal to 0.
from concurrent import futures
with futures.ThreadPoolExecutor(max_workers=optimizer.num_workers) as executor:
recommendation = optimizer.minimize(objective, verbosity=2, executor=executor, batch_mode=False)
TypeError: can only concatenate tuple (not "dict") to tuple
can anyone tell me how to solve this?
The text was updated successfully, but these errors were encountered:
redcican
changed the title
How to perform an equality constrain
How to perform an equality constraint
Sep 14, 2022
which means the first 10 elements of array times the first array of chemi_list plus last 10 elements of array times the second array of chemi_list0 minus chemi_to_achieve should equal to 0.
There is a discrepancy between the documentation on the website and in the code.
On the website >= 0 is a passing value, but in the code this is reversed and any value > 0 is a fail.
Please check if your code works after taking this into account.
I was wondering how to perform an equality constrain by using nevergrad:
the objective is defined as:
where
reg
is a linear regression function,price_list
is array of shape (20,) I want to minimize this objective function.let's say I have a
array
of shape (20,) to optimize, it has lower bound of 0, and upper bound of 100.The constraint is:
which means the first 10 elements of array times the first array of
chemi_list
plus last 10 elements of array times the second array ofchemi_list0
minus chemi_to_achieve should equal to 0.the all constants arrays look like below:
But I kept getting error
TypeError: can only concatenate tuple (not "dict") to tuple
can anyone tell me how to solve this?
The text was updated successfully, but these errors were encountered: