constr from optimization toolbox

조회 수: 7 (최근 30일)
Matt44
Matt44 2023년 1월 16일
댓글: Matt44 2023년 1월 19일
I'm a beginner regarding Matlab, but for my work I try to get an old program running which was written in 1997 in Matlab. Unfortunately I have quite some problems get this running in a current Matlab version. It has been working fine as it is 25 years ago, that much I know.
Where I'm stuck at the moment is this line:
[Xopt,opt] = constr('kropt', xstart, options, Vlb, Vub, [], NU, 1, cymma);
Here I get the error message, that the command "constr" is not found, or invalid. According to the comments in the code it is supposed to be from the Optimization TB. Has this command been replaced by something else? Or can anybody give me a hint what the problem might be?
Thank you in advance
  댓글 수: 1
Luca Ferro
Luca Ferro 2023년 1월 16일
what is constr supposed to do in your code?

댓글을 달려면 로그인하십시오.

채택된 답변

Nikhilesh
Nikhilesh 2023년 1월 16일
  댓글 수: 1
Matt44
Matt44 2023년 1월 19일
Thank you, the github link helped out and solved the problem.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

제품


릴리스

R13SP1

Community Treasure Hunt

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

Start Hunting!

Translated by