How to use linprog when i have variable ('A')= cell
Mostra commenti meno recenti
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.
Risposte (1)
Azzi Abdelmalek
il 26 Ago 2016
A=cell2mat(A)
7 Commenti
Alexandros Samp
il 26 Ago 2016
Azzi Abdelmalek
il 26 Ago 2016
post your code to see how A is used in linprog command
Alexandros Samp
il 26 Ago 2016
Modificato: Azzi Abdelmalek
il 26 Ago 2016
Azzi Abdelmalek
il 26 Ago 2016
And what line gives the error?
Alexandros Samp
il 26 Ago 2016
Azzi Abdelmalek
il 26 Ago 2016
How do you want to use it with linprog? explain your problem?
Alexandros Samp
il 26 Ago 2016
Categorie
Scopri di più su Linear Programming and Mixed-Integer Linear Programming in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!