汽车模型的优化错误

2次观看(最近30天)
Wei Kang Chang
Wei Kang Chang 2019年3月19日
回答: 斯沃罗夫 2019年3月26日
各位,
我正在尝试优化一些参数,以达到最低燃料消耗。我的参数包括齿轮比,油门,车辆和驾驶员质量,必须在40 km/h的速度限制内。
但是,当我尝试优化这些参数时,它显示矩阵维度必须在初始非线性约束功能评估中同意和失败。我试图在线搜索,但我无法弄清楚那是什么问题。
It would be great if someone can tell me what is wrong with my model.
谢谢very much.
Wei Kang Chang
4 Comments
Wei Kang Chang
Wei Kang Chang 2019年3月20日
嗨,Swarooph,
感谢你的回复。我得到了相同的结果。是的,我忘了附加FCMIN文件。

登录发表评论。

答案(1)

斯沃罗夫
斯沃罗夫 2019年3月26日
以下似乎可以解决您的问题,但我不知道这是否是您真正想做的:
  • FCMin“最小化功能输出”。最初是“约束功能输出为<= 0”。你是说要约束吗FCMin要<= 0?对于您试图优化似乎是燃料消耗的变量/功能,这是否有意义?
2019-03-22_8-56-39.png
  • Once I do (1), I am able to run the optimization without issues. Note that I did terminate the optimization before it converged or terminated automatically just to show that it is able to run iterations and do optimization.
2019-03-22_8-57-00.png
2019-03-22_9-00-50.png
That fixes your error issue. But to be honest, I am not completely convinced you have set up this optimization problem correctly. At the very least, your speed profile needs to have a lower bound of zero so that the car doesn’t go backwards. I also don’t know if you are plotting the right value for fuel consumption cost ( FCMin 阴谋)。应该是平均指标吗?因此,在整个驱动周期中而不是一系列燃油消耗值中,所有燃油消耗值的平均值?只是一些想法让您思考。

社区寻宝

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

Start Hunting!