Assignment 3 Problem 1, warning using quadprog

Moderator: Computer Vision

Benutzeravatar
fy95olok
Windoof-User
Windoof-User
Beiträge: 39
Registriert: 21. Apr 2010 17:24

Assignment 3 Problem 1, warning using quadprog

Beitrag von fy95olok » 26. Jun 2013 13:43

Hi,
using quadprog in our Program produces:

Code: Alles auswählen

Warning: Large-scale algorithm does not currently solve this problem formulation,
using medium-scale algorithm instead. 
  In quadprog at 291
  In train_svm_s at 20
  In problem1a at 6
Exiting: the constraints are overly stringent;
 no feasible starting point found.
Does anyone know what might cause this problem?
Warum verwechseln Informatiker Weihnachten mit Halloween?
Weil 31 Oct = 25 Dez.

lustiz
Mausschubser
Mausschubser
Beiträge: 70
Registriert: 29. Apr 2009 10:28

Re: Assignment 3 Problem 1, warning using quadprog

Beitrag von lustiz » 26. Jun 2013 14:43

fy95olok hat geschrieben:Hi,
using quadprog in our Program produces:

Code: Alles auswählen

Warning: Large-scale algorithm does not currently solve this problem formulation,
using medium-scale algorithm instead. 
  In quadprog at 291
  In train_svm_s at 20
  In problem1a at 6
Exiting: the constraints are overly stringent;
 no feasible starting point found.
Does anyone know what might cause this problem?

Hi, it means the quadprog solver is not able to find a feasible solution because your constraints cannot be satisfied. It's probably a mistake in either A or b or both!

Benutzeravatar
hymGo
Sonntagsinformatiker
Sonntagsinformatiker
Beiträge: 209
Registriert: 4. Okt 2009 23:17

Re: Assignment 3 Problem 1, warning using quadprog

Beitrag von hymGo » 28. Jun 2013 14:17

I get a warning, too. Anyway, the displayed results seems to be correct.

Code: Alles auswählen

Warning: Trust-region-reflective algorithm does not solve this type of problem, using active-set
algorithm. For more help, see Choosing the Algorithm in the documentation. 
> In quadprog at 371
  In train_svm_s at 37
  In problem1a at 6 
Warning: Your current settings will run a different algorithm (interior-point-convex) in a
future release. 
> In quadprog at 375
  In train_svm_s at 37
  In problem1a at 6 

lustiz
Mausschubser
Mausschubser
Beiträge: 70
Registriert: 29. Apr 2009 10:28

Re: Assignment 3 Problem 1, warning using quadprog

Beitrag von lustiz » 28. Jun 2013 18:40

You can get rid of the warning by calling quadprog with:

Code: Alles auswählen

options = optimset('quadprog');
options.Algorithm = 'interior-point-convex';
quadprog(......, options);

Antworten

Zurück zu „Computer Vision“