이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
Why the lsqnonlin solver not able to solve the problem when used with MultiStart?
조회 수: 1 (최근 30일)
이전 댓글 표시
Siva Rama Krishna Ayaluru
2023년 6월 9일
I want to solve two non-linear equations using lsqnonlin solver. For this I created a problem using CreateOptimProblem and solving it using MultiStart since my optimization problem is not convex rather having multiple local minima. I used the below code:
%The code below solves two equations. The initial part of the code generates 10000 values of random data U,V,x_0,y_0 which are seed values for fsolve
clc
clear all
close all
c=4;
d=10^-3;
alpha=1;
n=10;
N1=35;
%Generating 35 values of Gaussian distributed random delay in the range
%5*10^-3 and 6*10^-3
a=5*10^-3;
b=6*10^-3;
X = (b-a).*randn(1,35) + a;
X1 = X;
%Generating T_1_i_A
T_1_i_A=0.0001:0.0001:0.0035;
%Generating T_2_i_B and T_2_i_P from T_1_i_A,d,X
T_2_i_B=zeros(N1);
for j=1:N1
T_2_i_B(j)=T_1_i_A(j)+10*10^-3+2.02*(T_1_i_A(j)-T_1_i_A(1))+15*10^-4+X(j);
end
T_2_i_P=zeros(N1);
for j=1:N1
T_2_i_P(j)=T_1_i_A(j)+20*10^-3+1.01*(T_1_i_A(j)-T_1_i_A(1))+5*10^-4+X1(j);
end
%finding U and V
U=T_2_i_P-T_2_i_B;
V=T_1_i_A-T_1_i_A(1);
fun = @root2d;
%Generating 10000 random values of pre-defined clock offset in the range
%5*10^-6 and 30*10^-6
a=-10*10^-3;
b=10*10^-3;
%a=5*10^-6;
%b=30*10^-6;
x_0 = (b-a).*rand(1,n) + a;
%Generating 10000 random values of pre-defined clock skew in the range
%1.01 and 1.20
a1=0.99;
b1=1.01;
y_0=(b1-a1).*rand(1,n)+a1;
x0=zeros(2,n);
for i=1:n
x0(:,i)=[x_0(i); y_0(i)];
end
maxN=35;
x = zeros(size(x0,1), n, maxN);
for N=5:maxN
for i=1:n
problem=createOptimProblem('lsqnonlin','objective',@(x) root2d(x, U(N),V(N),N,c,d,alpha), 'x0', x0(:,i),'lb', [-10*10^-3;0.99], 'ub', [10*10^-3;1.01],'options',optimoptions(@lsqnonlin,'Algorithm','trust-region-reflective'));
ms = MultiStart('StartPointsToRun','bounds');
x(:,i,N) = run(ms,problem,20);
end
mse_theta_offset_hat_final(N)=mse(x(1,:,N),x_0);
mse_theta_skew_hat_final(N)=mse(x(2,:,N),y_0);
end
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
MultiStart completed the runs from all start points.
All 20 local solver runs converged with a positive local solver exit flag.
%Plots
k=5:N1;
subplot(2,1,1),plot(k,mse_theta_offset_hat_final(5:N1),'r+-')
title('clock offset')
xlabel('No. of Observations')
ylabel('MSE')
grid on
subplot(2,1,2),plot(k,mse_theta_skew_hat_final(5:N1),'-*')
title('clock skew')
xlabel('No. of Observations')
ylabel('MSE')
grid on
function f = root2d(x, U, V, N,c,d,alpha)
f(1)=(1.5./(U-x(1)-x(2)*V+d)-(c/2)./(U-x(1)-x(2)*V+d).^2)*N+alpha*sum(1:N);
f(2)=((1.5*V)./(U-x(1)-x(2)*V+d)-(c/2)*V./(U-x(1)-x(2)*V+d).^2+alpha*V)*N;
end
답변 (1개)
Torsten
2023년 6월 9일
이동: Torsten
2023년 6월 9일
If you substitute
y = 1/(U-x(1)-x(2)*V+d)
you will see that you have two equations in one unknown, namely y.
So most probably, you won't get a solution that satisfies both equations exactly.
And if you aim at the least-squares solution y*, there will most probably be infinitly many combinations for x(1) and x(2) such that
y* = 1/(U-x(1)-x(2)*V+d)
In other words: Your code will produce garbage.
참고 항목
카테고리
Help Center 및 File Exchange에서 Global or Multiple Starting Point Search에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom(English)
아시아 태평양
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)