필터 지우기
필터 지우기

Execution time of linprog compared to Cplex on C++?

조회 수: 12 (최근 30일)
Ahmad Abuaish
Ahmad Abuaish 2022년 8월 10일
답변: Gagan Agarwal 2023년 10월 27일
Hello there,
Would any one know by any chance how fast/low linprog on MATLAB compared to Cplex on C++?
I would like to know that so determine if it is worthwhile my MATLAB code to c++.
Kind regrads, and I look forward to hearing from you.

답변 (1개)

Gagan Agarwal
Gagan Agarwal 2023년 10월 27일
Hi Ahmad Abuaish,
I understand that you would like to compare MATLAB's 'linprog' function with C++'s ‘Cplex’ in terms of solving linear programming problems.
MATLAB's 'linprog' function utilizes the interior-point algorithm to solve linear programming problems and is considered efficient for moderate-sized problems.
On the other hand, Cplex is an optimized solver that is known for its performance and scalability, particularly when dealing with complex problems.
Hence, in general, for complex linear programming problems it might be advantageous to implement code in C++ using Cplex. However, for smaller problems, when ease of use and prototyping capabilities are important, MATLAB's 'linprog' is a better option.
For additional information on 'linprog' please refer to the following documentation:
I hope this helps!

카테고리

Help CenterFile Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by