@@ -132,7 +132,8 @@ cdef class SCIPBackend(GenericBackend):
132
132
if vtype == 0 :
133
133
continuous = True
134
134
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'." )
136
137
137
138
if name is None :
138
139
vname = ' '
@@ -147,7 +148,8 @@ cdef class SCIPBackend(GenericBackend):
147
148
if integer:
148
149
vtypestr = ' I'
149
150
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 )
151
153
index = v.getIndex()
152
154
assert index == self .ncols()
153
155
self .variables.append(v)
@@ -162,7 +164,7 @@ cdef class SCIPBackend(GenericBackend):
162
164
163
165
- ``variable`` (integer) -- the variable's id
164
166
165
- - ``vtype`` (integer) :
167
+ - ``vtype`` (integer):
166
168
167
169
* 1 Integer
168
170
* 0 Binary
@@ -191,7 +193,7 @@ cdef class SCIPBackend(GenericBackend):
191
193
192
194
INPUT:
193
195
194
- - ``sense`` (integer) :
196
+ - ``sense`` (integer):
195
197
196
198
* +1 => Maximization
197
199
* -1 => Minimization
@@ -639,7 +641,7 @@ cdef class SCIPBackend(GenericBackend):
639
641
640
642
cpdef get_objective_value(self ):
641
643
"""
642
- Returns the value of the objective function.
644
+ Return the value of the objective function.
643
645
644
646
.. NOTE::
645
647
@@ -713,7 +715,7 @@ cdef class SCIPBackend(GenericBackend):
713
715
714
716
cpdef get_variable_value(self , int variable):
715
717
"""
716
- Returns the value of a variable given by the solver.
718
+ Return the value of a variable given by the solver.
717
719
718
720
.. NOTE::
719
721
@@ -740,7 +742,7 @@ cdef class SCIPBackend(GenericBackend):
740
742
741
743
cpdef get_row_prim(self , int i):
742
744
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.
744
746
745
747
.. NOTE::
746
748
@@ -1131,7 +1133,7 @@ cdef class SCIPBackend(GenericBackend):
1131
1133
1132
1134
cpdef __copy__(self ):
1133
1135
"""
1134
- Returns a copy of self.
1136
+ Return a copy of self.
1135
1137
1136
1138
EXAMPLES::
1137
1139
0 commit comments