Research Article

A Data-Driven and Knowledge-Driven Method towards the IRP of Modern Logistics

Table 3

Rule types and source code.

Rule typeRuleSource code

Distribution optimizationrule_delay
rule_xsdailytrunc
rule_xsexpress
rule_recentDelivery Rule_badWeather
[(?d has_date ?x) (?x has_badWeather ?y) -> (?dhas_delayed_warning ?x)]
[(?x possible_has_daily_trunc ?y) (?y equals_to_daily_trunc ?z) -> (?x actual_has_daily_trunc ?z)]
[(?x possible_has_express ?y) (?y equals_to_express ?z) ->(?x actual_has_express ?z)]
[(?x get_drug ?y) (?y equals_to_recent ?z) ->(?x has_recent_delivery ?z)]
[(?x has_weather_infuence ?y)(?y equals_to_influence ?z) ->(?x has_badWeather ?z)]

Retail store inventory optimizationrule_storage
rule_sellingall
[(?x reach_maxWarningNum ?y)(?y is_equal_to_notice ?z) ->(?x has_storage_warning ?z)]
[(?x is_less_zero ?y) (?y is_equal_to ?z) -> (?x has_sellall_warning ?z)]

Cost optimizationrule_lessTranscost
rule_fdailytrunc
rule_fexpress
[(?x has_transcost ?y)(?y is_cheaper_than ?z) ->(?x has_lessTranscost_than ?z)]
[(?x possible_take_daily_trunc ?y) (?y equals_to_dtt ?z) -> (?x take_daily_trunc ?z)]
[(?x possible_take_express ?y) (?y equals_to_ext ?z) ->(?x take_express ?z)]