汽车模型的优化错误
2次观看(最近30天)
显示较旧的评论
各位,
我正在尝试优化一些参数,以达到最低燃料消耗。我的参数包括齿轮比,油门,车辆和驾驶员质量,必须在40 km/h的速度限制内。
但是,当我尝试优化这些参数时,它显示矩阵维度必须在初始非线性约束功能评估中同意和失败。我试图在线搜索,但我无法弄清楚那是什么问题。
It would be great if someone can tell me what is wrong with my model.
谢谢very much.
Wei Kang Chang
答案(1)
斯沃罗夫
2019年3月26日
以下似乎可以解决您的问题,但我不知道这是否是您真正想做的:
- 放FCMin至“最小化功能输出”。最初是“约束功能输出为<= 0”。你是说要约束吗FCMin要<= 0?对于您试图优化似乎是燃料消耗的变量/功能,这是否有意义?
- 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.
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
阴谋)。应该是平均指标吗?因此,在整个驱动周期中而不是一系列燃油消耗值中,所有燃油消耗值的平均值?只是一些想法让您思考。