I'm working on a multi-objective optimisation problem in R. I need to optimise the amount of hectares I should produce of each crop to max profits but minimising the difference between current and the suggested amount of hectares of crop produced by the optimisation model.
(我正在研究R中的多目标优化问题。我需要优化每种作物的公顷生产量,以最大程度地获利,但要最小化优化模型所产生的当前和建议的公顷作物之间的差异。)
I have 1 constraint which is land (=11350). (我有1个约束,即土地(= 11350)。)
I have the prices for each crop, the land it uses and the current amount of each crop produced.
(我有每种作物的价格,其使用的土地以及每种作物目前的产量。)
I am having trouble formulating functions for the constraints. (我在为约束创建函数时遇到麻烦。)
ask by Zara Liew translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…