Reply by Nihal Ahmad October 10, 20032003-10-10
Dear spottie,
Just check whether this file is using any Instrument Control function in
linprog.m
Because MATLAB compiler doesn't support the functions of Instrument Control
Toolbox.
Just type depdir('Linprog') on Matlab command window. It'll display the list
of directories used by Linprog.m file.
If it's using any function from 'C:\MATLAB6p5\toolbox\matlab\iofun', means
it is using Instrument Control Toolbox function and you can't use the mcc -x
Linprog to generate the dll.
If you will be able to generate the required dll, that dll will cause the
Matlab to crash.
Hope this will help.
Regards
Nihal

----- Original Message -----
From: "spottie3" <>
To: <>
Sent: Thursday, October 09, 2003 10:56 PM
Subject: [matlab] How to mex "linprog" > Hi,
>
> I am running 1000's of simulations that call linprog in MATLAB. I
> have found that much of the computing time is spent in linprog. I
> have tried streamlining my code using vectorization, memory pre-
> allocation, and mex files when possible.
>
> However, when I try to "mcc -x linprog" I get the following error:
> "Warning: File: optim/private/diagnose Line: 179 Column: 22
> The MATLAB Compiler does not currently support MATLAB object-
> oriented programming. References to the method "formula" will
> produce a run-time error."
>
> Does anyone know how to generate the mex equivalent of linprog in
> MATLAB?
>
> Thanks for your time! >
>
> _____________________________________
> Note: If you do a simple "reply" with your email client, only the author
of this message will receive your answer. You need to do a "reply all" if
you want your answer to be distributed to the entire group.
>
> _____________________________________
> About this discussion group:
>
> To Join:
>
> To Post:
>
> To Leave:
>
> Archives: http://www.yahoogroups.com/group/matlab
>
> More DSP-Related Groups: http://www.dsprelated.com/groups.php3
>
> ">http://docs.yahoo.com/info/terms/ >


_______________________________________________
This email with any attachments is for the exclusive use of the intended
recipient/s & may contain confidential & legally privileged information.
If you are not the intended recipient pls notify the sender immediately
& delete the email from your system. Any unauthorised use, disclosure,
printing, dissemination, forwarding or copying of this mail is strictly
prohibited and unlawful.
Visit us at : http://www.cranessoftware.com



Reply by spottie3 October 9, 20032003-10-09
Hi,

I am running 1000's of simulations that call linprog in MATLAB. I
have found that much of the computing time is spent in linprog. I
have tried streamlining my code using vectorization, memory pre-
allocation, and mex files when possible.

However, when I try to "mcc -x linprog" I get the following error:
"Warning: File: optim/private/diagnose Line: 179 Column: 22
The MATLAB Compiler does not currently support MATLAB object-
oriented programming. References to the method "formula" will
produce a run-time error."

Does anyone know how to generate the mex equivalent of linprog in
MATLAB?

Thanks for your time!