Skip to content

Enhance service type validation and demand calculation - #177

Open
Eynor-K wants to merge 1 commit into
aimclub:mainfrom
Eynor-K:feat/services-optimizer-fixes
Open

Enhance service type validation and demand calculation#177
Eynor-K wants to merge 1 commit into
aimclub:mainfrom
Eynor-K:feat/services-optimizer-fixes

Conversation

@Eynor-K

@Eynor-K Eynor-K commented Jul 27, 2026

Copy link
Copy Markdown
  • Added validation in UnitsSchema to reject units with both site_area and build_floor_area set to zero.
  • Modified demand calculation in Facade to use current candidate's demand instead of previous trial's state, preventing double-counting.
  • Updated population demand calculation in ProvisionAdapter to include all residential blocks with new residents, ensuring accurate demand updates.
  • Refactored optimizer initialization to allow customizable number of EI candidates for TPE trials.

- Added validation in UnitsSchema to reject units with both site_area and build_floor_area set to zero.
- Modified demand calculation in Facade to use current candidate's demand instead of previous trial's state, preventing double-counting.
- Updated population demand calculation in ProvisionAdapter to include all residential blocks with new residents, ensuring accurate demand updates.
- Refactored optimizer initialization to allow customizable number of EI candidates for TPE trials.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant