Closed keegit closed 2 years ago
You are trying to call this function, which expects an f64, with a parameter that is an Expression
: https://docs.rs/good_lp/1.3.2/good_lp/struct.Expression.html#impl-Mul%3CN%3E
Just as a reminder: the product of two linear expressions is not a linear expression.
You probably meant energy_init *= batt_var.bat_pc[bat][t]
:facepalm: Thank you.
Given this code, where
batt_var.b_energy: Vec<Vec<Variable>>
:I get the following error output:
Update:
I have fixed my issue, but I am keeping this because it seems strange.