Skip to main content

Discrepancy in Objective Function Value Calculation

Awaiting user input


1 comment

  • Simranjit Kaur
    Gurobi Staff Gurobi Staff

    Hi Marith,

    How are you getting the below values?

    - Fixed costs: 500000
    - Additional capacity costs: 7770.0
    - Operational costs: 155400.0
    - Charging costs: 171.05
    - Total costs: 663341.05
    - Total revenue: 280383.04

    Once the model is solved, could you please query the X attribute of the revenue variable (or variables that make up revenue) and the total_cost variable (or variables that make up total_cost)? Their difference should match the objective value.

    Best regards,


Please sign in to leave a comment.