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

getting decision varaibles from current solution to update Lagrange multipliers using subgradient method

ユーザーの入力を待っています。

コメント

2件のコメント

  • 正式なコメント
    Simranjit Kaur
    • Gurobi Staff
    This post is more than two 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 try Gurobot, our chatbot interface offering instant, expert-level support.
  • Jaromił Najman
    • Gurobi Staff

    Hi,

    Could you please try to simplify the computation of \(\texttt{b_Ax}\) to try to localize the source of the error.

    First try

    b_Ax = (demand[h,t,p] for h in ... for p in ... for t in ...)

    If this works then proceed with

    b_Ax = (demand[h,t,p] - sum(...) for h in ... for p in ... for t in ...)

    and so on until you find the exact source of error.

    My guess is that you cannot multiply the object generated by \(\texttt{sum}\) with \(\texttt{1-p_b[t]}\), but you can avoid it by writing

    b_Ax = (demand[h,t,p] - sum(...) + sum(QW_wh_[w,h,t,p].x * p_b[p] ...) ...)
    0

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