Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tss
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Janák
tss
Commits
a970a0fa
Commit
a970a0fa
authored
3 months ago
by
Jakub Janák
Browse files
Options
Downloads
Patches
Plain Diff
just formatted the code
parent
3c14961a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
controller/controller.cpp
+5
-4
5 additions, 4 deletions
controller/controller.cpp
with
5 additions
and
4 deletions
controller/controller.cpp
+
5
−
4
View file @
a970a0fa
...
...
@@ -2,7 +2,6 @@
#include
"../helper/helper.hpp"
#include
"../files/file_manager.hpp"
#include
<iostream>
#include
<random>
#include
<filesystem>
...
...
@@ -17,7 +16,8 @@ controller::controller() {
(
"create-synthetic-instance,c"
,
boost
::
program_options
::
value
<
int
>
(),
"Create synthetic instance (fully connected graph) with n vertices"
)
(
"solve,s"
,
"Solve the instances in queue"
)
(
"solve-parallel,p"
,
boost
::
program_options
::
value
<
int
>
(),
"Parallel solve the instances in queue, with number of threads"
)
(
"solve-parallel,p"
,
boost
::
program_options
::
value
<
int
>
(),
"Parallel solve the instances in queue, with number of threads"
)
(
"heuristic-combo,e"
,
"Use nearest neighbour + 2Opt to approximate the best path"
);
}
...
...
@@ -34,7 +34,7 @@ void controller::print_header() {
std
::
cout
<<
"
\033
[0m"
;
}
int
controller
::
run
(
int
argc
,
char
*
argv
[])
{
int
controller
::
run
(
const
int
argc
,
char
*
argv
[])
{
// print header every time
print_header
();
...
...
@@ -94,7 +94,8 @@ int controller::run(int argc, char *argv[]) {
}
void
controller
::
load_instance
(
const
std
::
string
&
file_name
)
{
std
::
unique_ptr
<
ts_instance
>
tsInstance
=
file_manager
::
read_dot_file
(
file_manager
::
INSTANCES_PATH
+
"/"
+
file_name
);
std
::
unique_ptr
<
ts_instance
>
tsInstance
=
file_manager
::
read_dot_file
(
file_manager
::
INSTANCES_PATH
+
"/"
+
file_name
);
if
(
tsInstance
==
nullptr
)
{
return
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment