We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6dd82d6 commit e4740c5Copy full SHA for e4740c5
src/ConicProgram/ConicProgram.jl
@@ -183,6 +183,18 @@ function _gradient_cache(model::Model)
183
)
184
b = model.model.constraints.constants
185
186
+ if any(isnan, model.y) || length(model.y) < length(b)
187
+ error(
188
+ "Some constraints are missing a value for the `ConstraintDualStart` attribute.",
189
+ )
190
+ end
191
+
192
+ if any(isnan, model.s) || length(model.s) < length(b)
193
194
+ "Some constraints are missing a value for the `ConstraintPrimalStart` attribute.",
195
196
197
198
if MOI.get(model, MOI.ObjectiveSense()) == MOI.FEASIBILITY_SENSE
199
c = SparseArrays.spzeros(size(A, 2))
200
else
0 commit comments