Optimization problem with quadratic function

1 回表示 (過去 30 日間)
laura bagnale
laura bagnale 2021 年 6 月 10 日
コメント済み: Matt J 2021 年 6 月 11 日
Hello everyone,
I hope someone could help me. This is the problem:
I have 12 points which are experimental measures, represented by 3 independent variables (x,y,z) and the fourth one that represents the density and it depends from the others: w= f(x,y,z). I need to:
-plot the data,
-obtain the quadratic fit function w, i.e. the function that describes the density,
-represent the isosurfaces where w is constant.
- Finally I need to minimize this quadratic function with no constraints.
Starting from
x = rand(12, 1);
y = rand(12, 1);
z = rand(12, 1);
w = rand(12, 1);
I found the quadratic function but I'm not sure how to represent the values of f(x,y,z) like isosurfaces and how to minimize it.
Thanks a lot!
Laura

採用された回答

Matt J
Matt J 2021 年 6 月 10 日
You can use isosurface() to plot and quadprog() to minimize.
  4 件のコメント
laura bagnale
laura bagnale 2021 年 6 月 11 日
Thanks a lot for your help and support!!
That was helpful!
Kind Regards,
Laura
Matt J
Matt J 2021 年 6 月 11 日
I'm glad, but please Accept-click the answer if the your question is now resolved.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeQuadratic Programming and Cone Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by