Strange behavior in bintprog
Afficher commentaires plus anciens
I'm running into a strange issue for bintprog for the following example.
A = [1000 0; 0 1000]
[xx] = bintprog(zeros(2,1),-1*A,-100*ones(2,1))
Optimization terminated.
xx =
1
1
^ this works but if either entry becomes large, the optimization is infeasible, for example:
A = [1000 0; 0 4000000]
[xx] = bintprog(zeros(2,1),-1*A,-100*ones(2,1))
The problem is infeasible.
xx =
0
0
Does anyone know what I'm doing wrong?
Thanks!
Réponses (0)
Catégories
En savoir plus sur Solver Outputs and Iterative Display dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!