How to use linprog when i have variable ('A')= cell
Afficher commentaires plus anciens
Hello, I get the following error when i try to run the linprog command : error using linprog (line 144) LINPROG requires the following inputs to be of data type double: 'A'. All the other variables i have are double (f,b,Aeq,beq,lb) except from A which is a 35x1 cell.What can i do in order to convert A to type double.
Réponses (1)
Azzi Abdelmalek
le 26 Août 2016
A=cell2mat(A)
7 commentaires
Alexandros Samp
le 26 Août 2016
Azzi Abdelmalek
le 26 Août 2016
post your code to see how A is used in linprog command
Alexandros Samp
le 26 Août 2016
Modifié(e) : Azzi Abdelmalek
le 26 Août 2016
Azzi Abdelmalek
le 26 Août 2016
And what line gives the error?
Alexandros Samp
le 26 Août 2016
Azzi Abdelmalek
le 26 Août 2016
How do you want to use it with linprog? explain your problem?
Alexandros Samp
le 26 Août 2016
Catégories
En savoir plus sur Linear Programming and Mixed-Integer Linear Programming dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!