Can the functions in the Optimization Toolbox be compiled?

1 view (last 30 days)
I would like to create a stand-alone executable using the functions in the Optimization Toolbox.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
Yes, you can compile and create a stand-alone executable using the functions in the Optimization Toolbox. To do so, you will need to use function handles to the objective function you created and any nonlinear constraint functions you use in your call to the Optimization Toolbox function, and will need to provide function handles for the HessMult and JacobMult parameters in the options structure if you use these parameters.
For more information on issues which may occur when you try to compile Optimization Toolbox functions, please see the solution attached at the bottom of this page.
  5 Comments
Walter Roberson
Walter Roberson on 17 Apr 2018
Have you tried compiling as a console application? There might possibly be error messages output to the console.
Walter Roberson
Walter Roberson on 17 Apr 2018
Ah, I would have expected that to have been mentioned at the time of compilation, in the error logs. heaviside is part of the Symbolic Toolbox and the log file should have complained about not being able to compile the Symbolic Toolbox.

Sign in to comment.

More Answers (0)

Categories

Find more on Systems of Nonlinear Equations in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!