メインコンテンツへスキップ

TypeError: unsupported operand type(s) for +: 'NoneType' and 'float'

回答済み

コメント

3件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than three years old. Some information may not be up to date. For current information, please check the Gurobi Documentation or Knowledge Base. If you need more help, please create a new post in the community forum. Or why not try our AI Gurobot?.
  • Jaromił Najman
    • Gurobi Staff

    Hi Julia,

    It might be that the problem becomes infeasible when you optimize over the whole year and then \(\texttt{prob.objective}\) returns a None value. You might want to check the optimization status code before accessing the objective value.

    Best regards,
    Jaromił

    0
  • JC
    • Gurobi-versary
    • First Comment
    • First Question

    Hi Jaromil,

    Thank you for the feedback. I will try that out!

    Julia 

    0

投稿コメントは受け付けていません。