Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion process/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def _ineq_cons_satisfied(
np.array(self.bndu),
max_iter=global_variables.maxcal,
epsilon=self.tolerance,
qsp_options={"eps_rel": 1e-1, "adaptive_rho_interval": 25},
qsp_options={"adaptive_rho_interval": 25},
initial_B=bb,
callback=_solver_callback,
additional_convergence=_ineq_cons_satisfied
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@
"install_requires": [
"numpy>=1.23",
"scipy>=1.10",
"cvxpy!=1.3.0,!=1.3.1",
"cvxpy~=1.7.3",
"osqp>=1.0",
"pandas>=2.0",
"numba>=0.57",
"PyVMCON>=2.3.1,<3.0.0",
"PyVMCON>=2.4.0,<2.5.0",
"CoolProp>=6.4",
"matplotlib>=2.1.1",
"seaborn>=0.12.2",
Expand Down
7 changes: 5 additions & 2 deletions tests/integration/test_vmcon.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ def __init__(self, name, evaluator):


class SolverArgs:
def __init__(self):
def __init__(self, n=2):
Comment thread
chris-ashe marked this conversation as resolved.
"""Initialise some common arguments to the solver adapter.

:param n: number of input variables (default 2)
:type n: int

These arguments are shared between some of the test cases.
"""
# No bounds on x values set
n = 2
self.x = np.zeros(n)
self.ilower = np.zeros(n)
self.iupper = np.zeros(n)
Expand Down Expand Up @@ -564,6 +566,7 @@ def get_case5():
"""
# Create a case-specific Vmcon object with overridden fcnvmc1 and 2
case = Case("5", Evaluator5())
case.solver_args = SolverArgs(n=1)

# Set up vmcon values for this case
neqns = 1
Expand Down
Loading