Skip to content

Detailed Cost and Resource Calculations

Alexandar83 edited this page Feb 23, 2025 · 11 revisions

This page provides an in-depth explanation of Wall construction cost and ice usage calculations, featuring endpoint details, example scenarios, and workflows to illustrate key concepts..

1. Construction Costs and Resource Computations

  • API Endpoints are available to query ice amounts and construction costs for the wall build process.

  • The Total Wall Cost /profiles/overview/ endpoint provides the total construction cost of the wall in Gold Dragon coins.

  • The Daily Wall Cost /profiles/overview/<int:day>/ endpoint provides the total construction cost on a specific day in Gold Dragon coins.

  • The Daily Profile Cost /profiles/<int:profile_id>/overview/<int:day>/ endpoint provides the amount of ice used on a specific day for a given wall profile in Gold Dragon coins.

  • The Daily Profile Ice Amount /profiles/<int:profile_id>/days/<int:day>/endpoint provides the amount of ice used on a specific day for a given wall profile in cubic yards.

2. Usage Examples:

  • Sample uploaded wall configuration file:
[
  [27],
  [27, 27],
  [28, 29, 30]
]

  • Scenario A: num_crews is not specified:

    • 5 crews are assigned to each unfinished section (Profile 3 - section 3 is finished).

      1. Construction process:

      • Profile 1 total progress: 30 - 27 = 3 feet
      • Profile 2 total progress: (30 - 27) + (30 - 27) = 6 feet
      • Profile 3 total progress: (30 - 28) + (30 - 29) = 3 feet
      • Wall total progress = 3 + 6 + 3 = 12 feet constructed

      1. profiles/overview/ returns the total construction cost of the wall:
      • Cost = 12(total feet raised) * 195(cubic yards of ice) * 1,900(Gold Dragon coins) = 4,446,000 Gold Dragon coins

      1. profiles/overview/3 returns the total construction cost on day 3:
      • Sections raised by 1 foot on day 3:
        • Profile 1:
          • section 1: 29 feet -> 30 feet
        • Profile 2:
          • section 1: 29 feet -> 30 feet
          • section 2: 29 feet -> 30 feet
      • Cost = 3(total feet raised) * 195(cubic yards of ice) * 1,900(Gold Dragon coins) = 1,111,500 Gold Dragon coins

      1. profiles/3/overview/1 returns the total construction cost of profile 3 on day 1:
      • Sections raised by 1 foot on profile 3 on day 1:
        • section 1: 28 feet -> 29 feet
        • section 2: 29 feet -> 30 feet
      • Cost = 2(total feet raised) * 195(cubic yards of ice) * 1,900(Gold Dragon coins) = 741,000 Gold Dragon coins

      1. profiles/2/days/2 returns the total amount of ice used for profile 2 on day 2:
      • Ice amount = 2(total feet raised) * 195(cubic yards of ice) = 390 cubic yards of ice

  • Scenario B: num_crews = 2:

      1. Construction process:

      • Crew I raises profile 1 - section 1 by 3 feet.
      • Crew II raises profile 2 - section 1 by 3 feet.
      • At the end of the 3rd day:
        • Crew I is assigned to work on profile 2 - section 2.
          • Raises it by 3 feet.
        • Crew II is assigned to work on profile 3 - section 1.
          • Raises it by 2 feet.
      • At the end of the 5th day:
        • Crew II is assigned to work on profile 3 - section 2.
          • Raises it by 1 foot.
      • At the end of the 6th day:
        • Crew I is relieved.
        • Crew II is relieved.
      • Wall total progress = 3 + 3 + 3 + 2 + 1 = 12 feet constructed

      1. profiles/overview/ returns the total construction cost of the wall:
      • Cost = 12(total feet raised) * 195(cubic yards of ice) * 1,900(Gold Dragon coins) = 4,446,000 Gold Dragon coins

      1. profiles/overview/3 returns the total construction cost on day 3:
      • Sections raised by 1 foot on day 3:
        • Profile 1:
          • section 1: 29 feet -> 30 feet (Crew I)
        • Profile 2:
          • section 1: 29 feet -> 30 feet (Crew II)
      • Cost = 2(total feet raised) * 195(cubic yards of ice) * 1,900(Gold Dragon coins) = 741,000 Gold Dragon coins

      1. profiles/3/overview/1 returns the total construction cost of profile 3 on day 1:
      • 404: No crew has worked on profile 3 on day 1.

      1. profiles/2/days/2 returns the total amount of ice used for profile 2 on day 2:
      • 1(total feet raised) * 195(cubic yards of ice) = 195 cubic yards of ice

Next:   Operational Limitations
Back to: Wall Construction Overview

Return to Top
DFS Index
Home Page


Clone this wiki locally