C#调用Matlab函数来计算非线性编程问题吗? [英] C# call the Matlab function to compute the nonlinear programming problem?

查看:155
本文介绍了C#调用Matlab函数来计算非线性编程问题吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在WinForms中调用Matlab函数来解决非线性编程?有人可以给我一些例子吗?非常感谢!

How can I call the Matlab function in the WinForms to solve a nonlinear programming? Would anyone give me some examples? Thanks a lot!

推荐答案

您可以创建MATLAB脚本/函数来求解方程式(我建议您先尝试使用一些示例数据测试函数,然后再尝试调用它来自.NET).准备好之后,您可以按照从C#客户端调用MATLAB软件"示例进行操作,以传递函数所需的变量.另外,您可以使用matlab.execute("command to run your script")来运行文件.
You can create a MATLAB script/function to solve the equation (I would recommend first testing your function with some sample data before you try invoking it from .NET). Once you have that ready, you can follow the "Calling MATLAB Software from a C# Client" example to pass in variables required by your function. Additionally, you would use matlab.execute("command to run your script") to run your file.


这篇关于C#调用Matlab函数来计算非线性编程问题吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆