필터 지우기
필터 지우기

Optimization of two linear models with constraint

조회 수: 1 (최근 30일)
Mario Trevino
Mario Trevino 2012년 10월 6일
I have a dataset which is a 'v-shaped' pattern of dots: y_observed and want to adjust two linear regressions with a turning point TP so that a cost function minimices the errors for the to models, y_calc1=m1*x(1:TP)+b1, y_calc2=m2*x(TP:end)+b2 AND y_calc1(TP)=y_calc2(TP).
Can somebody help me with this? its a simple 'fmincon' problem

채택된 답변

Matt J
Matt J 2012년 10월 6일
This should be applicable.
What you describe is a first order spline with a single free knot.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Quadratic Programming and Cone Programming에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by