38: m.addConstrs((e[(p,t)] == max_((s[(p,t-1)] - s[(p,t)]), 0.0) for p in processsteps for t in range(1,T)), name="process_end")
LinExpr object
s[(p,t-1)] - s[(p,t)] into the max_ function, causing the error.
You can only pass in a list of variables as arguments for the max, see
You could simply define auxiliary variables for each sum
s[(p,t-1)] - s[(p,t)], and use these variables as arguments for the max_ function.
Robert
--
---
You received this message because you are subscribed to the Google Groups "Gurobi Optimization" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gurobi+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.