-
-
Notifications
You must be signed in to change notification settings - Fork 37
[WIP] MATLAB interface #360
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Really cool Stefano! |
|
Hi @cvanaret As far I know, it's possible to use Matlab on the Github runners for public repos, so no need for self-hosted runners (see here). So far, I was able to build a Matlab mex (via cmake) even for a private repo without a Matlab license, as this step only requires the Matlab installation and doesn’t actually call MATLAB itself. I’ll try running a test on GitHub runners to confirm that this works as well. |
|
The Github action runs, well done 🥳 |
|
@stefphd sorry for the many changes we're merging into main 😅 Let me know if you need anything. |
| # optional Matlab bindings # | ||
| ############################ | ||
|
|
||
| find_package(Matlab COMPONENTS MAIN_PROGRAM MEX_COMPILER) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you've verified this works with a particular matlab version I'd recommend pinning it on that version. There have been several minor changes in the mex behaviour over the past couple of versions that could cause unnecessary heartache.
Hi Charlie,
I've just written a first draft of the MATLAB interface. It has also some minor changes in the C/C++ interface. For now it's only a draft, may be unstable at the moment.
Track list:
result = uno_optimize(model[, options, callbacks])andoptions = uno_options([preset])interfaces\Matlab\Uno_mex_utilities.hppuno_optimizemex function