Converting Optimal

Converting optimal function to maximize when it is minimize and changing
linear constraints relationships to equals
Fix formatting conflict