Can LinExpr or another equivalent be used for calculation of outputs.
回答済みI currently us LinExpr to build up an objective function using multiple cost terms. Example obj = labor + transportation.
It also appears we can call this after model solve to get the cost corresponding to the LinExpr we created. Example labor.getValue().
Is it possible to leverage the LinExpr to create custom calculations for output purposes that won't add to our model?
0
-
Yes, you can create arbitrary LinExpr objects from your model's variables and -- once the model is solved -- access the expression's value with the getValue-method.
1 -
Thanks
0
サインインしてコメントを残してください。
コメント
2件のコメント