@@ -240,7 +240,7 @@ def solve_problem_from_model(
240240 warmstart_fn : Path | None = None ,
241241 basis_fn : Path | None = None ,
242242 env : None = None ,
243- with_names : bool = False ,
243+ explicit_coordinate_names : bool = False ,
244244 ) -> Result :
245245 """
246246 Abstract method to solve a linear problem from a model.
@@ -279,7 +279,7 @@ def solve_problem(
279279 warmstart_fn : Path | None = None ,
280280 basis_fn : Path | None = None ,
281281 env : None = None ,
282- with_names : bool = False ,
282+ explicit_coordinate_names : bool = False ,
283283 ) -> Result :
284284 """
285285 Solve a linear problem either from a model or a problem file.
@@ -299,7 +299,7 @@ def solve_problem(
299299 warmstart_fn = warmstart_fn ,
300300 basis_fn = basis_fn ,
301301 env = env ,
302- with_names = with_names ,
302+ explicit_coordinate_names = explicit_coordinate_names ,
303303 )
304304 elif problem_fn is not None :
305305 return self .solve_problem_from_file (
@@ -343,7 +343,7 @@ def solve_problem_from_model(
343343 warmstart_fn : Path | None = None ,
344344 basis_fn : Path | None = None ,
345345 env : None = None ,
346- with_names : bool = False ,
346+ explicit_coordinate_names : bool = False ,
347347 ):
348348 msg = "Direct API not implemented for CBC"
349349 raise NotImplementedError (msg )
@@ -501,7 +501,7 @@ def solve_problem_from_model(
501501 warmstart_fn : Path | None = None ,
502502 basis_fn : Path | None = None ,
503503 env : None = None ,
504- with_names : bool = False ,
504+ explicit_coordinate_names : bool = False ,
505505 ) -> Result :
506506 msg = "Direct API not implemented for GLPK"
507507 raise NotImplementedError (msg )
@@ -684,7 +684,7 @@ def solve_problem_from_model(
684684 warmstart_fn : Path | None = None ,
685685 basis_fn : Path | None = None ,
686686 env : None = None ,
687- with_names : bool = False ,
687+ explicit_coordinate_names : bool = False ,
688688 ) -> Result :
689689 """
690690 Solve a linear problem directly from a linopy model using the Highs solver.
@@ -706,7 +706,7 @@ def solve_problem_from_model(
706706 Path to the basis file.
707707 env : None, optional
708708 Environment for the solver
709- with_names : bool, optional
709+ explicit_coordinate_names : bool, optional
710710 Transfer variable and constraint names to the solver (default: False)
711711
712712 Returns
@@ -727,7 +727,7 @@ def solve_problem_from_model(
727727 "Drop the solver option or use 'choose' to enable quadratic terms / integrality."
728728 )
729729
730- h = model .to_highspy (with_names = with_names )
730+ h = model .to_highspy (explicit_coordinate_names = explicit_coordinate_names )
731731
732732 if log_fn is None and model is not None :
733733 log_fn = model .solver_dir / "highs.log"
@@ -904,7 +904,7 @@ def solve_problem_from_model(
904904 warmstart_fn : Path | None = None ,
905905 basis_fn : Path | None = None ,
906906 env : None = None ,
907- with_names : bool = False ,
907+ explicit_coordinate_names : bool = False ,
908908 ) -> Result :
909909 """
910910 Solve a linear problem directly from a linopy model using the Gurobi solver.
@@ -925,7 +925,7 @@ def solve_problem_from_model(
925925 Path to the basis file.
926926 env : None, optional
927927 Gurobi environment for the solver
928- with_names : bool, optional
928+ explicit_coordinate_names : bool, optional
929929 Transfer variable and constraint names to the solver (default: False)
930930
931931 Returns
@@ -938,7 +938,9 @@ def solve_problem_from_model(
938938 else :
939939 env_ = env
940940
941- m = model .to_gurobipy (env = env_ , with_names = with_names )
941+ m = model .to_gurobipy (
942+ env = env_ , explicit_coordinate_names = explicit_coordinate_names
943+ )
942944
943945 return self ._solve (
944946 m ,
@@ -1139,7 +1141,7 @@ def solve_problem_from_model(
11391141 warmstart_fn : Path | None = None ,
11401142 basis_fn : Path | None = None ,
11411143 env : None = None ,
1142- with_names : bool = False ,
1144+ explicit_coordinate_names : bool = False ,
11431145 ) -> Result :
11441146 msg = "Direct API not implemented for Cplex"
11451147 raise NotImplementedError (msg )
@@ -1282,7 +1284,7 @@ def solve_problem_from_model(
12821284 warmstart_fn : Path | None = None ,
12831285 basis_fn : Path | None = None ,
12841286 env : None = None ,
1285- with_names : bool = False ,
1287+ explicit_coordinate_names : bool = False ,
12861288 ) -> Result :
12871289 msg = "Direct API not implemented for SCIP"
12881290 raise NotImplementedError (msg )
@@ -1424,7 +1426,7 @@ def solve_problem_from_model(
14241426 warmstart_fn : Path | None = None ,
14251427 basis_fn : Path | None = None ,
14261428 env : None = None ,
1427- with_names : bool = False ,
1429+ explicit_coordinate_names : bool = False ,
14281430 ) -> Result :
14291431 msg = "Direct API not implemented for Xpress"
14301432 raise NotImplementedError (msg )
@@ -1570,7 +1572,7 @@ def solve_problem_from_model(
15701572 warmstart_fn : Path | None = None ,
15711573 basis_fn : Path | None = None ,
15721574 env : None = None ,
1573- with_names : bool = False ,
1575+ explicit_coordinate_names : bool = False ,
15741576 ) -> Result :
15751577 """
15761578 Solve a linear problem directly from a linopy model using the MOSEK solver.
@@ -1589,7 +1591,7 @@ def solve_problem_from_model(
15891591 Path to the basis file.
15901592 env : None, optional
15911593 Mosek environment for the solver
1592- with_names : bool, optional
1594+ explicit_coordinate_names : bool, optional
15931595 Transfer variable and constraint names to the solver (default: False)
15941596
15951597 Returns
@@ -1601,7 +1603,9 @@ def solve_problem_from_model(
16011603 env_ = stack .enter_context (mosek .Env ())
16021604
16031605 with env_ .Task () as m :
1604- m = model .to_mosek (m , with_names = with_names )
1606+ m = model .to_mosek (
1607+ m , explicit_coordinate_names = explicit_coordinate_names
1608+ )
16051609
16061610 return self ._solve (
16071611 m ,
@@ -1895,7 +1899,7 @@ def solve_problem_from_model(
18951899 warmstart_fn : Path | None = None ,
18961900 basis_fn : Path | None = None ,
18971901 env : None = None ,
1898- with_names : bool = False ,
1902+ explicit_coordinate_names : bool = False ,
18991903 ) -> Result :
19001904 msg = "Direct API not implemented for COPT"
19011905 raise NotImplementedError (msg )
@@ -2038,7 +2042,7 @@ def solve_problem_from_model(
20382042 warmstart_fn : Path | None = None ,
20392043 basis_fn : Path | None = None ,
20402044 env : None = None ,
2041- with_names : bool = False ,
2045+ explicit_coordinate_names : bool = False ,
20422046 ) -> Result :
20432047 msg = "Direct API not implemented for MindOpt"
20442048 raise NotImplementedError (msg )
0 commit comments