Login
Login

Re: solve(SimplexTable table)

Home 21090308 Forums Re: solve(SimplexTable table)

#2131
timfargo2000
Member

Another problem regarding Suanshu – how do I check if the label type of a column in the SimplexTable equals Equality type? Although the following code

table.getColLabel(j).type.equals(SimplexTable.LabelType.EQUALITY)

passed through the compiler, runtime error was thrown.

Exception in thread “main” java.lang.ClassCastException: java.lang.String cannot be cast to com.numericalmethod.suanshu.optimization.constrained.linearprogramming.simplex.SimplexTable$Label

Thanks!