How should I make A and b matrix in fmincon function?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
Alan Weiss
il 9 Ott 2013
0 voti
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
Categorie
Scopri di più su Mathematics in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!