Machine learning model with simultaneous function optimization Consider the following scenario. I am a sculpturer and customers ask me for what price I am willing to provide them with some statues. Their request for sculptures can vary in difficulty, quantity, material, size. In response, I reply with the price and subsequently they will either accept or reject (1 or 0) my proposal. I know of traditional machine learning methods that I can train to predict the probability of acceptance given all inputs.

In this case the price can be influenced by myself. Not let's assume that my expected profit is this function: (quantity * price * (probability_of_acceptance)). I would like to respond to the customers with the price where this expected profit is the highest. Of course you can input different prices in the machine learning model, which will give you some kind of probability acceptance curve that you can subsequently optimize against. But I am looking to do this in one go.

I am wondering:


What is the theoretical name for this type of problem? 
What machine learning method is suitable here? 
Are there any python packages that implement these models?
Have a look at this competition organized by the European Spatial Agency (ESA). 
https://kelvins.esa.int/collision-avoidance-challenge/scoring/

Here they use a composed loss function. A binary classification whether two spatial are at risk of colliding or not. And in case that they collide a regression saying what is estimated risk between them.

This is done by constructing a loss function combining the Mean Squared Error (MSE) and the F_β score with β=2.

You could consider your problem similar. You will want to classify whether your offer gets accepted or not, and in case of acceptance the money in return that you will receive.

In the part of the discussion of the challenge, you will find some notes on how to do it. Also, I believe that they will publish a paper in the next weeks.