Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaut committed Oct 2, 2014
1 parent d1db9c2 commit 4ae9e21
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions solvers/smpswriter/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ the following requirements:
(scenario-dependent) parameters and expression should have the form of
expectation:

.. code-block:: python
.. code-block:: python
param P{Scenarios}; # probabilities
param P{Scenarios}; # probabilities
maximize profit: sum{s in Scenarios} P[s] * (
ExcessSellingPrice * sellExcess[s] +
sum{c in Crops} (SellingPrice[c] * sell[c, s] -
PurchasePrice[c] * buy[c, s]) -
sum{c in Crops} PlantingCost[c] * area[c]);
maximize profit: sum{s in Scenarios} P[s] * (
ExcessSellingPrice * sellExcess[s] +
sum{c in Crops} (SellingPrice[c] * sell[c, s] -
PurchasePrice[c] * buy[c, s]) -
sum{c in Crops} PlantingCost[c] * area[c]);
Usage example
-------------
Expand Down

0 comments on commit 4ae9e21

Please sign in to comment.