How to solve equation min||wij ||subject to ||Cp-Pij ||22 ≤є what function to use ?

How to solve equation min||wij ||subject to ||Cp-Pij ||22 ≤є what function to use in Matlab to solve this ?

 Accepted Answer

Is Pij the same as wij? What are the unknowns. In any case, this might be applicable

3 Comments

Hi Matt, wij is the sparse coefficient vector.Pij is patch of an image..
And? What about my other question?
Min||wij ||1 s.t ||Cp wij – Pij ||22 ≤ £ Here w_ij is the unknown.Cp and Pij are the Matrices where Cp is a dictionary of photos and Pij is a patch.Can u help me out to solve this.

Sign in to comment.

More Answers (1)

hi, Alex, i had once a program called "Simplex" but i lost it, anyway the best function is linprog :
Let us take an example : you have
Min f(x,y,z)=-5x-4y-6z
Subject to :
x - y + z <= 20
3x + 2y + 4z <= 42
3x + 2y <= 30
x,y,z > 0
Then :
f = [-5; -4; -6];A =[1 -1 1;3 2 4;3 2 0];
b = [20; 42; 30];
lb=zeros(3,1);
x=linprog(f,A,b,[],[],lb)
Optimization terminated.
x =
0.0000
15.0000
3.0000

Categories

Find more on Optimization in Help Center and File Exchange

Asked:

on 11 Feb 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!