Using cvx in a MATLAB executable

Hello, I have an optimization problem that I solve using MATLAB and CVX. As long as I use the solver in MATLAB environment, everything works like a charm. Now I need to call the MATLAB functions from Java. I compile the matlab program using "deploytool" command as an executable application with "runtime included in package" option. I am able to invoke the executable file generated using the same commands as long as CVX is not used in matlab functions. However with CVX, I am getting the following error:
Attempt to reference field of non-structure array. Error in cvx_global (line 76) Error in cvxprob (line 4) Error in cvx_begin (line 41)

댓글 수: 1

liheng
liheng 2023년 10월 9일
i have a simlilar problem in c++, have you solved the problem?

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 Problem-Based Optimization Setup에 대해 자세히 알아보기

제품

질문:

2017년 8월 29일

댓글:

2023년 10월 9일

Community Treasure Hunt

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

Start Hunting!

Translated by