I have to solve for a maximization problemwith greek letters and simplify the expression but I don't know how to proceed

조회 수: 4 (최근 30일)
Hello,
I'd like to know how to insert greek letters in the command window to solve a maximization problem and also to simplify an expression. Actually, I don't need matlab to maximize but to simplify expressions with greek letters. Could you help me please ?

답변 (1개)

Andres
Andres 2022년 4월 22일
편집: Andres 2022년 4월 22일
To simplify expressions you need the Symbolic Math Toolbox in Matlab
or another computer algebra system
A greek letter inside a variable name throws an error
>> syms β
Error using syms
Invalid variable name.
so use a valid variable name instead like
syms beta
  댓글 수: 7
Torsten
Torsten 2022년 4월 23일
I'd like just to maximize for pi_H and Pi_G for the third period and get the optimal p_3^D* and omega_3^D* by substituting p_3^D* into omega_3^D.
Sorry, I still don't get what you are trying to do. Are pi_H and Pi_G already derivatives of an objective function with respect to omega_3^D and p_3^D and you want to solve pi_H = 0 and Pi_G = 0 for omega_3^D* and p_3^D* to satisfy the necessary condition for a maximum ?
Nordine Bouchelia
Nordine Bouchelia 2022년 4월 23일
No pi_H and pi_G are the objective functions of the whole 3 periods summed together for firm H and G
I need to derive with repect to omega_3^D and p_3^D and solve for the optimal values.
But for the expression of omega_3^D I for example, I need to get rid of the p_3^D so, substitute it inside the expression and find the same results as described above.

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

카테고리

Help CenterFile Exchange에서 Christmas / Winter에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by