Using cvx in a MATLAB executable

1 Ansicht (letzte 30 Tage)
Ayesha Afzal
Ayesha Afzal am 29 Aug. 2017
Kommentiert: liheng am 9 Okt. 2023
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 Kommentar
liheng
liheng am 9 Okt. 2023
i have a simlilar problem in c++, have you solved the problem?

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Problem-Based Optimization Setup finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by