Skip to content

Commit 7b19413

Browse files
author
Matthias Koeppe
committed
src/sage/numerical/backends/scip_backend.pyx: Fix docstring blocks, break some long lines
1 parent b6242d2 commit 7b19413

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/sage/numerical/backends/scip_backend.pyx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ cdef class SCIPBackend(GenericBackend):
132132
if vtype == 0:
133133
continuous = True
134134
elif vtype != 1:
135-
raise ValueError("Exactly one parameter of 'binary', 'integer' and 'continuous' must be 'True'.")
135+
raise ValueError("Exactly one parameter of 'binary', 'integer'"
136+
"and 'continuous' must be 'True'.")
136137

137138
if name is None:
138139
vname = ''
@@ -147,7 +148,8 @@ cdef class SCIPBackend(GenericBackend):
147148
if integer:
148149
vtypestr = 'I'
149150

150-
v = self.model.addVar(name=vname, vtype=vtypestr, ub=upper_bound, lb=lower_bound, obj=obj, pricedVar=False)
151+
v = self.model.addVar(name=vname, vtype=vtypestr, ub=upper_bound,
152+
lb=lower_bound, obj=obj, pricedVar=False)
151153
index = v.getIndex()
152154
assert index == self.ncols()
153155
self.variables.append(v)
@@ -162,7 +164,7 @@ cdef class SCIPBackend(GenericBackend):
162164
163165
- ``variable`` (integer) -- the variable's id
164166
165-
- ``vtype`` (integer) :
167+
- ``vtype`` (integer):
166168
167169
* 1 Integer
168170
* 0 Binary
@@ -191,7 +193,7 @@ cdef class SCIPBackend(GenericBackend):
191193
192194
INPUT:
193195
194-
- ``sense`` (integer) :
196+
- ``sense`` (integer):
195197
196198
* +1 => Maximization
197199
* -1 => Minimization
@@ -639,7 +641,7 @@ cdef class SCIPBackend(GenericBackend):
639641

640642
cpdef get_objective_value(self):
641643
"""
642-
Returns the value of the objective function.
644+
Return the value of the objective function.
643645
644646
.. NOTE::
645647
@@ -713,7 +715,7 @@ cdef class SCIPBackend(GenericBackend):
713715

714716
cpdef get_variable_value(self, int variable):
715717
"""
716-
Returns the value of a variable given by the solver.
718+
Return the value of a variable given by the solver.
717719
718720
.. NOTE::
719721
@@ -740,7 +742,7 @@ cdef class SCIPBackend(GenericBackend):
740742

741743
cpdef get_row_prim(self, int i):
742744
r"""
743-
Returns the value of the auxiliary variable associated with i-th row.
745+
Return the value of the auxiliary variable associated with i-th row.
744746
745747
.. NOTE::
746748
@@ -1131,7 +1133,7 @@ cdef class SCIPBackend(GenericBackend):
11311133

11321134
cpdef __copy__(self):
11331135
"""
1134-
Returns a copy of self.
1136+
Return a copy of self.
11351137
11361138
EXAMPLES::
11371139

0 commit comments

Comments
 (0)