Skip to content

default True objective set as False for electrical cost component & x and y...

Emre Barlas requested to merge electricalcorrection into master

Hi @pire

I am not sure if electrical cost examples had problems. But setting the objective explicitly false in CostModelComponent in simple_msp.py was the only way for me to get my setup running.

        CostModelComponent.__init__(self, [(self.length_key, 0.0)], self.n_wt,
                                    self.cost, self.grad, objective=False,
                                    **kwargs)

cc ing @mikf in as far as i see he has some other merge requests so he is aware of this request as well.

Merge request reports