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

RC in Simplex Method

回答済み

コメント

2件のコメント

  • Riley Clement
    Gurobi Staff Gurobi Staff

    Hi Cong,

    You can't directly query the reduced cost of the slack variables but they are related to dual values.

    If a constraint sense is:

    • "=" then there is no slack variable
    • "<" then the reduced cost of the slack variable is the negative of the constraint dual value
    • ">" then the reduced cost of the slack variable is the constraint dual value

    The dual values can be obtained using the Pi attribute of constraints.  Note that reduced costs and dual values are only available for continuous models.

    - Riley

     

     

    0
  • Cong Jin
    Conversationalist
    First Question

    Hi Riley,

    Your explanation is too clear, which makes me suddenly enlightened!

    Thank you very much for your help.

    Best Wishes,

    - Cong

    0

サインインしてコメントを残してください。