Skip to content

'Model creation failed (Model not available in objective at level 1)' #1379

Discussion options

You must be logged in to vote

You are setting up a large nonconvex nonlinear program, so you are simply at the mercy of the performance of fmincon

Model looks bad too, you have things like stuff/t >= constant which should be written as stuff >= t*constant to avoid singularity-inducing nonlinearity

You also might want to impose sparsity to make computations inside fmincon, and yalmip faster by not doing e = stuff and then create e'*e but instead define new variable e with constraint e==stuff, thus creating very sparse quadratics (if stuff is a dense operator of the decision variables)

Yes changing f(x)==0 to f(x)<=0 will obviously create a different problem with possible different result if it is optimal to not satisfy…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@valuestay
Comment options

@johanlofberg
Comment options

Answer selected by valuestay
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants