bhornsby89

5 Reputation

2 Badges

14 years, 216 days

MaplePrimes Activity


These are replies submitted by bhornsby89

@acer Thank you very much, all is working fine now!

@acer Thank you very much, all is working fine now!

Thanks that seems to have solved one problem. Now getting "Error, (in opt) Vector index out of range"

cwk3.0.mw

If you could find the problem that would be great thanks!

Thanks that seems to have solved one problem. Now getting "Error, (in opt) Vector index out of range"

cwk3.0.mw

If you could find the problem that would be great thanks!

EDIT:

Just tried your suggestion and still got a slightly different error message.

"Error, (in opt) cannot determine if this expression is true or false: min(`.`(Vector[row](1, {(1) = 7}), MatrixInverse(Matrix(3, 1, {(1, 1) = 0, (2, 1) = 1, (3, 1) = 1})), Vector(3, {(1) = 0, (2) = 1, (3) = 1}))-7, `.`(Vector[row](1, {(1)......" 

I was wondering whether I need unevaluation quotes `` somewhere. I've seen this as a solution elsewhere but I have no idea where to put them. 

EDIT:

Just tried your suggestion and still got a slightly different error message.

"Error, (in opt) cannot determine if this expression is true or false: min(`.`(Vector[row](1, {(1) = 7}), MatrixInverse(Matrix(3, 1, {(1, 1) = 0, (2, 1) = 1, (3, 1) = 1})), Vector(3, {(1) = 0, (2) = 1, (3) = 1}))-7, `.`(Vector[row](1, {(1)......" 

I was wondering whether I need unevaluation quotes `` somewhere. I've seen this as a solution elsewhere but I have no idea where to put them. 

Thank you that does help to a problem I had before. However in the example I am working with there are 8 variables and the vector given above corresponds to x6, x7 and x8 respectively. In the simplex method it is required for the variable with the smallest positive value to leave i.e. x8 and for this to be replaced with x1 (I've worked this out beforehand) and so the new vector would contain the values corresponding to [x6, x7, x1]. Is this possible?

Sorry if I'm not being very clear.

Thank you that does help to a problem I had before. However in the example I am working with there are 8 variables and the vector given above corresponds to x6, x7 and x8 respectively. In the simplex method it is required for the variable with the smallest positive value to leave i.e. x8 and for this to be replaced with x1 (I've worked this out beforehand) and so the new vector would contain the values corresponding to [x6, x7, x1]. Is this possible?

Sorry if I'm not being very clear.

Page 1 of 1