Skip to content

Ignoring ingredient in heavy-oil product changes downstream steps, wastes the ingredient #267

@JDLH

Description

@JDLH

Clicking on an ingredient in the calculator is supposed to omit the dependencies of that ingredient from the solution. In some cases it seems to change the solution to a more wasteful one. I have observed this in calculating solutions for Petroleum Gas, from Crude Oil via Advanced Oil Processing, and from Coal via Coal Liquefaction

Crude Oil case

To reproduce:

  1. Start a new calculator with default settings.
  2. Change goal product from Advanced Circuits to Petroleum Gas
  3. Change items/minute (rate) from 660 to 100. Solution appears, with three steps, consuming 102.564/minute Crude Oil:
    a. Oil Refinery with recipe Advanced Oil Processing, yielding Heavy Oil, Light Oil, and Petroleum Gas;
    b. Chemical Plant with recipe Heavy Oil Cracking to Light Oil, consuming all the Heavy Oil from a. and yielding Light Oil;
    c. Chemical Plant with recipe Light Oil Cracking to Petroleum Gas, consuming all the Light Oil from a. and b. and yielding Petroleum Gas;
    d. yielding 100.0 Petroleum Gas/minute.
  4. URL for this calculator state
  5. Click on the Crude Oil icon.

Observed behaviour:

  • Oil Refinery recipe changes to Basic Oil Processing;
  • Chemical Plants cracking Heavy Oil to Light, and Light Oil to Gas, disappear
  • Crude Oil consumption rises to 222.222/minute.
  • URL for this calculator state

Expected behaviour:

  • Crude Oil icon appearance changes, and its upstream dependencies (none) are omitted.
  • Oil Refinery recipe remains Advanced Oil Processing;
  • Chemical Plants cracking Heavy Oil to Light, and Light Oil to Gas, remain
  • Crude Oil consumption remains at 102.564/minute.

Coal Liquefaction case

To reproduce:

  1. Start a new calculator with default settings.
  2. Change goal product from Advanced Circuits to Petroleum Gas
  3. Change items/minute (rate) from 660 to 100.
  4. In Settings, toggle off the recipes: Basic Oil Processing, and Advanced Oil Processing.
  5. Return to Calculator tab. Solution appears, with three steps, consuming 18.582/minute Coal:
    a. Oil Refinery with recipe Coal Liquefaction, yielding Heavy Oil, Light Oil, and Petroleum Gas;
    b. Chemical Plant with recipe Heavy Oil Cracking to Light Oil, consuming all the Heavy Oil from a. and yielding Light Oil;
    c. Chemical Plant with recipe Light Oil Cracking to Petroleum Gas, consuming all the Light Oil from a. and b. and yielding Petroleum Gas;
    d. yielding 100.0 Petroleum Gas/minute.
  6. URL for this calculator state
  7. Click on the Crude Oil icon.

Observed behaviour:

  • Oil Refinery recipe changes to Basic Oil Processing;
  • Heavy Oil surplus amount rises from 0 to 650/minute;
  • Light Oil surplus amount rises from 0 to 200/minute;
  • Chemical Plants cracking Heavy Oil to Light, and Light Oil to Gas, disappear;
  • Coal consumption rises to 103.75/minute.
  • URL for this calculator state

Expected behaviour:

  • Coal icon appearance changes, and its upstream dependencies are omitted.
  • Zero of the Heavy Oil and Light Oil from the Oil Refinery are surplus;
  • Chemical Plants cracking Heavy Oil to Light, and Light Oil to Gas, remain
  • Coal consumption remains at 18.582/minute.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions