Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
Discrete Optimization Library
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Metrics
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bachelorarbeit
Discrete Optimization Library
Commits
f5f5f876
Commit
f5f5f876
authored
Sep 19, 2020
by
Jonas Seidel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
providing mip solving support through scip
parent
3d4dc3e1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
0 deletions
+11
-0
.gitignore
.gitignore
+1
-0
Linear_Programming/Linear_Program.cpp
Linear_Programming/Linear_Program.cpp
+9
-0
Linear_Programming/Linear_Program.h
Linear_Programming/Linear_Program.h
+1
-0
No files found.
.gitignore
View file @
f5f5f876
...
...
@@ -7,3 +7,4 @@ linear_program_test
maintenance_problem_test
.test
.data/Maintenance_Problem/mp
.data/.cache/*.lp
Linear_Programming/Linear_Program.cpp
View file @
f5f5f876
...
...
@@ -36,6 +36,15 @@ size_t Linear_Program::direction_end(){
std
::
vector
<
double
>&
Linear_Program
::
direction
(){
return
this
->
_direction
;
void
Linear_Program
::
solve
(){
std
::
stringstream
path
;
path
<<
"./.data/.cache/"
<<
this
<<
".lp"
;
std
::
ofstream
ofs
(
path
.
str
());
ofs
<<
"solving:
\n
"
<<
*
this
<<
std
::
endl
;
std
::
stringstream
command
;
command
<<
"scip -c
\"
read "
<<
path
.
str
()
<<
" optimize quit
\"
"
;
system
(
command
.
str
().
c_str
());
}
void
Linear_Program
::
operator
=
(
Linear_Program
&
lp
){
...
...
Linear_Programming/Linear_Program.h
View file @
f5f5f876
...
...
@@ -24,6 +24,7 @@ public:
size_t
&
direction_start
();
size_t
direction_end
();
std
::
vector
<
double
>&
direction
();
void
solve
();
void
operator
=
(
Linear_Program
&
lp
);
void
operator
=
(
Linear_Program
&&
lp
);
...
...
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