Changeset 5771


Ignore:
Timestamp:
May 13, 2012 4:24:57 PM (7 years ago)
Author:
wehart
Message:

Update due to change in Pyomo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • coopr.openopt/trunk/coopr/openopt/func_designer.py

    r5720 r5771  
    112112        return Pyomo2FD_expression(exp._args[0], ipoint, vars, symbol_map)
    113113
    114     elif (isinstance(exp,var._VarData) or isinstance(exp,var.Var)) and not exp.fixed_value():
     114    elif (isinstance(exp,var._VarData) or isinstance(exp,var.Var)) and not exp.is_fixed():
    115115        vname = symbol_map.getSymbol(exp, labeler)
    116116        if not vname in vars:
     
    126126        return exp
    127127
    128     elif isinstance(exp,numvalue.NumericConstant) or exp.fixed_value:
     128    elif isinstance(exp,numvalue.NumericConstant) or exp.is_fixed():
    129129        return exp.value
    130130
Note: See TracChangeset for help on using the changeset viewer.