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
52525b8b
Commit
52525b8b
authored
Apr 30, 2019
by
Vladislav Kiselev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug fixed.
parent
220ecfd7
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 @
52525b8b
...
...
@@ -40,7 +40,10 @@ array [1..n_moving_obj, 1..n_operations] of bool : moving_op_of_obj;
constraint
forall
(
loc
in
1
..
n_locations
,
t
in
0
..
n_intervals
where
(
loc
mod
2
)
=
0
)
(
obj_in_loc_counter
[
loc
,
t
]
=
(
sum
(
obj
in
1
..
n_moving_obj
)
(
m_obj_loc
[
obj
,
t
+
1
]
=
loc
))
% Швартовка и нахождение у причала.
+
(
sum
(
op
in
related_unmoored_cargo_op
[
twin_location
[
loc
]])
(
op_status
[
op
,
t
]))
% Погрузка без швартовки.
+
(
sum
(
op
in
1
..
n_operations
where
(
is_mooring_op
[
op
]
/\
(
main_obj_start_loc
[
op
]
mod
2
=
0
)))
% Отшвартовка.
% + (sum (op in 1..n_operations where ((not is_moving_operation[op]) /\ (main_obj_start_loc[op] = twin_location[loc]))) % Погрузка без швартовки.
% (op_status[op, t])
% ) % TODO узнать, почему медленнее варианта выше.
+
(
sum
(
op
in
1
..
n_operations
where
(
is_mooring_op
[
op
]
/\
(
main_obj_start_loc
[
op
]
=
loc
)))
% Отшвартовка.
(
op_status
[
op
,
t
])
)
);
...
...
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