x = sdpvar(6,1);
z = randn(6,100);
objective = sum(exp(sum((repmat(x,1,100)-z).^2)));
optimize(-1 <= x <= 1,objective,sdpsettings('solver','bmibnb'))
* Starting YALMIP global branch & bound.
* Upper solver : fmincon
* Lower solver : MOSEK
* LP solver : MOSEK
* -Extracting bounds from model
* -Perfoming root-node bound propagation
* -Feasible solution found by heuristics
* -Calling upper solver (found a solution!)
* -Branch-variables : 106
* -More root-node bound-propagation
* -Performing LP-based bound-propagation
* -And some more root-node bound-propagation
* Starting the b&b process
Node Upper Gap(%) Lower Open Time
1 : 9.32186E+06 0.00 9.32186E+06 0 10s Terminated in bound propagation
* Finished. Cost: 9321856.1338 (lower bound: 9321856.1338, relative gap 0%)
* Termination with all nodes pruned
* Timing: 11% spent in upper solver (1 problems solved)
* 0% spent in lower solver (0 problems solved)
* 81% spent in LP-based domain reduction (426 problems solved)
* 8% spent in upper heuristics (212 candidates tried)
ans =
struct with fields:
yalmipversion: '20200930'
matlabversion: '9.9.0.1524771 (R2020b) Update 2'
yalmiptime: 1.0495
solvertime: 10.2475
info: 'Successfully solved (BMIBNB)'
problem: 0