Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Louis BECQUEY
/
biorseo
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Network
Create a new issue
Builds
Commits
Authored by
Louis BECQUEY
2019-03-26 13:45:47 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0d8a505edb5413f226ab4c20d8eb9fccdbdd819f
0d8a505e
1 parent
f6f27917
No more constraint limit
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
cppsrc/MOIP.cpp
cppsrc/MOIP.cpp
View file @
0d8a505
...
...
@@ -128,16 +128,16 @@ MOIP::MOIP(const RNA& rna, const vector<Motif>& insertionSites, float theta, boo
model_
=
IloModel
(
env_
);
define_problem_constraints
();
if
(
verbose_
)
cout
<<
"A total of "
<<
getNumConstraints
(
model_
)
<<
" constraints are used."
<<
endl
;
if
(
getNumConstraints
(
model_
)
>
1500
)
{
cerr
<<
"
\033
[31m Quitting because too hard for me (too many constraints). Srry.
\033
[0m"
<<
endl
;
exit
(
1
);
}
//
if (getNumConstraints(model_) > 1500) {
//
cerr << "\033[31m Quitting because too hard for me (too many constraints). Srry. \033[0m" << endl;
//
exit(1);
//
}
if
(
getNumConstraints
(
model_
)
>
2000
)
{
cerr
<<
"Stopping 'cause too big for me...
"
<<
endl
;
exit
(
-
1
);
}
//
if (getNumConstraints(model_) > 2000) {
// cerr << "\033[31mStopping 'cause too big for me...\033[0m
" << endl;
//
exit(-1);
//
}
// Define the motif objective function:
obj1
=
IloExpr
(
env_
);
...
...
@@ -495,7 +495,7 @@ void MOIP::add_solution(const SecondaryStructure& s)
{
if
(
verbose_
)
cout
<<
"
\t
>adding structure to Pareto set :
\t
"
<<
s
.
to_string
()
<<
endl
;
pareto_
.
push_back
(
s
);
if
(
pareto_
.
size
()
>
3
00
)
{
if
(
pareto_
.
size
()
>
5
00
)
{
cerr
<<
"
\033
[31m Quitting because combinatorial issues.
\033
[0m"
;
exit
(
1
);
}
...
...
Please
register
or
login
to post a comment