Optimisation of a 3 vector velocity

조회 수: 1 (최근 30일)
Olivia Davison
Olivia Davison 2022년 10월 4일
편집: Olivia Davison 2022년 10월 14일
Hi, I am wanting to optimize the following code for a 2 dimensional vector.
V = [t*sin(x)*cos(gamma),
t*sin(gamma)];
  댓글 수: 2
Torsten
Torsten 2022년 10월 4일
Not clear what you are trying to do with this vector.
John D'Errico
John D'Errico 2022년 10월 4일
Sorry, but you are not making sense. Global AND discrete? What does that mean here? What would be discrete about this problem? What is maximized? Minimized? By max and min, are you talking about bounds on some variables? What variables?
Yes, you may have an idea what you want, but you need to get it across. Start by telling us WHAT you want to maximize or minimize.
What is a known? What is an unknown?
Be clear. In fact, it may help to be EXTREMELY clear. Tell us more than you think we need to know, since the odds are good that you think we know more than we possibly can know, given what you have said so far.

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

답변 (1개)

Jeffrey Clark
Jeffrey Clark 2022년 10월 4일
편집: Jeffrey Clark 2022년 10월 4일
@Olivia Davison, perhaps you are saying x, psi, gamma and velWind are related, one for each object: x(N,3), phi(N,1), gamma(N,1) and velWind(N,1)? Then velNav(N,3) would be:
velNav = [x(:,1).*sin(psi).*cos(gamma) ... % valNav(N,3)
x(:,2).*cos(psi).*cos(gamma) ...
x(:,3).*sin(gamma)+velWind ];
velMag = vecNorm(velNav,2,2); % velMag(N,1)
minMag = min(velMag);
maxMag = max(velMag);

카테고리

Help CenterFile Exchange에서 Surrogate Optimization에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by