Using other solvers for models generated by optimproblem

조회 수: 8 (최근 30일)
Vahid Mahmoodian
Vahid Mahmoodian 2019년 2월 18일
댓글: Matt J 2019년 2월 19일
Hello,
I am wondering if there is a way to use other solvers to solve models (problems) built by new optimization toolbox (i.e. optimproblem, optimvar, optimconstr, etc.)? Because if MATLAB uses it's own solvers and needs to struct A, b, and c matrix and vectors, just an output of these parameters will facilitate using all other well-known solvers too.

채택된 답변

Matt J
Matt J 2019년 2월 19일
편집: Matt J 2019년 2월 19일
You can use prob2struct to help convert a problem-based description of the linear constraints to the matrices required by other Optimization Toolbox solvers.
However, you cannot use the problem-based framework to solve arbitrary nonlinear optimization problems directly. Also, any problem component requiring a function handle specification, like nonlinear objective functions or constraints in fmincon, must be provided separately by you.
  댓글 수: 2
Matt J
Matt J 2019년 2월 19일
Matt,
This was exactly what I am looking for, and it helps a lot. I knew MATLAB does not let such a useful function go.
Thanks a lot
Matt J
Matt J 2019년 2월 19일
You are welcome.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Linear Programming and Mixed-Integer Linear Programming에 대해 자세히 알아보기

제품


릴리스

R2017b

Community Treasure Hunt

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

Start Hunting!

Translated by