Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
Conversion
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vladislav Kiselev
Conversion
Commits
0ab456fe
Commit
0ab456fe
authored
May 02, 2019
by
Vladislav Kiselev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Комментарий и заметка.
parent
90dfc6f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/constraints/conversion_2.mzn
src/constraints/conversion_2.mzn
+4
-1
No files found.
src/constraints/conversion_2.mzn
View file @
0ab456fe
...
...
@@ -220,7 +220,7 @@ array [1..n_operations] of 1..n_locations : operations_destination; % Локац
\/
((
participation_as_resource
[
obj
,
t
]
!=
0
)
/\
(
not
is_moving_operation
[
participation_as_resource
[
obj
,
t
]]))
);
% Операции перемещения исключают операции грузообработки и наоборот.
constraint
forall
(
obj
in
1
..
n_moving_obj
,
t
in
1
..
n_intervals
)
(
is_involved_in_cargo_op
[
obj
,
t
]
->
(
current_moving_operation
[
obj
,
t
]
=
0
)
);
...
...
@@ -244,6 +244,9 @@ array [1..n_operations] of 1..n_locations : operations_destination; % Локац
((
not
is_moving_operation
[
op
])
->
(
current_moving_operation
[
obj
,
t
]
=
0
))
)
);
/* TODO узнать, как ((not is_moving_operation[op]) -> (current_moving_operation[obj, t] = 0)) влияет на производительность -
по идее это не нужно, но на v2-60 без неё гораздо лучше чем с ней.
*/
% Наличие и готовность главных объектов (субъектов).
constraint
forall
(
op
in
1
..
n_operations
,
t
in
1
..
n_intervals
,
obj
=
main_obj_of_operation
[
op
])
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment