From f2113726db32cfd70afdd93b985fce83ed974ffb Mon Sep 17 00:00:00 2001 From: Dhruv Khanna Date: Tue, 16 Jan 2024 12:01:54 +0000 Subject: [PATCH] Introduce the MaxNodes Option to PULP_CBC_CMD solver (#718) * Add MaxNodes option to PULP_CBC_CMD solver * remove vs code settings * in checking that the file is executable adding maxNodes=maxNodes * in checking that the file is executable adding maxNodes=maxNodes --- pulp/apis/coin_api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pulp/apis/coin_api.py b/pulp/apis/coin_api.py index 6b03411d..f0e68e6b 100644 --- a/pulp/apis/coin_api.py +++ b/pulp/apis/coin_api.py @@ -361,6 +361,7 @@ def __init__( threads=None, logPath=None, timeMode="elapsed", + maxNodes=None, ): if path is not None: raise PulpSolverError("Use COIN_CMD if you want to set a path") @@ -382,6 +383,7 @@ def __init__( threads=threads, logPath=logPath, timeMode=timeMode, + maxNodes=maxNodes, )