Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OMEGAlpes
OMEGAlpes
Commits
ec62b809
Commit
ec62b809
authored
May 02, 2022
by
brugerma
Browse files
update model
parent
7b7bc6a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
omegalpes/general/optimisation/model.py
View file @
ec62b809
...
...
@@ -404,7 +404,7 @@ class OptimisationModel(LpProblem):
pareto_model
.
_model_pareto_objectives_list
[
1
].
exp
))
if
solver
is
None
:
pareto_model
.
solve
(
solver
=
PULP_CBC_CMD
(
timeLimit
=
60
),
use_mps
=
False
)
pareto_model
.
solve
(
solver
=
PULP_CBC_CMD
(
maxSeconds
=
60
),
use_mps
=
False
)
else
:
pareto_model
.
solve
(
solver
=
solver
,
use_mps
=
False
)
...
...
@@ -421,7 +421,7 @@ class OptimisationModel(LpProblem):
print
(
"
\n
- - WARNING - -"
)
print
(
" A time limit has been set at 60 seconds"
)
print
(
" A way to change it is to change the solve method of the model with the following script"
)
print
(
"
\n
(solver=PULP_CBC_CMD(
timeLimit
= T ), use_mps=False)"
)
print
(
"
\n
(solver=PULP_CBC_CMD(
maxSeconds
= T ), use_mps=False)"
)
print
(
"
\n
with T the number of seconds you need to perform your pareto assessment"
)
print
(
"
\n
- - WARNING - -"
)
else
:
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment