Originally posted by: SystemAdmin
> If i want to print the product of the ObjValue and 1000,which method
> can i use??
> I try it like following,but it is wrong.
> System.Console.WriteLine(" Minimun cost= "
> +cplex.scal(cplex.ObjValue,1000));
You could simply multiply the 1000 and cplex.ObjValue (which returns a double value) as such:
System.Console.WriteLine("Minimum cost = " + cplex.ObjValue * 1000);
The cplex.ScalProd methods and such are useful for creating expressions during model building. Once the model is built and solved, simple multiplication would work.
#CPLEXOptimizers#DecisionOptimization