Why my Nonlinear function cannot be solved??
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I'm MATLAB beginner. so please help me~^^*
fun_y =
function_handle with value:
@(y1,y2)y1.*8.0e+1+y2.*7.0e+1-log(y1)-log(y2)
y1 = optimvar('y1');
y2 = optimvar('y2');
prob.Objective = fcn2optimexpr(fun_y, y1, y2);
y0.y1 = 1;
y0.y2 = 1;
[sol,fval] = solve(prob,y0);
However, the error masssage is "Check for missing argument or incorrect argument data type in call to function 'solve'.".
I don't know how to correct... UU
Help me please...!
0 commentaires
Réponse acceptée
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Direct Search dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!