Solving an Argument in MATLAB with Linprog

  • Context: MATLAB 
  • Thread starter Thread starter physical101
  • Start date Start date
  • Tags Tags
    Argument Matlab
Click For Summary

Discussion Overview

The discussion revolves around solving an optimization problem in MATLAB using the linprog function. The problem involves minimizing a specific argument subject to certain constraints, with participants sharing their experiences and suggestions regarding the use of MATLAB and alternative tools.

Discussion Character

  • Technical explanation
  • Debate/contested
  • Homework-related

Main Points Raised

  • One participant describes their struggle to find the minimum solution of an argument in MATLAB using linprog, specifying the form of the problem and the dimensions of the matrices involved.
  • Another participant provides a link to the MATLAB documentation for linprog, suggesting that the original poster read it and apply it to their problem.
  • A different participant expresses frustration with MATLAB's flexibility and constraints, recommending an alternative toolbox called cvx, which allows for a more intuitive formulation of optimization problems.
  • One participant defends MATLAB's built-in functionality, arguing that it is sufficient for most applications and that custom functionality can be developed as needed.
  • The original poster acknowledges their own laziness in seeking help and praises the developers of the cvx toolbox.

Areas of Agreement / Disagreement

Participants express differing views on the usability of MATLAB's linprog function versus the cvx toolbox, indicating a lack of consensus on which approach is superior for solving optimization problems.

Contextual Notes

Participants have not resolved specific issues related to the application of linprog or the effectiveness of cvx, and there are no clear assumptions or definitions established regarding the optimization problem.

Who May Find This Useful

Individuals interested in optimization problems in MATLAB, particularly those exploring linear programming and seeking alternative tools for formulation and solution.

physical101
Messages
41
Reaction score
0
Dear All

Firstly, thank you for looking at my post.

I am so close to a solution to a problem that has been given me a massive headache.

I am also very stupid and was wondring if one of smart guys could take a look at my problem and see if you might be able to help.

I am trying to find the minimum solution of an argument in MATLAB using linprog.

The argument takes the form of:

s(t)=arg min||s(t)||1

subject to

||As(t) - x(t)||22<e

s is a five by one 1 matrix

A is a three by five matrix

and x(t) is a 3 by 1

I can't get linprog to work at all and ideally I would like the s values that minimise the statement above returned.

Any ideas or pointers of places to look would be very much appreciated.

Thank you for your time

Duane
 
Physics news on Phys.org
Thank you for your reply. I find Matlab to be a strange beast - flexible enough to do anything - yet so frustratingly constrained you feel like you can do nothing. There is a lp toolbox written by Stanford uni called cvx. This allows you to write the problem as you see it ie min argument subject to conditions. Much better than linprog and I am told its just as quick.
 
Well I think that's a bit harsh. All of the most common functionality is built in, and that's enough for 95% of applications. Specific and custom functionality can then be written on top, and that's what the file exchange/your brain is for.
 
That is true - I admit it, I'm lazy. Well done to the guys who wrote cvx.
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 32 ·
2
Replies
32
Views
4K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K