text2model 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- text2model/__init__.py +1 -0
- text2model/grammar.mzn +277 -0
- text2model/knowledge_graphs/CSPLib_12.ttl +41 -0
- text2model/knowledge_graphs/CSPLib_14.ttl +51 -0
- text2model/knowledge_graphs/CSPLib_2.ttl +59 -0
- text2model/knowledge_graphs/CSPLib_22.ttl +62 -0
- text2model/knowledge_graphs/CSPLib_28.ttl +28 -0
- text2model/knowledge_graphs/CSPLib_30.ttl +72 -0
- text2model/knowledge_graphs/CSPLib_34.ttl +52 -0
- text2model/knowledge_graphs/CSPLib_39.ttl +51 -0
- text2model/knowledge_graphs/CSPLib_54.ttl +50 -0
- text2model/knowledge_graphs/CSPLib_6.ttl +36 -0
- text2model/knowledge_graphs/CSPLib_8.ttl +53 -0
- text2model/knowledge_graphs/LPWP_128.ttl +79 -0
- text2model/knowledge_graphs/LPWP_232.ttl +95 -0
- text2model/knowledge_graphs/LPWP_53.ttl +58 -0
- text2model/knowledge_graphs/LPWP_66.ttl +52 -0
- text2model/knowledge_graphs/LPWP_85.ttl +95 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_1.ttl +34 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_18.ttl +59 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_2.ttl +43 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_28.ttl +42 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_31.ttl +44 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_4.ttl +48 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_5.ttl +40 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_6.ttl +61 -0
- text2model/knowledge_graphs/OR_LP_IP_Scheduling_problem_8.ttl +54 -0
- text2model/knowledge_graphs/combinatorial_problem_1.ttl +48 -0
- text2model/knowledge_graphs/combinatorial_problem_31.ttl +43 -0
- text2model/knowledge_graphs/combinatorial_problem_32.ttl +39 -0
- text2model/knowledge_graphs/combinatorial_problem_7.ttl +52 -0
- text2model/knowledge_graphs/complexor_AircraftAssignment.ttl +73 -0
- text2model/knowledge_graphs/complexor_AircraftLanding.ttl +53 -0
- text2model/knowledge_graphs/complexor_CFLP.ttl +43 -0
- text2model/knowledge_graphs/complexor_CapacitatedWarehouseLocation.ttl +59 -0
- text2model/knowledge_graphs/complexor_CarSelection.ttl +30 -0
- text2model/knowledge_graphs/complexor_TSP.ttl +52 -0
- text2model/knowledge_graphs/complexor_VRPTW.ttl +67 -0
- text2model/knowledge_graphs/nlp4lp_1.ttl +56 -0
- text2model/knowledge_graphs/nlp4lp_10.ttl +46 -0
- text2model/knowledge_graphs/nlp4lp_11.ttl +57 -0
- text2model/knowledge_graphs/nlp4lp_12.ttl +48 -0
- text2model/knowledge_graphs/nlp4lp_13.ttl +48 -0
- text2model/knowledge_graphs/nlp4lp_14.ttl +82 -0
- text2model/knowledge_graphs/nlp4lp_15.ttl +60 -0
- text2model/knowledge_graphs/nlp4lp_16.ttl +64 -0
- text2model/knowledge_graphs/nlp4lp_17.ttl +72 -0
- text2model/knowledge_graphs/nlp4lp_18.ttl +64 -0
- text2model/knowledge_graphs/nlp4lp_19.ttl +98 -0
- text2model/knowledge_graphs/nlp4lp_2.ttl +103 -0
- text2model/knowledge_graphs/nlp4lp_20.ttl +129 -0
- text2model/knowledge_graphs/nlp4lp_21.ttl +65 -0
- text2model/knowledge_graphs/nlp4lp_22.ttl +72 -0
- text2model/knowledge_graphs/nlp4lp_23.ttl +63 -0
- text2model/knowledge_graphs/nlp4lp_24.ttl +99 -0
- text2model/knowledge_graphs/nlp4lp_25.ttl +77 -0
- text2model/knowledge_graphs/nlp4lp_27.ttl +75 -0
- text2model/knowledge_graphs/nlp4lp_28.ttl +50 -0
- text2model/knowledge_graphs/nlp4lp_29.ttl +63 -0
- text2model/knowledge_graphs/nlp4lp_3.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_30.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_31.ttl +35 -0
- text2model/knowledge_graphs/nlp4lp_32.ttl +33 -0
- text2model/knowledge_graphs/nlp4lp_33.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_34.ttl +67 -0
- text2model/knowledge_graphs/nlp4lp_35.ttl +75 -0
- text2model/knowledge_graphs/nlp4lp_36.ttl +56 -0
- text2model/knowledge_graphs/nlp4lp_37.ttl +52 -0
- text2model/knowledge_graphs/nlp4lp_38.ttl +55 -0
- text2model/knowledge_graphs/nlp4lp_39.ttl +58 -0
- text2model/knowledge_graphs/nlp4lp_4.ttl +64 -0
- text2model/knowledge_graphs/nlp4lp_40.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_41.ttl +62 -0
- text2model/knowledge_graphs/nlp4lp_42.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_43.ttl +98 -0
- text2model/knowledge_graphs/nlp4lp_44.ttl +41 -0
- text2model/knowledge_graphs/nlp4lp_45.ttl +56 -0
- text2model/knowledge_graphs/nlp4lp_46.ttl +35 -0
- text2model/knowledge_graphs/nlp4lp_47.ttl +68 -0
- text2model/knowledge_graphs/nlp4lp_48.ttl +74 -0
- text2model/knowledge_graphs/nlp4lp_49.ttl +66 -0
- text2model/knowledge_graphs/nlp4lp_5.ttl +69 -0
- text2model/knowledge_graphs/nlp4lp_50.ttl +51 -0
- text2model/knowledge_graphs/nlp4lp_51.ttl +53 -0
- text2model/knowledge_graphs/nlp4lp_52.ttl +51 -0
- text2model/knowledge_graphs/nlp4lp_53.ttl +55 -0
- text2model/knowledge_graphs/nlp4lp_54.ttl +74 -0
- text2model/knowledge_graphs/nlp4lp_55.ttl +50 -0
- text2model/knowledge_graphs/nlp4lp_56.ttl +67 -0
- text2model/knowledge_graphs/nlp4lp_57.ttl +59 -0
- text2model/knowledge_graphs/nlp4lp_58.ttl +65 -0
- text2model/knowledge_graphs/nlp4lp_6.ttl +63 -0
- text2model/knowledge_graphs/nlp4lp_60.ttl +36 -0
- text2model/knowledge_graphs/nlp4lp_61.ttl +83 -0
- text2model/knowledge_graphs/nlp4lp_62.ttl +44 -0
- text2model/knowledge_graphs/nlp4lp_63.ttl +49 -0
- text2model/knowledge_graphs/nlp4lp_64.ttl +41 -0
- text2model/knowledge_graphs/nlp4lp_65.ttl +78 -0
- text2model/knowledge_graphs/nlp4lp_66.ttl +51 -0
- text2model/knowledge_graphs/nlp4lp_67.ttl +40 -0
- text2model/knowledge_graphs/nlp4lp_7.ttl +53 -0
- text2model/knowledge_graphs/nlp4lp_8.ttl +51 -0
- text2model/knowledge_graphs/nlp4lp_9.ttl +58 -0
- text2model/knowledge_graphs/non_linear_problem_10.ttl +57 -0
- text2model/knowledge_graphs/non_linear_problem_15.ttl +55 -0
- text2model/knowledge_graphs/non_linear_problem_23.ttl +42 -0
- text2model/knowledge_graphs/non_linear_problem_9.ttl +61 -0
- text2model/knowledge_graphs/puzzles_problem_1.ttl +64 -0
- text2model/knowledge_graphs/puzzles_problem_11.ttl +65 -0
- text2model/knowledge_graphs/puzzles_problem_12.ttl +79 -0
- text2model/knowledge_graphs/puzzles_problem_13.ttl +50 -0
- text2model/knowledge_graphs/puzzles_problem_31.ttl +62 -0
- text2model/main.py +771 -0
- text2model/prompts/assembler_prompt.txt +104 -0
- text2model/prompts/code_stitching_prompt.txt +49 -0
- text2model/prompts/code_validation_prompt.txt +36 -0
- text2model/prompts/constraint_generation_prompt.txt +35 -0
- text2model/prompts/cot_prompt.txt +45 -0
- text2model/prompts/global_constraint_prompts/all_different_prompt.txt +67 -0
- text2model/prompts/global_constraint_prompts/count_prompt.txt +75 -0
- text2model/prompts/global_constraint_prompts/cumulative_prompt.txt +88 -0
- text2model/prompts/global_constraint_prompts/global_cardinality_prompt.txt +76 -0
- text2model/prompts/global_constraint_prompts/increasing_prompt.txt +81 -0
- text2model/prompts/global_constraint_prompts/lex_less_prompt.txt +68 -0
- text2model/prompts/grammar_validation_prompt.txt +18 -0
- text2model/prompts/kg_code_generation_prompt.txt +20 -0
- text2model/prompts/kg_generation_prompt.txt +40 -0
- text2model/prompts/objective_generation_prompt.txt +34 -0
- text2model/prompts/parameter_and_variable_generation_prompt.txt +35 -0
- text2model/utils.py +350 -0
- text2model-0.1.0.dist-info/METADATA +221 -0
- text2model-0.1.0.dist-info/RECORD +135 -0
- text2model-0.1.0.dist-info/WHEEL +5 -0
- text2model-0.1.0.dist-info/entry_points.txt +2 -0
- text2model-0.1.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
5
|
+
|
|
6
|
+
opt:FacilityLocationProblem a rdfs:Class ;
|
|
7
|
+
rdfs:subClassOf opt:OptimizationProblem ;
|
|
8
|
+
rdfs:comment "The capacitated facility location problem involves locating facilities which are to service customers at minimum total cost."@en .
|
|
9
|
+
|
|
10
|
+
opt:numberOfFacilities a rdf:Property ;
|
|
11
|
+
rdfs:domain opt:FacilityLocationProblem ;
|
|
12
|
+
rdfs:range xsd:integer ;
|
|
13
|
+
rdfs:comment "The number of potential facilities that can be established."@en .
|
|
14
|
+
|
|
15
|
+
opt:numberOfCustomers a rdf:Property ;
|
|
16
|
+
rdfs:domain opt:FacilityLocationProblem ;
|
|
17
|
+
rdfs:range xsd:integer ;
|
|
18
|
+
rdfs:comment "The number of customer zones to be served."@en .
|
|
19
|
+
|
|
20
|
+
opt:facilityFixedCost a rdf:Property ;
|
|
21
|
+
rdfs:domain opt:FacilityLocationProblem ;
|
|
22
|
+
rdfs:range xsd:decimal ;
|
|
23
|
+
rdfs:comment "The fixed cost associated with establishing each facility."@en .
|
|
24
|
+
|
|
25
|
+
opt:facilityToCustomerTransportCost a rdf:Property ;
|
|
26
|
+
rdfs:domain opt:FacilityLocationProblem ;
|
|
27
|
+
rdfs:range xsd:decimal ;
|
|
28
|
+
rdfs:comment "The cost of transporting goods from each facility to each customer zone."@en .
|
|
29
|
+
|
|
30
|
+
opt:facilityCapacity a rdf:Property ;
|
|
31
|
+
rdfs:domain opt:FacilityLocationProblem ;
|
|
32
|
+
rdfs:range xsd:integer ;
|
|
33
|
+
rdfs:comment "The capacity of each facility, which limits the amount of goods the facility can handle or produce."@en .
|
|
34
|
+
|
|
35
|
+
opt:customerDemand a rdf:Property ;
|
|
36
|
+
rdfs:domain opt:FacilityLocationProblem ;
|
|
37
|
+
rdfs:range xsd:integer ;
|
|
38
|
+
rdfs:comment "The demand of each customer zone that must be met by the facilities."@en .
|
|
39
|
+
|
|
40
|
+
opt:objective a rdf:Property ;
|
|
41
|
+
rdfs:domain opt:FacilityLocationProblem ;
|
|
42
|
+
rdfs:range xsd:string ;
|
|
43
|
+
rdfs:comment "The objective is to minimize total cost by choosing which facilities to establish and determining how much each facility should supply to each customer zone."@en .
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
@prefix : <http://www.semanticweb.org/ontologies/2021/4/untitled-ontology-4#> .
|
|
2
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
3
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
4
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
5
|
+
|
|
6
|
+
:WarehouseLocationProblem a owl:Class ;
|
|
7
|
+
rdfs:subClassOf :OptimizationProblem .
|
|
8
|
+
|
|
9
|
+
:hasNumberOfLocations a owl:ObjectProperty ;
|
|
10
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
11
|
+
rdfs:range xsd:integer .
|
|
12
|
+
|
|
13
|
+
:hasNumberOfCustomers a owl:ObjectProperty ;
|
|
14
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
15
|
+
rdfs:range xsd:integer .
|
|
16
|
+
|
|
17
|
+
:hasCustomerDemand a owl:ObjectProperty ;
|
|
18
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
19
|
+
rdfs:range xsd:integer .
|
|
20
|
+
|
|
21
|
+
:hasServiceAllocationCost a owl:ObjectProperty ;
|
|
22
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
23
|
+
rdfs:range xsd:integer .
|
|
24
|
+
|
|
25
|
+
:hasWarehouseCapacity a owl:ObjectProperty ;
|
|
26
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
27
|
+
rdfs:range xsd:integer .
|
|
28
|
+
|
|
29
|
+
:hasMinimumDemandFromWarehouse a owl:ObjectProperty ;
|
|
30
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
31
|
+
rdfs:range xsd:integer .
|
|
32
|
+
|
|
33
|
+
:hasMinimumOpenWarehouses a owl:ObjectProperty ;
|
|
34
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
35
|
+
rdfs:range xsd:integer .
|
|
36
|
+
|
|
37
|
+
:hasMaximumOpenWarehouses a owl:ObjectProperty ;
|
|
38
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
39
|
+
rdfs:range xsd:integer .
|
|
40
|
+
|
|
41
|
+
:hasWarehouseFixedCost a owl:ObjectProperty ;
|
|
42
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
43
|
+
rdfs:range xsd:integer .
|
|
44
|
+
|
|
45
|
+
:hasObjective a owl:ObjectProperty ;
|
|
46
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
47
|
+
rdfs:range :Objective .
|
|
48
|
+
|
|
49
|
+
:Objective a owl:Class ;
|
|
50
|
+
rdfs:subClassOf :OptimizationProblem ;
|
|
51
|
+
rdfs:comment "The objective is to allocate customers to warehouses and which warehouses to open in order to minimize the total cost." .
|
|
52
|
+
|
|
53
|
+
:hasConstraint a owl:ObjectProperty ;
|
|
54
|
+
rdfs:domain :WarehouseLocationProblem ;
|
|
55
|
+
rdfs:range :Constraint .
|
|
56
|
+
|
|
57
|
+
:Constraint a owl:Class ;
|
|
58
|
+
rdfs:subClassOf :OptimizationProblem ;
|
|
59
|
+
rdfs:comment "Constraints on the total demand that can be met from each warehouse, the lower limit on the demand that a warehouse must meet if it is opened, and constraints on the minimum and maximum number of warehouses that can be operational." .
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
5
|
+
|
|
6
|
+
opt:CarSelectionProblem a rdfs:Class ;
|
|
7
|
+
rdfs:label "Car Selection Problem" ;
|
|
8
|
+
rdfs:comment "The problem of assigning participants to cars in a way that maximizes the total number of assignments." .
|
|
9
|
+
|
|
10
|
+
opt:ParticipantNum a rdf:Property ;
|
|
11
|
+
rdfs:label "Total number of participants" ;
|
|
12
|
+
rdfs:range xsd:integer ;
|
|
13
|
+
rdfs:domain opt:CarSelectionProblem .
|
|
14
|
+
|
|
15
|
+
opt:CarNum a rdf:Property ;
|
|
16
|
+
rdfs:label "Total number of available cars" ;
|
|
17
|
+
rdfs:range xsd:integer ;
|
|
18
|
+
rdfs:domain opt:CarSelectionProblem .
|
|
19
|
+
|
|
20
|
+
opt:InterestMatrix a rdf:Property ;
|
|
21
|
+
rdfs:label "Interest matrix" ;
|
|
22
|
+
rdfs:comment "A binary matrix indicating whether a participant is interested in a particular car (1 for interested and 0 for not interested)" ;
|
|
23
|
+
rdfs:range xsd:string ;
|
|
24
|
+
rdfs:domain opt:CarSelectionProblem .
|
|
25
|
+
|
|
26
|
+
opt:MaximizeAssignments a rdf:Property ;
|
|
27
|
+
rdfs:label "Maximize assignments" ;
|
|
28
|
+
rdfs:comment "The objective is to maximize the number of participants who get cars they are interested in." ;
|
|
29
|
+
rdfs:range xsd:integer ;
|
|
30
|
+
rdfs:domain opt:CarSelectionProblem .
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
5
|
+
|
|
6
|
+
opt:OriginNum a rdf:Property ;
|
|
7
|
+
rdfs:label "OriginNum" ;
|
|
8
|
+
rdfs:domain opt:Problem ;
|
|
9
|
+
rdfs:range xsd:integer .
|
|
10
|
+
|
|
11
|
+
opt:DestinationNum a rdf:Property ;
|
|
12
|
+
rdfs:label "DestinationNum" ;
|
|
13
|
+
rdfs:domain opt:Problem ;
|
|
14
|
+
rdfs:range xsd:integer .
|
|
15
|
+
|
|
16
|
+
opt:Supply a rdf:Property ;
|
|
17
|
+
rdfs:label "Supply" ;
|
|
18
|
+
rdfs:domain opt:Origin ;
|
|
19
|
+
rdfs:range xsd:integer .
|
|
20
|
+
|
|
21
|
+
opt:Demand a rdf:Property ;
|
|
22
|
+
rdfs:label "Demand" ;
|
|
23
|
+
rdfs:domain opt:Destination ;
|
|
24
|
+
rdfs:range xsd:integer .
|
|
25
|
+
|
|
26
|
+
opt:Cost a rdf:Property ;
|
|
27
|
+
rdfs:label "Cost" ;
|
|
28
|
+
rdfs:domain opt:Transport ;
|
|
29
|
+
rdfs:range xsd:float .
|
|
30
|
+
|
|
31
|
+
opt:Problem a rdfs:Class ;
|
|
32
|
+
rdfs:label "Problem" ;
|
|
33
|
+
rdfs:subClassOf opt:Optimization .
|
|
34
|
+
|
|
35
|
+
opt:Origin a rdfs:Class ;
|
|
36
|
+
rdfs:label "Origin" ;
|
|
37
|
+
rdfs:subClassOf opt:Problem .
|
|
38
|
+
|
|
39
|
+
opt:Destination a rdfs:Class ;
|
|
40
|
+
rdfs:label "Destination" ;
|
|
41
|
+
rdfs:subClassOf opt:Problem .
|
|
42
|
+
|
|
43
|
+
opt:Transport a rdfs:Class ;
|
|
44
|
+
rdfs:label "Transport" ;
|
|
45
|
+
rdfs:subClassOf opt:Problem .
|
|
46
|
+
|
|
47
|
+
opt:Optimization a rdfs:Class ;
|
|
48
|
+
rdfs:label "Optimization" .
|
|
49
|
+
|
|
50
|
+
opt:Problem rdfs:comment "This problem is focused on efficiently allocating goods from a set of origins to a set of destinations. Each origin has a certain supply of goods, and each destination has a specific demand. There is a cost associated with transporting goods from an origin to a destination per unit of good. The objective is to minimize the total transportation cost while meeting the demands at the destinations without exceeding the supplies at the origins." .
|
|
51
|
+
|
|
52
|
+
opt:Optimization rdfs:comment "The objective is to minimize the total transportation cost while meeting the demands at the destinations without exceeding the supplies at the origins." .
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
4
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
5
|
+
@prefix vrptw: <http://www.example.org/vrptw#> .
|
|
6
|
+
|
|
7
|
+
vrptw:CustomerCount a owl:DatatypeProperty ;
|
|
8
|
+
rdfs:domain vrptw:VRPTW ;
|
|
9
|
+
rdfs:range xsd:integer .
|
|
10
|
+
|
|
11
|
+
vrptw:VehicleCount a owl:DatatypeProperty ;
|
|
12
|
+
rdfs:domain vrptw:VRPTW ;
|
|
13
|
+
rdfs:range xsd:integer .
|
|
14
|
+
|
|
15
|
+
vrptw:CustomerDemand a owl:DatatypeProperty ;
|
|
16
|
+
rdfs:domain vrptw:Customer ;
|
|
17
|
+
rdfs:range xsd:integer .
|
|
18
|
+
|
|
19
|
+
vrptw:CustomerLBTW a owl:DatatypeProperty ;
|
|
20
|
+
rdfs:domain vrptw:Customer ;
|
|
21
|
+
rdfs:range xsd:integer .
|
|
22
|
+
|
|
23
|
+
vrptw:CustomerUBTW a owl:DatatypeProperty ;
|
|
24
|
+
rdfs:domain vrptw:Customer ;
|
|
25
|
+
rdfs:range xsd:integer .
|
|
26
|
+
|
|
27
|
+
vrptw:CustomerDistance a owl:DatatypeProperty ;
|
|
28
|
+
rdfs:domain vrptw:Customer ;
|
|
29
|
+
rdfs:range xsd:integer .
|
|
30
|
+
|
|
31
|
+
vrptw:CustomerServiceTime a owl:DatatypeProperty ;
|
|
32
|
+
rdfs:domain vrptw:Customer ;
|
|
33
|
+
rdfs:range xsd:integer .
|
|
34
|
+
|
|
35
|
+
vrptw:VehicleCapacity a owl:DatatypeProperty ;
|
|
36
|
+
rdfs:domain vrptw:Vehicle ;
|
|
37
|
+
rdfs:range xsd:integer .
|
|
38
|
+
|
|
39
|
+
vrptw:VRPTW a owl:Class ;
|
|
40
|
+
rdfs:subClassOf [ a owl:Restriction ;
|
|
41
|
+
owl:onProperty vrptw:CustomerCount ;
|
|
42
|
+
owl:cardinality "1"^^xsd:nonNegativeInteger ] ,
|
|
43
|
+
[ a owl:Restriction ;
|
|
44
|
+
owl:onProperty vrptw:VehicleCount ;
|
|
45
|
+
owl:cardinality "1"^^xsd:nonNegativeInteger ] .
|
|
46
|
+
|
|
47
|
+
vrptw:Customer a owl:Class ;
|
|
48
|
+
rdfs:subClassOf [ a owl:Restriction ;
|
|
49
|
+
owl:onProperty vrptw:CustomerDemand ;
|
|
50
|
+
owl:cardinality "1"^^xsd:nonNegativeInteger ] ,
|
|
51
|
+
[ a owl:Restriction ;
|
|
52
|
+
owl:onProperty vrptw:CustomerLBTW ;
|
|
53
|
+
owl:cardinality "1"^^xsd:nonNegativeInteger ] ,
|
|
54
|
+
[ a owl:Restriction ;
|
|
55
|
+
owl:onProperty vrptw:CustomerUBTW ;
|
|
56
|
+
owl:cardinality "1"^^xsd:nonNegativeInteger ] ,
|
|
57
|
+
[ a owl:Restriction ;
|
|
58
|
+
owl:onProperty vrptw:CustomerDistance ;
|
|
59
|
+
owl:cardinality "1"^^xsd:nonNegativeInteger ] ,
|
|
60
|
+
[ a owl:Restriction ;
|
|
61
|
+
owl:onProperty vrptw:CustomerServiceTime ;
|
|
62
|
+
owl:cardinality "1"^^xsd:nonNegativeInteger ] .
|
|
63
|
+
|
|
64
|
+
vrptw:Vehicle a owl:Class ;
|
|
65
|
+
rdfs:subClassOf [ a owl:Restriction ;
|
|
66
|
+
owl:onProperty vrptw:VehicleCapacity ;
|
|
67
|
+
owl:cardinality "1"^^xsd:nonNegativeInteger ] .
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
5
|
+
|
|
6
|
+
opt:GoodsProductionProblem a opt:OptimizationProblem ;
|
|
7
|
+
opt:hasParameter opt:M, opt:N, opt:Available, opt:Requirements, opt:Prices ;
|
|
8
|
+
opt:hasVariable opt:GoodsProduced ;
|
|
9
|
+
opt:hasConstraint opt:RawMaterialAvailability ;
|
|
10
|
+
opt:hasObjective opt:MaximizeRevenue .
|
|
11
|
+
|
|
12
|
+
opt:M a opt:Parameter ;
|
|
13
|
+
rdfs:label "Number of different goods produced by the firm" ;
|
|
14
|
+
rdfs:comment "M is a scalar representing the number of different goods produced by the firm." ;
|
|
15
|
+
opt:hasExample "M = 4" ;
|
|
16
|
+
opt:hasShape "scalar" .
|
|
17
|
+
|
|
18
|
+
opt:N a opt:Parameter ;
|
|
19
|
+
rdfs:label "Number of different raw materials used by the firm" ;
|
|
20
|
+
rdfs:comment "N is a scalar representing the number of different raw materials used by the firm." ;
|
|
21
|
+
opt:hasExample "N = 5" ;
|
|
22
|
+
opt:hasShape "scalar" .
|
|
23
|
+
|
|
24
|
+
opt:Available a opt:Parameter ;
|
|
25
|
+
rdfs:label "Available amount of raw material i" ;
|
|
26
|
+
rdfs:comment "Available is a vector of length N representing the available amount of each raw material." ;
|
|
27
|
+
opt:hasExample "Available = [10, 20, 15, 35, 25]" ;
|
|
28
|
+
opt:hasShape "[N]" .
|
|
29
|
+
|
|
30
|
+
opt:Requirements a opt:Parameter ;
|
|
31
|
+
rdfs:label "Requirement of raw material i to produce one unit of good j" ;
|
|
32
|
+
rdfs:comment "Requirements is a 2D array of size N x M representing the requirement of each raw material to produce each good." ;
|
|
33
|
+
opt:hasExample "Requirements = array2d(1..4, 1..5, [3, 2, 0, 0, 0, 0, 5, 2, 1, 0, 1, 0, 0, 5, 3, 0, 3, 1, 1, 5])" ;
|
|
34
|
+
opt:hasShape "[N, M]" .
|
|
35
|
+
|
|
36
|
+
opt:Prices a opt:Parameter ;
|
|
37
|
+
rdfs:label "Revenue earned from selling one unit of good j" ;
|
|
38
|
+
rdfs:comment "Prices is a vector of length M representing the revenue earned from selling each good." ;
|
|
39
|
+
opt:hasExample "Prices = [7, 10, 5, 9]" ;
|
|
40
|
+
opt:hasShape "[M]" .
|
|
41
|
+
|
|
42
|
+
opt:GoodsProduced a opt:Variable ;
|
|
43
|
+
rdfs:label "Amount of each good produced" ;
|
|
44
|
+
rdfs:comment "GoodsProduced is a vector of length M representing the amount of each good to be produced." ;
|
|
45
|
+
opt:hasShape "[M]" .
|
|
46
|
+
|
|
47
|
+
opt:RawMaterialAvailability a opt:Constraint ;
|
|
48
|
+
rdfs:label "Raw material availability constraint" ;
|
|
49
|
+
rdfs:comment "The total amount of each raw material used in producing the goods must not exceed the available amount of that raw material." ;
|
|
50
|
+
opt:hasFormula "sum(GoodsProduced * Requirements) <= Available" .
|
|
51
|
+
|
|
52
|
+
opt:MaximizeRevenue a opt:Objective ;
|
|
53
|
+
rdfs:label "Maximize total revenue" ;
|
|
54
|
+
rdfs:comment "The objective is to maximize the total revenue, which is the sum of the revenue from selling each good, given by the product of the amount of each good produced and its price." ;
|
|
55
|
+
opt:hasFormula "maximize sum(GoodsProduced * Prices)" ;
|
|
56
|
+
opt:hasOptimizationType "maximization" .
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.semanticweb.org/ontologies/optimization#> .
|
|
5
|
+
|
|
6
|
+
:RoadIlluminationProblem a opt:OptimizationProblem ;
|
|
7
|
+
opt:hasParameter :N, :M, :Coefficients, :DesiredIlluminations ;
|
|
8
|
+
opt:hasVariable :LampPowers ;
|
|
9
|
+
opt:hasConstraint :IlluminationConstraint ;
|
|
10
|
+
opt:hasObjective :MinimizeErrorObjective .
|
|
11
|
+
|
|
12
|
+
:N a opt:Parameter ;
|
|
13
|
+
rdfs:label "N" ;
|
|
14
|
+
rdfs:comment "Number of different illuminations" ;
|
|
15
|
+
rdfs:range xsd:integer .
|
|
16
|
+
|
|
17
|
+
:M a opt:Parameter ;
|
|
18
|
+
rdfs:label "M" ;
|
|
19
|
+
rdfs:comment "Number of lamp powers" ;
|
|
20
|
+
rdfs:range xsd:integer .
|
|
21
|
+
|
|
22
|
+
:Coefficients a opt:Parameter ;
|
|
23
|
+
rdfs:label "Coefficients" ;
|
|
24
|
+
rdfs:comment "Coefficients relating lamp powers to illumination" ;
|
|
25
|
+
rdfs:range xsd:float .
|
|
26
|
+
|
|
27
|
+
:DesiredIlluminations a opt:Parameter ;
|
|
28
|
+
rdfs:label "DesiredIlluminations" ;
|
|
29
|
+
rdfs:comment "Desired level of illuminations" ;
|
|
30
|
+
rdfs:range xsd:float .
|
|
31
|
+
|
|
32
|
+
:LampPowers a opt:Variable ;
|
|
33
|
+
rdfs:label "LampPowers" ;
|
|
34
|
+
rdfs:comment "Powers of the lamps" ;
|
|
35
|
+
rdfs:range xsd:float .
|
|
36
|
+
|
|
37
|
+
:IlluminationConstraint a opt:Constraint ;
|
|
38
|
+
rdfs:label "IlluminationConstraint" ;
|
|
39
|
+
rdfs:comment "The illumination of the i-th segment is assumed to be \sum_{j=1}^{M} coeff_{i,j} power_j" ;
|
|
40
|
+
opt:hasVariable :LampPowers, :Coefficients .
|
|
41
|
+
|
|
42
|
+
:MinimizeErrorObjective a opt:Objective ;
|
|
43
|
+
rdfs:label "MinimizeErrorObjective" ;
|
|
44
|
+
rdfs:comment "Minimize the absolute error between the illuminations which are a result of choosing the lamp powers and the desired illuminations" ;
|
|
45
|
+
opt:hasVariable :LampPowers, :DesiredIlluminations ;
|
|
46
|
+
opt:isMinimizationObjective true .
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
5
|
+
|
|
6
|
+
opt:SchoolDistrictOptimizationProblem a opt:OptimizationProblem ;
|
|
7
|
+
opt:hasParameter opt:TotalNumberOfSchools, opt:TotalNumberOfStudentGroups, opt:TotalNumberOfNeighborhoods, opt:Capacity, opt:Population, opt:Distance ;
|
|
8
|
+
opt:hasVariable opt:StudentAssignment ;
|
|
9
|
+
opt:hasConstraint opt:CapacityConstraint, opt:PopulationConstraint ;
|
|
10
|
+
opt:hasObjective opt:MinimizeTotalDistance .
|
|
11
|
+
|
|
12
|
+
opt:TotalNumberOfSchools a opt:Parameter ;
|
|
13
|
+
rdfs:label "S" ;
|
|
14
|
+
rdfs:comment "Total number of schools" ;
|
|
15
|
+
rdfs:range xsd:integer .
|
|
16
|
+
|
|
17
|
+
opt:TotalNumberOfStudentGroups a opt:Parameter ;
|
|
18
|
+
rdfs:label "G" ;
|
|
19
|
+
rdfs:comment "Total number of student groups" ;
|
|
20
|
+
rdfs:range xsd:integer .
|
|
21
|
+
|
|
22
|
+
opt:TotalNumberOfNeighborhoods a opt:Parameter ;
|
|
23
|
+
rdfs:label "N" ;
|
|
24
|
+
rdfs:comment "Total number of neighborhoods" ;
|
|
25
|
+
rdfs:range xsd:integer .
|
|
26
|
+
|
|
27
|
+
opt:Capacity a opt:Parameter ;
|
|
28
|
+
rdfs:label "Capacity" ;
|
|
29
|
+
rdfs:comment "Capacity of school s for student group g" ;
|
|
30
|
+
rdfs:range xsd:integer .
|
|
31
|
+
|
|
32
|
+
opt:Population a opt:Parameter ;
|
|
33
|
+
rdfs:label "Population" ;
|
|
34
|
+
rdfs:comment "Population of student group g in neighborhood n" ;
|
|
35
|
+
rdfs:range xsd:integer .
|
|
36
|
+
|
|
37
|
+
opt:Distance a opt:Parameter ;
|
|
38
|
+
rdfs:label "Distance" ;
|
|
39
|
+
rdfs:comment "Distance between neighborhood n and school s" ;
|
|
40
|
+
rdfs:range xsd:float .
|
|
41
|
+
|
|
42
|
+
opt:StudentAssignment a opt:Variable ;
|
|
43
|
+
rdfs:comment "Assignment of students from neighborhoods to schools" ;
|
|
44
|
+
rdfs:range xsd:integer .
|
|
45
|
+
|
|
46
|
+
opt:CapacityConstraint a opt:Constraint ;
|
|
47
|
+
rdfs:comment "The total number of students assigned to a school should not exceed its capacity" .
|
|
48
|
+
|
|
49
|
+
opt:PopulationConstraint a opt:Constraint ;
|
|
50
|
+
rdfs:comment "The total number of students assigned from a neighborhood should not exceed its population" .
|
|
51
|
+
|
|
52
|
+
opt:MinimizeTotalDistance a opt:Objective ;
|
|
53
|
+
rdfs:comment "Minimize the total distance traveled by all students" ;
|
|
54
|
+
opt:optimizationType opt:Minimization .
|
|
55
|
+
|
|
56
|
+
opt:Minimization a opt:OptimizationType ;
|
|
57
|
+
rdfs:label "Minimization" .
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
5
|
+
|
|
6
|
+
opt:Deliver a rdf:Property ;
|
|
7
|
+
rdfs:label "Deliver" ;
|
|
8
|
+
rdfs:domain opt:Problem ;
|
|
9
|
+
rdfs:range xsd:integer ;
|
|
10
|
+
rdfs:comment "Demand for the product in each period i" .
|
|
11
|
+
|
|
12
|
+
opt:StorageCost a rdf:Property ;
|
|
13
|
+
rdfs:label "StorageCost" ;
|
|
14
|
+
rdfs:domain opt:Problem ;
|
|
15
|
+
rdfs:range xsd:integer ;
|
|
16
|
+
rdfs:comment "Cost to hold one unit of product in storage for one period" .
|
|
17
|
+
|
|
18
|
+
opt:SwitchCost a rdf:Property ;
|
|
19
|
+
rdfs:label "SwitchCost" ;
|
|
20
|
+
rdfs:domain opt:Problem ;
|
|
21
|
+
rdfs:range xsd:integer ;
|
|
22
|
+
rdfs:comment "Cost to switch the production from one period to another" .
|
|
23
|
+
|
|
24
|
+
opt:T a rdf:Property ;
|
|
25
|
+
rdfs:label "T" ;
|
|
26
|
+
rdfs:domain opt:Problem ;
|
|
27
|
+
rdfs:range xsd:integer ;
|
|
28
|
+
rdfs:comment "Total number of periods" .
|
|
29
|
+
|
|
30
|
+
opt:Problem a rdfs:Class ;
|
|
31
|
+
rdfs:label "Problem" ;
|
|
32
|
+
rdfs:comment "Optimization problem to minimize the total cost of the production and inventory schedule over the next few months" .
|
|
33
|
+
|
|
34
|
+
opt:Variable a rdfs:Class ;
|
|
35
|
+
rdfs:label "Variable" ;
|
|
36
|
+
rdfs:comment "Variables used in the optimization problem" .
|
|
37
|
+
|
|
38
|
+
opt:Constraint a rdfs:Class ;
|
|
39
|
+
rdfs:label "Constraint" ;
|
|
40
|
+
rdfs:comment "Constraints used in the optimization problem" .
|
|
41
|
+
|
|
42
|
+
opt:Objective a rdfs:Class ;
|
|
43
|
+
rdfs:label "Objective" ;
|
|
44
|
+
rdfs:comment "Objective function of the optimization problem" .
|
|
45
|
+
|
|
46
|
+
opt:Variable rdfs:subClassOf opt:Problem .
|
|
47
|
+
opt:Constraint rdfs:subClassOf opt:Problem .
|
|
48
|
+
opt:Objective rdfs:subClassOf opt:Problem .
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
5
|
+
|
|
6
|
+
opt:CurrencyOptimizationProblem a opt:OptimizationProblem ;
|
|
7
|
+
opt:hasParameter opt:N, opt:Start, opt:Limit, opt:Rate ;
|
|
8
|
+
opt:hasVariable opt:CurrencyTransactions ;
|
|
9
|
+
opt:hasConstraint opt:TransactionLimitConstraint, opt:WealthMultiplicationConstraint ;
|
|
10
|
+
opt:hasObjective opt:MaximizeCurrency .
|
|
11
|
+
|
|
12
|
+
opt:N a opt:Parameter ;
|
|
13
|
+
rdfs:label "N" ;
|
|
14
|
+
rdfs:comment "Number of different currencies" ;
|
|
15
|
+
rdfs:range xsd:integer .
|
|
16
|
+
|
|
17
|
+
opt:Start a opt:Parameter ;
|
|
18
|
+
rdfs:label "Start" ;
|
|
19
|
+
rdfs:comment "Initial amount of currency i" ;
|
|
20
|
+
rdfs:range xsd:float .
|
|
21
|
+
|
|
22
|
+
opt:Limit a opt:Parameter ;
|
|
23
|
+
rdfs:label "Limit" ;
|
|
24
|
+
rdfs:comment "Limit for the number of transactions for currency i" ;
|
|
25
|
+
rdfs:range xsd:float .
|
|
26
|
+
|
|
27
|
+
opt:Rate a opt:Parameter ;
|
|
28
|
+
rdfs:label "Rate" ;
|
|
29
|
+
rdfs:comment "Exchange rate from currency i to currency j" ;
|
|
30
|
+
rdfs:range xsd:float .
|
|
31
|
+
|
|
32
|
+
opt:CurrencyTransactions a opt:Variable ;
|
|
33
|
+
rdfs:label "CurrencyTransactions" ;
|
|
34
|
+
rdfs:comment "Number of transactions for each currency" ;
|
|
35
|
+
rdfs:range xsd:float .
|
|
36
|
+
|
|
37
|
+
opt:TransactionLimitConstraint a opt:Constraint ;
|
|
38
|
+
rdfs:label "TransactionLimitConstraint" ;
|
|
39
|
+
rdfs:comment "The total amount of each currency that can be exchanged should not exceed the limit" .
|
|
40
|
+
|
|
41
|
+
opt:WealthMultiplicationConstraint a opt:Constraint ;
|
|
42
|
+
rdfs:label "WealthMultiplicationConstraint" ;
|
|
43
|
+
rdfs:comment "Wealth cannot be multiplied by going through a cycle of currencies" .
|
|
44
|
+
|
|
45
|
+
opt:MaximizeCurrency a opt:Objective ;
|
|
46
|
+
rdfs:label "MaximizeCurrency" ;
|
|
47
|
+
rdfs:comment "Maximize the number of units of currency that we end up with at the end of the day" ;
|
|
48
|
+
opt:optimizationType opt:Maximization .
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
|
|
4
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
5
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
6
|
+
|
|
7
|
+
opt:M a rdf:Property ;
|
|
8
|
+
rdfs:label "Number of inequalities" ;
|
|
9
|
+
rdfs:domain opt:Problem ;
|
|
10
|
+
rdfs:range xsd:integer .
|
|
11
|
+
|
|
12
|
+
opt:N a rdf:Property ;
|
|
13
|
+
rdfs:label "Ambient space dimension" ;
|
|
14
|
+
rdfs:domain opt:Problem ;
|
|
15
|
+
rdfs:range xsd:integer .
|
|
16
|
+
|
|
17
|
+
opt:A a rdf:Property ;
|
|
18
|
+
rdfs:label "Coefficients of linear inequalities" ;
|
|
19
|
+
rdfs:domain opt:Problem ;
|
|
20
|
+
rdfs:range opt:Matrix .
|
|
21
|
+
|
|
22
|
+
opt:B a rdf:Property ;
|
|
23
|
+
rdfs:label "Right-hand side of inequalities" ;
|
|
24
|
+
rdfs:domain opt:Problem ;
|
|
25
|
+
rdfs:range opt:Vector .
|
|
26
|
+
|
|
27
|
+
opt:Matrix a rdfs:Class ;
|
|
28
|
+
rdfs:label "Matrix" .
|
|
29
|
+
|
|
30
|
+
opt:Vector a rdfs:Class ;
|
|
31
|
+
rdfs:label "Vector" .
|
|
32
|
+
|
|
33
|
+
opt:Problem a owl:Class ;
|
|
34
|
+
rdfs:label "Optimization problem" ;
|
|
35
|
+
rdfs:subClassOf [
|
|
36
|
+
a owl:Restriction ;
|
|
37
|
+
owl:onProperty opt:M ;
|
|
38
|
+
owl:allValuesFrom xsd:integer
|
|
39
|
+
] , [
|
|
40
|
+
a owl:Restriction ;
|
|
41
|
+
owl:onProperty opt:N ;
|
|
42
|
+
owl:allValuesFrom xsd:integer
|
|
43
|
+
] , [
|
|
44
|
+
a owl:Restriction ;
|
|
45
|
+
owl:onProperty opt:A ;
|
|
46
|
+
owl:allValuesFrom opt:Matrix
|
|
47
|
+
] , [
|
|
48
|
+
a owl:Restriction ;
|
|
49
|
+
owl:onProperty opt:B ;
|
|
50
|
+
owl:allValuesFrom opt:Vector
|
|
51
|
+
] .
|
|
52
|
+
|
|
53
|
+
opt:ChebychevCenter a owl:Class ;
|
|
54
|
+
rdfs:label "Chebychev center" ;
|
|
55
|
+
rdfs:subClassOf opt:Problem ;
|
|
56
|
+
rdfs:comment "Find a ball with the largest possible radius, which is entirely contained within the set P" .
|
|
57
|
+
|
|
58
|
+
opt:ChebychevCenter rdfs:subClassOf [
|
|
59
|
+
a owl:Restriction ;
|
|
60
|
+
owl:onProperty opt:objective ;
|
|
61
|
+
owl:hasValue "Maximize radius"
|
|
62
|
+
] .
|
|
63
|
+
|
|
64
|
+
opt:ChebychevCenter rdfs:subClassOf [
|
|
65
|
+
a owl:Restriction ;
|
|
66
|
+
owl:onProperty opt:constraint ;
|
|
67
|
+
owl:someValuesFrom opt:LinearInequality
|
|
68
|
+
] .
|
|
69
|
+
|
|
70
|
+
opt:LinearInequality a owl:Class ;
|
|
71
|
+
rdfs:label "Linear inequality" ;
|
|
72
|
+
rdfs:comment "{a_i}^T x <= b_i , i = 1, ..., m" .
|
|
73
|
+
|
|
74
|
+
opt:objective a rdf:Property ;
|
|
75
|
+
rdfs:label "Objective" ;
|
|
76
|
+
rdfs:domain opt:Problem ;
|
|
77
|
+
rdfs:range xsd:string .
|
|
78
|
+
|
|
79
|
+
opt:constraint a rdf:Property ;
|
|
80
|
+
rdfs:label "Constraint" ;
|
|
81
|
+
rdfs:domain opt:Problem ;
|
|
82
|
+
rdfs:range opt:LinearInequality .
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
|
|
2
|
+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
|
3
|
+
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
|
4
|
+
@prefix opt: <http://www.example.org/optimization#> .
|
|
5
|
+
|
|
6
|
+
opt:Product a rdfs:Class ;
|
|
7
|
+
rdfs:label "Product" ;
|
|
8
|
+
rdfs:comment "A type of product produced and sold by the company" .
|
|
9
|
+
|
|
10
|
+
opt:Machine a rdfs:Class ;
|
|
11
|
+
rdfs:label "Machine" ;
|
|
12
|
+
rdfs:comment "Machinery used for production" .
|
|
13
|
+
|
|
14
|
+
opt:Cash a rdfs:Class ;
|
|
15
|
+
rdfs:label "Cash" ;
|
|
16
|
+
rdfs:comment "Initial cash available for investment" .
|
|
17
|
+
|
|
18
|
+
opt:Hour a rdfs:Class ;
|
|
19
|
+
rdfs:label "Hour" ;
|
|
20
|
+
rdfs:comment "Hours required to produce one unit of product" .
|
|
21
|
+
|
|
22
|
+
opt:Cost a rdfs:Class ;
|
|
23
|
+
rdfs:label "Cost" ;
|
|
24
|
+
rdfs:comment "Cost to produce one unit of product" .
|
|
25
|
+
|
|
26
|
+
opt:Price a rdfs:Class ;
|
|
27
|
+
rdfs:label "Price" ;
|
|
28
|
+
rdfs:comment "Selling price for one unit of product" .
|
|
29
|
+
|
|
30
|
+
opt:InvestPercentage a rdfs:Class ;
|
|
31
|
+
rdfs:label "InvestPercentage" ;
|
|
32
|
+
rdfs:comment "Percentage of income to reinvest for product" .
|
|
33
|
+
|
|
34
|
+
opt:UpgradeHours a rdfs:Class ;
|
|
35
|
+
rdfs:label "UpgradeHours" ;
|
|
36
|
+
rdfs:comment "Hours required for upgrading the machinery" .
|
|
37
|
+
|
|
38
|
+
opt:UpgradeCost a rdfs:Class ;
|
|
39
|
+
rdfs:label "UpgradeCost" ;
|
|
40
|
+
rdfs:comment "Cost associated with upgrading the machinery" .
|
|
41
|
+
|
|
42
|
+
opt:AvailableHours a rdfs:Class ;
|
|
43
|
+
rdfs:label "AvailableHours" ;
|
|
44
|
+
rdfs:comment "Total available machine hours" .
|
|
45
|
+
|
|
46
|
+
opt:NetIncome a rdfs:Class ;
|
|
47
|
+
rdfs:label "NetIncome" ;
|
|
48
|
+
rdfs:comment "Net income from each product" .
|
|
49
|
+
|
|
50
|
+
opt:MaximizeNetIncome a rdfs:Class ;
|
|
51
|
+
rdfs:label "MaximizeNetIncome" ;
|
|
52
|
+
rdfs:comment "Objective to maximize total net income" .
|
|
53
|
+
|
|
54
|
+
opt:CashConstraint a rdfs:Class ;
|
|
55
|
+
rdfs:label "CashConstraint" ;
|
|
56
|
+
rdfs:comment "Constraint on cash availability" .
|
|
57
|
+
|
|
58
|
+
opt:MachineCapacityConstraint a rdfs:Class ;
|
|
59
|
+
rdfs:label "MachineCapacityConstraint" ;
|
|
60
|
+
rdfs:comment "Constraint on machine capacity" .
|