Is it possible to add more constraints than the default ones in LSQLIN function?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I'm solving a constrained linear least-squares problem using lsqlin. I've specified values for C,d,A,b,Aeq and beq. I used all the default constraints that are included in the solver except for the uper and lower bounds.
A⋅x≤b
Aeq⋅x=beq
I want to add one more constraint to the solver that is different from the above constraints that I already used, Is there a way to specify more constraints in addition to the ones that are by default in the solver?
Any help is appreciated!
2 comentarios
John D'Errico
el 26 de En. de 2023
There are no default constraints. And you can supply more than one constraint. That is, A and Aeq can be MATRICES, with b and beq being vectors. That means A can have as many rows as you wish, with each row being another constraint. The same applies to Aeq.
Respuesta aceptada
Ver también
Categorías
Más información sobre Linear Least Squares en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!