How should I make A and b matrix in fmincon function?
显示 更早的评论
Hello!
I have problem with minimization of my function. I would like to use fmincon function. To use it I need to make two matrix: A(coefficients befor variables in equetion) and b(free coefficient). It's my equetion: z=a+b*x1+c*x2+d*x3+e*x1x2+f*x1x3+g*x2x3+h*x1.^2+x2.^2+x3.^2 Can someone tell me how should I make these two matrix?
I'll really appreciate your help!
Mateusz
采纳的回答
更多回答(1 个)
Alan Weiss
2013-10-9
0 个投票
Perhaps the documentation can answer your questions. Here is the documentation on writing objective functions, and here is the documentation on writing constraints.
Alan Weiss
MATLAB mathematical toolbox documentation
类别
在 帮助中心 和 File Exchange 中查找有关 Mathematics 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!