Skip to content

Commit fe49f71

Browse files
simply add multiobj to __init__.pyi
1 parent 34a908c commit fe49f71

File tree

2 files changed

+2
-22
lines changed

2 files changed

+2
-22
lines changed

src/highspy/_core/__init__.pyi

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,7 @@ class _Highs:
788788
indices: numpy.ndarray[typing.Any, numpy.dtype[numpy.int32]],
789789
values: numpy.ndarray[typing.Any, numpy.dtype[numpy.float64]],
790790
) -> HighsStatus: ...
791+
def addLinearObjective(self, linear_objective: HighsLinearObjective) -> HighsStatus: ...
791792
def addVar(self, lower_bound: float, upper_bound: float) -> HighsStatus: ...
792793
def addVars(
793794
self,
@@ -825,6 +826,7 @@ class _Highs:
825826
def changeRowBounds(self, row: int, lower_bound: float, upper_bound: float) -> HighsStatus: ...
826827
def clear(self) -> HighsStatus: ...
827828
def clearModel(self) -> HighsStatus: ...
829+
def clearLinearObjectives(self) -> HighsStatus: ...
828830
def clearSolver(self) -> HighsStatus: ...
829831
def crossover(self, solution: HighsSolution) -> HighsStatus: ...
830832
def deleteCols(self, num_cols: int, cols: numpy.ndarray[typing.Any, numpy.dtype[numpy.int32]]) -> HighsStatus: ...

src/highspy/highs.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -250,28 +250,6 @@ def maximize(self, obj: Optional[Union[highs_var, highs_linear_expression]] = No
250250

251251
super().changeObjectiveSense(ObjSense.kMaximize)
252252
return self.solve()
253-
254-
def addLinearObjective(self, linear_objective: HighsLinearObjective):
255-
"""
256-
Adds linear objective data to HiGHS.
257-
258-
Args:
259-
linear_objective: A HighsLinearObjective object representing the objective to add.
260-
261-
Returns:
262-
A HighsStatus object indicating whether the call succeeded..
263-
"""
264-
return super().addLinearObjective(linear_objective)
265-
266-
def clearLinearObjectives(self):
267-
"""
268-
Clears any multiple linear objective data in HiGHS.
269-
270-
Returns:
271-
A HighsStatus object indicating whether the call succeeded..
272-
"""
273-
return super().clearLinearObjectives()
274-
275253
@staticmethod
276254
def internal_get_value(
277255
array_values: Union[Sequence[float], np.ndarray[Any, np.dtype[np.float64]], readonly_ptr_wrapper_double],

0 commit comments

Comments
 (0)