.set(+)
Initial Cost method
Reference documentation for the initial cost configuration. Initial costs can be configured across all available time periods, or specifically tied to a time period. PLANit will utilise the most specific initial costs available, meaning that it will first look for
If not available, PLANit will look for initial costs defined without a time period label;
If those are also not available, PLANit will not attempt to impose any initial costs at all.
Currently initial costs can only be provided on the link segment level.
PLANit-Python accepts earlier persisted link segment results as initial cost inputs. The only requirements are:
OutputProperty.LINK_COST
must have been activated, i.e., the cost column is present in the resultsInitial costs can be parsed from output generated by the following output formatters:
No defaults (yet)
Initial Costs exposes the following methods
Name | Description |
---|---|
.set(+) |
Set initial costs, by time period, or across time periods |
This class has no properties (yet):
from planit import *
#create instance
planit_instance = PLANit()
#set initial costs for all periods
planit_instance.initial_costs.set("<path_to_initial_costs_csv>")
#override initial costs for time period 1 with more specific costs
planit_instance.initial_costs.set("<path_to_initial_costs_period_1_csv>", 1)
Default Output Formatter implementation
link Output Configuration implementation
Class InitialCost
in Initial_cost.py
Initial Cost method