Derive the sign conversion. Let F be the minimized negative contribution. SciPy's row marginal measures how F changes when a resource right-hand side changes. Our contribution z is negative F, so its sensitivity has the opposite sign. A marginal of negative one therefore means a positive contribution shadow price of one. This conversion applies to this sign-changed formulation, not every solver output automatically.
