필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Optimization with symbolic math

조회 수: 1 (최근 30일)
Marianne
Marianne 2013년 11월 1일
마감: MATLAB Answer Bot 2021년 8월 20일
I want to find the values of c0, c1, c2 maximizing
f = sym('-((c1-a)*ln(c1-a)-(c1-a))/3+(c1*lnc1-c1)/3-((c2-b)*ln(c2-b)-(c2-b))/6+(c2*lnc2-c2)/6+(1+h10+h20)*lnc0
subject to the following constraints
g = sym('c0(1+h10+h20)+h11c1+h22c2=3*h11+6*h22')
h10 = 1 - (c1-c0)/3
h11 = (c1-c0)/3
h20 = 1 - (c2-c0)/6
h22 = (c2 - c0)/6
All values of C is between 1 and 6.
How do I do this in MatLab?

답변 (1개)

Sean de Wolski
Sean de Wolski 2013년 11월 1일
Do you need to solve this symbolically or would using one of the numerical solvers like fmincon or patternsearch work for you?
doc fmincon
doc patternsearch
  댓글 수: 1
Marianne
Marianne 2013년 11월 1일
I want to solve it numerically, but knowing nothing about matlab I have no idea how to do it. Tried to search in tutorials, but didn't really know what to look for. Will look up fmincon and patternsearch, thank you=)

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by